Function at 0x409002
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, 0x43a94c
call fcn.0042779a
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.00407193
push 0x43ec8c
push dword [ebp - 0x20]
lea eax, [ebp + 0x38]
push eax
mov dword [ebp - 4], ebx
call fcn.00408da2
lea ecx, [ebp + 0x54]
push ecx
push eax
lea eax, [ebp - 0x44]
push eax
mov byte [ebp - 4], 1
call fcn.00408cdf
add esp, 0x18
cmp dword [eax + 0x18], 8
jb 0x409077
mov eax, dword [eax + 4]
jmp 0x40907a
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.00405695
push ebx
push esi
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], bl
call fcn.00405695
cmp byte [ebp - 0x11], bl
je 0x4090b8
mov ecx, dword [ebp - 0x18]
lea eax, [ebp + 0x54]
push eax
call fcn.00407193
jmp 0x409311
push esi
push 0xffffffffffffffff
lea eax, [ebp - 0x1c]
push eax
mov ecx, edi
mov dword [ebp - 0x1c], 0x2e
call fcn.004089be
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
jne 0x4090d9
mov eax, edi
jmp 0x40911e
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x4c]
push eax
mov ecx, edi
call fcn.00408a99
mov ecx, eax
call fcn.00408990
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x54]
push eax
mov ecx, edi
call fcn.00408a99
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.00408c49
mov byte [ebp - 4], 2
mov dword [ebp - 0x10], 2
push eax
lea ecx, [ebp]
call fcn.00407193
test byte [ebp - 0x10], 2
mov dword [ebp - 4], 4
je 0x409142
and dword [ebp - 0x10], 0xfffffffd
push ebx
push esi
lea ecx, [ebp - 0x44]
call fcn.00405695
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x409165
push ebx
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x2c], 7
call fcn.004055f1
or dword [ebp - 0x10], 4
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 5
jmp 0x4091af
lea eax, [ebp - 0x54]
push eax
mov ecx, edi
call fcn.00405edd
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.00408a99
mov ecx, eax
call fcn.00408990
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.00408c49
or dword [ebp - 0x10], 8
mov dword [ebp - 4], 6
push eax
lea ecx, [ebp + 0x1c]
call fcn.00407193
mov dword [ebp - 4], 7
test byte [ebp - 0x10], 8
je 0x4091d6
and dword [ebp - 0x10], 0xfffffff7
push ebx
push esi
lea ecx, [ebp - 0xb0]
call fcn.00405695
test byte [ebp - 0x10], 4
mov byte [ebp - 4], 9
je 0x4091ea
push ebx
push esi
lea ecx, [ebp - 0x44]
call fcn.00405695
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.00428a8c
push 0x43ec88
lea eax, [ebp]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00408da2
lea ecx, [ebp + 0x70]
push ecx
push eax
lea eax, [ebp - 0xcc]
push eax
mov byte [ebp - 4], 0xa
call fcn.00408da2
lea ecx, [ebp + 0x1c]
push ecx
push eax
lea eax, [ebp - 0x94]
push eax
mov byte [ebp - 4], 0xb
call fcn.00408cdf
add esp, 0x34
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp + 0x54]
mov byte [ebp - 4], 0xc
call fcn.004058a4
push ebx
push esi
lea ecx, [ebp - 0x94]
call fcn.00405695
push ebx
push esi
lea ecx, [ebp - 0xcc]
call fcn.00405695
push ebx
push esi
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 9
call fcn.00405695
push 0x43ec8c
push dword [ebp - 0x20]
lea eax, [ebp - 0x70]
push eax
call fcn.00408da2
lea ecx, [ebp + 0x54]
push ecx
push eax
lea eax, [ebp + 0x38]
push eax
mov byte [ebp - 4], 0xd
call fcn.00408cdf
add esp, 0x18
push ebx
push esi
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 9
call fcn.00405695
cmp dword [ebp + 0x50], 8
mov eax, dword [ebp + 0x3c]
jae 0x4092c4
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 0x4092ec
call fcn.00405695
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 0x3e8
jl 0x4091ed
jmp 0x4092f1
call fcn.00405695
mov ecx, dword [ebp - 0x18]
lea eax, [ebp + 0x54]
push eax
call fcn.00407193
push ebx
push esi
lea ecx, [ebp + 0x1c]
call fcn.00405695
push ebx
push esi
lea ecx, [ebp]
call fcn.00405695
push ebx
push esi
lea ecx, [ebp + 0x54]
call fcn.00405695
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.0042778b
add ebp, 0x94
leave
ret 4