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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5eac95
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x6780cc]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x43b637
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43b654
test eax, 0x400
je 0x43b654
mov eax, 1
jmp 0x43b85e
cmp byte [ebp + 8], 0
je 0x43b6aa
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x43b664
mov eax, dword [esi]
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x43b6aa
lea eax, [ebp - 0x78]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x43b6aa
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x50], 1
jbe 0x43b6aa
mov eax, 3
jmp 0x43b85e
push esi
lea ecx, [ebp - 0x2c]
call fcn.00408fe0
push esi
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 0
call fcn.00408fe0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.0042ae60
test al, al
je 0x43b76b
nop word [eax + eax]
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x2c]
mov edi, dword [ebp - 0x2c]
lea esi, [ebp - 0x44]
mov ebx, dword [ebp - 0x44]
cmovae ecx, edi
cmp dword [ebp - 0x30], 8
mov edx, dword [ebp - 0x34]
cmovae esi, ebx
cmp edx, dword [ebp - 0x1c]
jne 0x43b723
test edx, edx
je 0x43b771
sub esi, ecx
nop dword [eax + eax]
mov ax, word [esi + ecx]
cmp ax, word [ecx]
jne 0x43b723
add ecx, 2
sub edx, 1
jne 0x43b710
jmp 0x43b771
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43b744
test eax, 0x400
jne 0x43b7e2
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push dword [ebp - 0x1c]
cmovae eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x44]
push eax
call fcn.00404650
lea ecx, [ebp - 0x2c]
call fcn.0042ae60
test al, al
jne 0x43b6e0
mov edi, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x30]
cmp ecx, 8
jb 0x43b7ab
lea ecx, [ecx*2 + 2]
mov eax, ebx
cmp ecx, 0x1000
jb 0x43b79e
mov ebx, dword [eax - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43b87a
push ecx
push ebx
call fcn.005a5f31
mov edi, dword [ebp - 0x2c]
add esp, 8
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x43b85c
lea ecx, [eax*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x43b852
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43b87a
jmp 0x43b852
mov eax, dword [ebp - 0x30]
cmp eax, 8
jb 0x43b815
lea ecx, [eax*2 + 2]
mov eax, ebx
cmp ecx, 0x1000
jb 0x43b80b
mov ebx, dword [eax - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43b87a
push ecx
push ebx
call fcn.005a5f31
add esp, 8
mov ecx, dword [ebp - 0x18]
cmp ecx, 8
jb 0x43b84b
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x43b841
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43b87a
push ecx
push edx
call fcn.005a5f31
add esp, 8
mov eax, 2
jmp 0x43b85e
push ecx
push edi
call fcn.005a5f31
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005a5aba
mov esp, ebp
pop ebp
ret
call fcn.005bd02a
int3