Function at 0x43e520
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x61f897
mov eax, dword fs:[0]
push eax
sub esp, 0x644
mov eax, dword [0x70a308]
xor eax, esp
mov dword [esp + 0x640], eax
push ebx
push esi
push edi
mov eax, dword [0x70a308]
xor eax, esp
push eax
lea eax, [esp + 0x654]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0xa8]
xor ebx, ebx
cmp eax, ebx
jne 0x43e56e
lea eax, [edi + 0xac]
push 0x100
lea ecx, [esp + 0x254]
push ecx
push 0x100
lea edx, [esp + 0x45c]
push edx
push 0x100
lea ecx, [esp + 0x64]
push ecx
push 3
lea edx, [esp + 0x64]
push edx
push eax
call fcn.005fb587
add esp, 0x24
test eax, eax
jne 0x43e831
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], ebx
mov word [esp + 0x1c], ax
mov dword [esp + 0x65c], ebx
push ebx
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x50]
push edx
push 0x64ed70
lea ecx, [esp + 0x28]
call fcn.00402300
cmp dword [0x70f5d4], ebx
je 0x43e5f7
mov eax, dword [esp + 0x18]
cmp eax, ebx
jne 0x43e5eb
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43e616
mov eax, dword [esp + 0x18]
cmp eax, ebx
jne 0x43e603
lea eax, [esp + 0x1c]
push 1
push eax
call fcn.0049bfe0
add esp, 8
test eax, eax
jne 0x43e81d
xor eax, eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x38], ebx
mov word [esp + 0x34], ax
mov byte [esp + 0x65c], 1
mov eax, dword [esp + 0x18]
cmp eax, ebx
jne 0x43e639
lea eax, [esp + 0x1c]
mov ecx, dword [0x70f730]
mov edx, dword [0x710638]
push ecx
push eax
push edx
lea ecx, [esp + 0x3c]
call fcn.00402190
push ebx
xor eax, eax
push 0x64ed18
lea ecx, [esp + 0x44]
mov dword [esp + 0x44], ebx
mov dword [esp + 0x4c], ebx
mov word [esp + 0x48], ax
call fcn.00401960
mov byte [esp + 0x65c], 2
mov eax, dword [esp + 0x3c]
mov ecx, eax
cmp eax, ebx
jne 0x43e685
lea ecx, [esp + 0x40]
mov eax, dword [esp + 0x30]
cmp eax, ebx
jne 0x43e691
lea eax, [esp + 0x34]
push 4
push ecx
mov ecx, dword [edi + 0x20]
push eax
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x43e8e5
mov edx, dword [esp + 0x18]
mov eax, edx
cmp edx, ebx
jne 0x43e6b6
lea eax, [esp + 0x1c]
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x43e6c0
sub eax, esi
sar eax, 1
mov ecx, edx
cmp edx, ebx
jne 0x43e6d9
lea ecx, [esp + 0x1c]
cmp word [ecx + eax*2 - 2], 0x5c
je 0x43e6f3
push 0x64f8c0
lea ecx, [esp + 0x1c]
call fcn.00405210
mov edx, dword [esp + 0x18]
cmp edx, ebx
jne 0x43e6fb
lea edx, [esp + 0x1c]
push 0x6575f0
push edx
call fcn.005fa8fb
add esp, 8
test eax, eax
je 0x43e722
push 0x64f8c0
push 0x6575f0
lea ecx, [esp + 0x20]
call fcn.0043a8a0
jmp 0x43e6ef
mov eax, dword [esp + 0x18]
cmp eax, ebx
jne 0x43e72e
lea eax, [esp + 0x1c]
add eax, 6
push 0x5c
push eax
call fcn.005fa163
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x43e7fc
mov eax, dword [esp + 0x18]
cmp eax, ebx
jne 0x43e752
lea eax, [esp + 0x1c]
xor edx, edx
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], ebx
mov word [esp + 0x2c], dx
call fcn.004017d0
mov byte [esp + 0x65c], 3
mov eax, dword [esp + 0x24]
mov ecx, eax
cmp eax, ebx
jne 0x43e781
lea ecx, [esp + 0x28]
mov eax, dword [esp + 0x18]
cmp eax, ebx
jne 0x43e78d
lea eax, [esp + 0x1c]
mov edx, esi
sub edx, eax
xor eax, eax
sar edx, 1
mov word [ecx + edx*2], ax
mov eax, dword [esp + 0x24]
cmp eax, ebx
jne 0x43e7a5
lea eax, [esp + 0x28]
push 1
push eax
call fcn.0049bfe0
add esp, 8
test eax, eax
jne 0x43e7d3
mov eax, dword [esp + 0x24]
cmp eax, ebx
jne 0x43e7c0
lea eax, [esp + 0x28]
push 1
push eax
call fcn.0049c1c0
add esp, 8
test eax, eax
je 0x43e85d
push 0x5c
add esi, 2
push esi
call fcn.005fa163
add esp, 8
mov esi, eax
mov byte [esp + 0x65c], 2
lea ecx, [esp + 0x24]
call fcn.004011f0
cmp esi, ebx
jne 0x43e746
mov byte [esp + 0x65c], 1
lea ecx, [esp + 0x3c]
call fcn.004011f0
mov byte [esp + 0x65c], bl
lea ecx, [esp + 0x30]
call fcn.004011f0
mov dword [esp + 0x65c], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.004011f0
mov eax, 1
mov ecx, dword [esp + 0x654]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x640]
xor ecx, esp
call fcn.005f85e7
add esp, 0x650
ret
lea ecx, [esp + 0x10]
call fcn.004024e0
mov byte [esp + 0x65c], 4
push ebx
push ebx
lea ecx, [esp + 0x1c]
push ecx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, dword [esp + 0x14]
mov eax, dword [0x71063c]
push edx
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.00402f60
mov edx, dword [esp + 0x20]
add esp, 0xc
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x10]
push 0x30
push 0x64ed18
push eax
mov ecx, edi
call fcn.005d3447
mov byte [esp + 0x65c], 3
lea ecx, [esp + 0x10]
call fcn.00402550
mov byte [esp + 0x65c], 2
lea ecx, [esp + 0x24]
call fcn.004011f0
mov byte [esp + 0x65c], 1
lea ecx, [esp + 0x3c]
call fcn.004011f0
mov byte [esp + 0x65c], bl
lea ecx, [esp + 0x30]
call fcn.004011f0
mov dword [esp + 0x65c], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.004011f0
xor eax, eax
jmp 0x43e836