Function at 0x458220
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4dab58
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x5246f0]
xor eax, esp
mov dword [esp + 0x54], eax
push ebx
push esi
mov eax, dword [0x5246f0]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x20], ebx
mov esi, ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x70], ebx
cmp dword [esi + 0x10], ebx
je 0x45829a
call fcn.00404d10
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
setne al
cmp al, bl
je 0x45829a
mov ecx, esi
call fcn.00404d10
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
je 0x4582da
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
lea eax, [esp + 0x10]
cmp edi, eax
je 0x458455
mov ecx, edi
call fcn.004032f0
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [edi], ecx
mov dword [edi + 4], edx
mov dword [edi + 8], eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
jmp 0x458455
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], vtable.hive::FileReader.0
mov dword [esp + 0x20], ecx
call fcn.00404d30
push esi
lea ecx, [esp + 0x2c]
mov byte [esp + 0x74], 3
call fcn.00404940
mov dword [esp + 0x44], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
lea esi, [esp + 0x24]
mov byte [esp + 0x70], 4
call fcn.0045ddf0
test al, al
jne 0x458384
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
lea edx, [esp + 0x10]
cmp edi, edx
je 0x45835b
mov ecx, edi
call fcn.004032f0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [edi], eax
mov dword [edi + 4], ecx
mov dword [edi + 8], edx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x44]
mov dword [esp + 0x24], vtable.hive::FileReader.0
cmp eax, ebx
je 0x458430
cmp eax, 0xffffffff
je 0x458430
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x458430
sub esp, 0x18
mov esi, esp
mov dword [esp + 0x38], esp
push esi
push 8
call fcn.00407860
add esp, 8
cmp eax, ebx
je 0x4583a9
lea ecx, [esp + 0x28]
mov dword [eax], vtable.._AV___Impl_no_alloc2_U___Callable_obj_V_lambda2___A0x7efbee31_hive___0A__tr1_std___NPBEI_tr1_std__.0
mov dword [eax + 4], ecx
mov dword [esi + 0x10], esi
lea esi, [esp + 0x3c]
call fcn.0045df90
mov eax, dword [esp + 0x44]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, ebx
je 0x4583cb
cmp eax, 0xffffffff
je 0x4583cb
push eax
call esi
xor eax, eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
lea edx, [esp + 0x10]
cmp edi, edx
je 0x45841c
mov ecx, edi
call fcn.004032f0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [edi], eax
mov eax, dword [esp + 0x44]
mov dword [edi + 4], ecx
mov dword [edi + 8], edx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], vtable.hive::FileReader.0
cmp eax, ebx
je 0x458430
cmp eax, 0xffffffff
je 0x458430
push eax
call esi
lea ecx, [esp + 0x28]
mov dword [esp + 0x44], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
call fcn.00401780
mov dword [esp + 0x24], vtable.hive::Noncopyable.0
lea ecx, [esp + 0x10]
call fcn.00402d40
mov eax, edi
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.0045f522
mov esp, ebp
pop ebp
ret