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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c61a6
mov eax, dword fs:[0]
push eax
sub esp, 0x190
mov eax, dword [0x504608]
xor eax, esp
mov dword [esp + 0x188], eax
push ebx
push esi
push edi
mov eax, dword [0x504608]
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 + 0x70]
mov dword [esp + 0x84], 0xf
mov dword [esp + 0x80], 0
mov byte [esp + 0x70], 0
call fcn.00401a90
push 0xffffffffffffffff
push 0
lea esi, [ebx + 0x18]
push esi
lea ecx, [esp + 0x70]
mov dword [esp + 0x1b4], 0
call fcn.00405bd0
cmp dword [esp + 0x78], 0x10
lea eax, [esp + 0x64]
cmovae eax, dword [esp + 0x64]
push eax
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x403759
xor eax, eax
jmp 0x403764
test al, 0x10
mov eax, 0
setne al
inc eax
sub eax, 0
je 0x403a3b
dec eax
je 0x403879
dec eax
jne 0x40386f
push 0x2f
push 1
lea ecx, [esp + 0x6c]
call fcn.00404e10
push 0xffffffffffffffff
push 0
push ebx
lea ecx, [esp + 0x70]
call fcn.00405bd0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov byte [esp + 0x88], 0
mov byte [esp + 0x8c], 0
mov dword [esp + 0x90], 0
mov byte [esp + 0x1a8], 1
cmp dword [esp + 0x78], 0x10
lea eax, [esp + 0x64]
cmovae eax, dword [esp + 0x64]
push eax
lea ecx, [esp + 0x80]
call fcn.004204a0
test al, al
jne 0x4037fe
lea ecx, [esp + 0x7c]
mov esi, 0xffffff94
call fcn.00420450
jmp 0x403a3e
mov edi, dword [esp + 0x80]
lea eax, [edi + 1]
push eax
call fcn.004958e6
add esp, 4
mov esi, eax
push esi
lea ecx, [esp + 0x80]
call fcn.00420600
test al, al
jne 0x403849
push esi
call fcn.0049bb96
add esp, 4
lea ecx, [esp + 0x7c]
call fcn.004205c0
lea ecx, [esp + 0x7c]
mov esi, 0xffffff93
call fcn.00420450
jmp 0x403a3e
lea ecx, [esp + 0x7c]
mov byte [esi + edi], 0
call fcn.004205c0
lea eax, [edi + 1]
lea ecx, [esp + 0x7c]
mov dword [ebx + 0x48], eax
mov dword [ebx + 0x4c], esi
mov dword [ebx + 0x54], 1
call fcn.00420450
mov esi, 1
jmp 0x403a3e
lea eax, [esp + 0x64]
cmp eax, esi
je 0x40388d
push 0xffffffffffffffff
push 0
push esi
mov ecx, eax
call fcn.00401a90
cmp dword [ebx + 0x10], 0
je 0x40386f
cmp dword [esp + 0x78], 0x10
lea ecx, [esp + 0x64]
cmovae ecx, dword [esp + 0x64]
call fcn.0041f720
mov edi, eax
test edi, edi
je 0x403a3b
lea eax, [esp + 0x64]
cmp eax, ebx
je 0x4038c4
push 0xffffffffffffffff
push 0
push ebx
mov ecx, eax
call fcn.00401a90
mov ecx, edi
call fcn.0041fbe0
test eax, eax
jne 0x403a3b
sub esp, 0x10
lea eax, [esp + 0xa4]
push 0x104
push eax
push 0
lea edx, [esp + 0x30]
mov ecx, edi
call fcn.0041f9a0
add esp, 0x1c
test eax, eax
jne 0x4039b4
cmp dword [esp + 0x78], 0x10
lea eax, [esp + 0x64]
cmovae eax, dword [esp + 0x64]
lea ecx, [esp + 0x94]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x403930
test dl, dl
je 0x40392c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x403930
add eax, 2
add ecx, 2
test dl, dl
jne 0x403910
xor eax, eax
jmp 0x403935
sbb eax, eax
or eax, 1
test eax, eax
je 0x4039b4
mov ecx, edi
call fcn.0041fc20
test eax, eax
jne 0x4039b4
jmp 0x403950
sub esp, 0x10
lea eax, [esp + 0xa4]
push 0x104
push eax
push 0
lea edx, [esp + 0x30]
mov ecx, edi
call fcn.0041f9a0
add esp, 0x1c
lea ecx, [esp + 0x64]
lea esi, [esp + 0x94]
call fcn.00402ee0
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x4039a0
test cl, cl
je 0x40399c
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x4039a0
add eax, 2
add esi, 2
test cl, cl
jne 0x403980
xor eax, eax
jmp 0x4039a5
sbb eax, eax
or eax, 1
test eax, eax
je 0x4039b4
mov ecx, edi
call fcn.0041fc20
test eax, eax
je 0x403950
cmp dword [ebx + 0x40], 0
je 0x4039d7
cmp dword [ebx + 0x44], 0x10
lea eax, [ebx + 0x30]
jb 0x4039c5
mov eax, dword [eax]
push eax
sub esp, 8
mov ecx, edi
call fcn.0041fe90
add esp, 0xc
test eax, eax
je 0x4039ee
push 0
sub esp, 8
mov ecx, edi
call fcn.0041fe90
add esp, 0xc
test eax, eax
jne 0x40386f
mov esi, dword [esp + 0x30]
inc esi
push esi
call fcn.004958e6
add esp, 4
mov edx, eax
push esi
mov ecx, edi
mov dword [esp + 0x14], eax
call fcn.00420160
mov ecx, dword [esp + 0x34]
add esp, 4
cmp ecx, eax
jne 0x403a34
mov eax, dword [esp + 0x10]
mov dword [ebx + 0x48], ecx
mov ecx, edi
mov dword [ebx + 0x4c], eax
mov dword [ebx + 0x54], 1
call fcn.0041f960
mov esi, 1
jmp 0x403a3e
mov esi, 0xffffff93
jmp 0x403a3e
or esi, 0xffffffff
cmp dword [esp + 0x78], 0x10
jb 0x403a51
push dword [esp + 0x64]
call fcn.004999a3
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.0049a134
mov esp, ebp
pop ebp
ret 4