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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c6e26
mov eax, dword fs:[0]
push eax
sub esp, 0x190
mov eax, dword [0x5055f8]
xor eax, esp
mov dword [esp + 0x188], eax
push ebx
push esi
push edi
mov eax, dword [0x5055f8]
xor eax, esp
push eax
lea eax, [esp + 0x1a0]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
push 0xffffffffffffffff
lea eax, [ecx + 0x18]
push 0
push eax
lea ecx, [esp + 0x88]
mov dword [esp + 0x9c], 0xf
mov dword [esp + 0x98], 0
mov byte [esp + 0x88], 0
call fcn.00401a90
push 0xffffffffffffffff
push 0
lea esi, [ebx + 0x18]
push esi
lea ecx, [esp + 0x88]
mov dword [esp + 0x1b4], 0
call fcn.00405ab0
cmp dword [esp + 0x90], 0x10
lea eax, [esp + 0x7c]
cmovae eax, dword [esp + 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x403695
xor eax, eax
jmp 0x4036a0
test al, 0x10
mov eax, 0
setne al
inc eax
sub eax, 0
je 0x40396b
dec eax
je 0x4037a9
dec eax
jne 0x40379f
push 0x2f
push 1
lea ecx, [esp + 0x84]
call fcn.00404d00
push 0xffffffffffffffff
push 0
push ebx
lea ecx, [esp + 0x88]
call fcn.00405ab0
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov byte [esp + 0x1c], 0
mov byte [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov byte [esp + 0x1a8], 1
cmp dword [esp + 0x90], 0x10
lea eax, [esp + 0x7c]
cmovae eax, dword [esp + 0x7c]
push eax
lea ecx, [esp + 0x14]
call fcn.0041fd60
test al, al
jne 0x403734
lea ecx, [esp + 0x10]
mov esi, 0xffffff94
call fcn.0041fd10
jmp 0x40396e
mov edi, dword [esp + 0x14]
lea eax, [edi + 1]
push eax
call fcn.00496506
add esp, 4
mov esi, eax
push esi
lea ecx, [esp + 0x14]
call fcn.0041fec0
test al, al
jne 0x403779
push esi
call fcn.0049c856
add esp, 4
lea ecx, [esp + 0x10]
call fcn.0041fe80
lea ecx, [esp + 0x10]
mov esi, 0xffffff93
call fcn.0041fd10
jmp 0x40396e
lea ecx, [esp + 0x10]
mov byte [esi + edi], 0
call fcn.0041fe80
lea eax, [edi + 1]
lea ecx, [esp + 0x10]
mov dword [ebx + 0x48], eax
mov dword [ebx + 0x4c], esi
mov dword [ebx + 0x54], 1
call fcn.0041fd10
mov esi, 1
jmp 0x40396e
lea eax, [esp + 0x7c]
cmp eax, esi
je 0x4037bd
push 0xffffffffffffffff
push 0
push esi
mov ecx, eax
call fcn.00401a90
cmp dword [ebx + 0x10], 0
je 0x40379f
cmp dword [esp + 0x90], 0x10
lea ecx, [esp + 0x7c]
cmovae ecx, dword [esp + 0x7c]
call fcn.0041efd0
mov edi, eax
test edi, edi
je 0x40396b
lea eax, [esp + 0x7c]
cmp eax, ebx
je 0x4037f7
push 0xffffffffffffffff
push 0
push ebx
mov ecx, eax
call fcn.00401a90
mov ecx, edi
call fcn.0041f4a0
test eax, eax
jne 0x40396b
sub esp, 0x10
lea eax, [esp + 0xa4]
push 0x104
push eax
push 0
lea edx, [esp + 0x48]
mov ecx, edi
call fcn.0041f260
add esp, 0x1c
test eax, eax
jne 0x4038e4
cmp dword [esp + 0x90], 0x10
lea eax, [esp + 0x7c]
cmovae eax, dword [esp + 0x7c]
lea ecx, [esp + 0x94]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x403866
test dl, dl
je 0x403862
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x403866
add eax, 2
add ecx, 2
test dl, dl
jne 0x403846
xor eax, eax
jmp 0x40386b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4038e4
mov ecx, edi
call fcn.0041f4e0
test eax, eax
jne 0x4038e4
lea ebx, [ebx]
sub esp, 0x10
lea eax, [esp + 0xa4]
push 0x104
push eax
push 0
lea edx, [esp + 0x48]
mov ecx, edi
call fcn.0041f260
add esp, 0x1c
lea ecx, [esp + 0x7c]
lea esi, [esp + 0x94]
call fcn.00402ef0
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x4038d0
test cl, cl
je 0x4038cc
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x4038d0
add eax, 2
add esi, 2
test cl, cl
jne 0x4038b0
xor eax, eax
jmp 0x4038d5
sbb eax, eax
or eax, 1
test eax, eax
je 0x4038e4
mov ecx, edi
call fcn.0041f4e0
test eax, eax
je 0x403880
cmp dword [ebx + 0x40], 0
je 0x403907
cmp dword [ebx + 0x44], 0x10
lea eax, [ebx + 0x30]
jb 0x4038f5
mov eax, dword [eax]
push eax
sub esp, 8
mov ecx, edi
call fcn.0041f750
add esp, 0xc
test eax, eax
je 0x40391e
push 0
sub esp, 8
mov ecx, edi
call fcn.0041f750
add esp, 0xc
test eax, eax
jne 0x40379f
mov esi, dword [esp + 0x48]
inc esi
push esi
call fcn.00496506
add esp, 4
mov edx, eax
push esi
mov ecx, edi
mov dword [esp + 0x2c], eax
call fcn.0041fa20
mov ecx, dword [esp + 0x4c]
add esp, 4
cmp ecx, eax
jne 0x403964
mov eax, dword [esp + 0x28]
mov dword [ebx + 0x48], ecx
mov ecx, edi
mov dword [ebx + 0x4c], eax
mov dword [ebx + 0x54], 1
call fcn.0041f220
mov esi, 1
jmp 0x40396e
mov esi, 0xffffff93
jmp 0x40396e
or esi, 0xffffffff
cmp dword [esp + 0x90], 0x10
jb 0x403984
push dword [esp + 0x7c]
call fcn.0049a5c3
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x1a0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x188]
xor ecx, esp
call fcn.0049ad54
mov esp, ebp
pop ebp
ret 4