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

Disassembly:
push ebp
sub esp, 0x90
lea ebp, [esp - 4]
mov eax, dword [0x44bd78]
xor eax, ebp
mov dword [ebp + 0x90], eax
push 0xc0
mov eax, 0x43b439
call fcn.0042816e
mov edi, dword [ebp + 0x9c]
mov dword [ebp - 0x18], ecx
xor ebx, ebx
push edi
lea ecx, [ebp + 0x54]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x10], ebx
call fcn.00408dcc
push 0x43ee6c
push dword [ebp - 0x20]
lea eax, [ebp + 0x38]
push eax
mov dword [ebp - 4], ebx
call fcn.0040ac20
lea ecx, [ebp + 0x54]
push ecx
push eax
lea eax, [ebp - 0x44]
push eax
mov byte [ebp - 4], 1
call fcn.0040ab5d
add esp, 0x18
cmp dword [eax + 0x18], 8
jb 0x40aef5
mov eax, dword [eax + 4]
jmp 0x40aef8
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
sete byte [ebp - 0x11]
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp - 0x44]
call fcn.00405613
push ebx
push esi
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], bl
call fcn.00405613
cmp byte [ebp - 0x11], bl
je 0x40af36
mov ecx, dword [ebp - 0x18]
lea eax, [ebp + 0x54]
push eax
call fcn.00408dcc
jmp 0x40b18f
push esi
push 0xffffffffffffffff
lea eax, [ebp - 0x1c]
push eax
mov ecx, edi
mov dword [ebp - 0x1c], 0x2e
call fcn.0040a83c
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
jne 0x40af57
mov eax, edi
jmp 0x40af9c
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x4c]
push eax
mov ecx, edi
call fcn.0040a917
mov ecx, eax
call fcn.0040a80e
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x54]
push eax
mov ecx, edi
call fcn.0040a917
mov ecx, dword [ebp - 0x10]
push dword [ecx + 4]
push dword [ecx]
lea ecx, [ebp - 0x44]
push dword [eax + 4]
push dword [eax]
call fcn.0040aac7
mov byte [ebp - 4], 2
mov dword [ebp - 0x10], 2
push eax
lea ecx, [ebp]
call fcn.00408dcc
test byte [ebp - 0x10], 2
mov dword [ebp - 4], 4
je 0x40afc0
and dword [ebp - 0x10], 0xfffffffd
push ebx
push esi
lea ecx, [ebp - 0x44]
call fcn.00405613
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x40afe3
push ebx
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x2c], 7
call fcn.0040556f
or dword [ebp - 0x10], 4
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 5
jmp 0x40b02d
lea eax, [ebp - 0x54]
push eax
mov ecx, edi
call fcn.00405e5b
push dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x78]
push eax
mov ecx, edi
call fcn.0040a917
mov ecx, eax
call fcn.0040a80e
mov ecx, dword [ebp - 0x24]
push dword [ecx + 4]
push dword [ecx]
lea ecx, [ebp - 0xb0]
push dword [eax + 4]
push dword [eax]
call fcn.0040aac7
or dword [ebp - 0x10], 8
mov dword [ebp - 4], 6
push eax
lea ecx, [ebp + 0x1c]
call fcn.00408dcc
mov dword [ebp - 4], 7
test byte [ebp - 0x10], 8
je 0x40b054
and dword [ebp - 0x10], 0xfffffff7
push ebx
push esi
lea ecx, [ebp - 0xb0]
call fcn.00405613
test byte [ebp - 0x10], 4
mov byte [ebp - 4], 9
je 0x40b068
push ebx
push esi
lea ecx, [ebp - 0x44]
call fcn.00405613
mov dword [ebp - 0x10], esi
push 7
xor eax, eax
pop ecx
mov word [ebp + 0x70], ax
lea edi, [ebp + 0x72]
rep stosd dword es:[edi], eax
push 0xa
stosw word es:[edi], ax
push 0x10
lea eax, [ebp + 0x70]
push eax
push dword [ebp - 0x10]
call fcn.004299e6
push 0x43ee68
lea eax, [ebp]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.0040ac20
lea ecx, [ebp + 0x70]
push ecx
push eax
lea eax, [ebp - 0xcc]
push eax
mov byte [ebp - 4], 0xa
call fcn.0040ac20
lea ecx, [ebp + 0x1c]
push ecx
push eax
lea eax, [ebp - 0x94]
push eax
mov byte [ebp - 4], 0xb
call fcn.0040ab5d
add esp, 0x34
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp + 0x54]
mov byte [ebp - 4], 0xc
call fcn.00405822
push ebx
push esi
lea ecx, [ebp - 0x94]
call fcn.00405613
push ebx
push esi
lea ecx, [ebp - 0xcc]
call fcn.00405613
push ebx
push esi
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 9
call fcn.00405613
push 0x43ee6c
push dword [ebp - 0x20]
lea eax, [ebp - 0x70]
push eax
call fcn.0040ac20
lea ecx, [ebp + 0x54]
push ecx
push eax
lea eax, [ebp + 0x38]
push eax
mov byte [ebp - 4], 0xd
call fcn.0040ab5d
add esp, 0x18
push ebx
push esi
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 9
call fcn.00405613
cmp dword [ebp + 0x50], 8
mov eax, dword [ebp + 0x3c]
jae 0x40b142
lea eax, [ebp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push ebx
lea ecx, [ebp + 0x38]
push esi
cmp eax, 0xffffffff
je 0x40b16a
call fcn.00405613
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 0x3e8
jl 0x40b06b
jmp 0x40b16f
call fcn.00405613
mov ecx, dword [ebp - 0x18]
lea eax, [ebp + 0x54]
push eax
call fcn.00408dcc
push ebx
push esi
lea ecx, [ebp + 0x1c]
call fcn.00405613
push ebx
push esi
lea ecx, [ebp]
call fcn.00405613
push ebx
push esi
lea ecx, [ebp + 0x54]
call fcn.00405613
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x90]
xor ecx, ebp
call fcn.0042815f
add ebp, 0x94
leave
ret 4