Function at 0x43a28e
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x467328
call fcn.00461c40
push ebx
push esi
push edi
mov ebx, ecx
mov eax, dword [ebx + 0x18]
push dword [ebp + 8]
and dword [ebp - 4], 0
lea esi, [ebx + 0x18]
mov ecx, esi
call dword [eax + 0x20]
test eax, eax
jne 0x43a2ba
xor esi, esi
jmp 0x43a490
cmp dword [ebp + 0x50], 0
mov edi, dword [ebp + 0x4c]
jne 0x43a319
xor esi, esi
cmp dword [ebp + 0x30], esi
je 0x43a30a
mov eax, dword [ebp + 0x2c]
cmp eax, esi
jne 0x43a2d6
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43a30a
push esi
lea eax, [ebp + 0x53]
sub esp, 0x10
mov ecx, esp
mov dword [ebp + 0x50], esp
push eax
push 0x4845cc
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_unsigned_short_int_const___class_std::allocator_unsigned_short_int__const__]
push esi
lea eax, [ebp + 0xc]
mov ecx, ebx
push eax
call fcn.0043b1c4
jmp 0x43a457
push esi
push 3
mov ecx, ebx
call fcn.004453a7
jmp 0x43a457
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::npos]
lea ecx, [ebx + 0x244]
push dword [eax]
push 0
push dword [ebp + 0x54]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const___unsigned_int__unsigned_int_]
mov eax, dword [esi]
push dword [ebp + 0x50]
mov ecx, esi
call dword [eax + 0x108]
push 1
pop ecx
mov dword [ebx + 0xac], ecx
mov eax, dword [edi + 4]
test eax, eax
je 0x43a3d3
mov edx, dword [edi + 8]
sub edx, eax
sar edx, 4
cmp edx, ecx
jb 0x43a3d3
cmp dword [ebp + 0x50], 0xffffffff
je 0x43a3d3
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
mov esi, eax
test esi, esi
je 0x43a3b2
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
cmp eax, 0x5a
jne 0x43a3b2
and dword [ebp + 8], 0
mov eax, dword [esi]
lea ecx, [ebp + 8]
push ecx
push 0x47e388
mov ecx, esi
mov byte [ebp - 4], 2
call dword [eax + 4]
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x43a3a5
mov eax, dword [ecx]
push edi
call dword [eax + 0x44]
mov ecx, dword [ebp + 8]
and byte [ebp - 4], 0
test ecx, ecx
je 0x43a3b2
mov eax, dword [ecx]
call dword [eax + 0xc]
push 0
lea eax, [ebp + 0xb]
sub esp, 0x10
mov ecx, esp
mov dword [ebp + 8], esp
push eax
push 0x4845cc
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_unsigned_short_int_const___class_std::allocator_unsigned_short_int__const__]
push dword [ebp + 0x50]
jmp 0x43a2fa
push 0
push 4
mov ecx, ebx
call fcn.004453a7
mov ecx, ebx
call fcn.00445384
mov esi, eax
test esi, esi
je 0x43a457
mov edx, dword [esi]
xor eax, eax
push eax
push eax
push eax
push 0x8064
mov ecx, esi
call dword [edx + 0x2c]
mov eax, dword [edi + 4]
test eax, eax
je 0x43a457
mov ecx, dword [edi + 8]
sub ecx, eax
sar ecx, 4
je 0x43a457
and dword [ebp + 0x50], 0
mov eax, dword [esi + 4]
lea edx, [ebp + 0x50]
push edx
push str._8E_
mov eax, dword [eax + 4]
mov byte [ebp - 4], 1
lea ecx, [eax + esi + 4]
mov eax, dword [eax + esi + 4]
call dword [eax + 4]
mov ecx, dword [ebp + 0x50]
test ecx, ecx
je 0x43a44b
mov eax, dword [edi + 4]
mov eax, dword [eax + 4]
test eax, eax
jne 0x43a445
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
mov edx, dword [ecx]
push eax
call dword [edx + 0x2c]
and byte [ebp - 4], 0
lea ecx, [ebp + 0x50]
call fcn.00440424
mov eax, dword [edi + 4]
test eax, eax
je 0x43a482
mov ecx, dword [edi + 8]
sub ecx, eax
sar ecx, 4
je 0x43a482
mov ecx, ebx
call fcn.0043b2f6
test eax, eax
je 0x43a482
mov ecx, ebx
call fcn.0043b2f6
mov edx, dword [eax]
push edi
mov ecx, eax
call dword [edx + 0x34]
mov ecx, dword [ebx + 0x58]
push 3
call dword [sym.imp.Miracle.dll_Ordinal_333]
push 1
pop esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0041a3e6
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x50