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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x499e45
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x4c4014]
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 0x4351f7
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x435214
test eax, 0x400
je 0x435214
mov eax, 1
jmp 0x43541e
cmp byte [ebp + 8], 0
je 0x43526a
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x435224
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 0x43526a
lea eax, [ebp - 0x78]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x43526a
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x50], 1
jbe 0x43526a
mov eax, 3
jmp 0x43541e
push esi
lea ecx, [ebp - 0x2c]
call fcn.00403570
push esi
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 0
call fcn.00403570
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.004270d0
test al, al
je 0x43532b
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 0x4352e3
test edx, edx
je 0x435331
sub esi, ecx
nop dword [eax + eax]
mov ax, word [esi + ecx]
cmp ax, word [ecx]
jne 0x4352e3
add ecx, 2
sub edx, 1
jne 0x4352d0
jmp 0x435331
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 0x435304
test eax, 0x400
jne 0x4353a2
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.00402e00
lea ecx, [ebp - 0x2c]
call fcn.004270d0
test al, al
jne 0x4352a0
mov edi, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x30]
cmp ecx, 8
jb 0x43536b
lea ecx, [ecx*2 + 2]
mov eax, ebx
cmp ecx, 0x1000
jb 0x43535e
mov ebx, dword [eax - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43543a
push ecx
push ebx
call fcn.004699d8
mov edi, dword [ebp - 0x2c]
add esp, 8
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x43541c
lea ecx, [eax*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x435412
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43543a
jmp 0x435412
mov eax, dword [ebp - 0x30]
cmp eax, 8
jb 0x4353d5
lea ecx, [eax*2 + 2]
mov eax, ebx
cmp ecx, 0x1000
jb 0x4353cb
mov ebx, dword [eax - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43543a
push ecx
push ebx
call fcn.004699d8
add esp, 8
mov ecx, dword [ebp - 0x18]
cmp ecx, 8
jb 0x43540b
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x435401
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43543a
push ecx
push edx
call fcn.004699d8
add esp, 8
mov eax, 2
jmp 0x43541e
push ecx
push edi
call fcn.004699d8
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.0046999a
mov esp, ebp
pop ebp
ret
call fcn.00479601
int3