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

Disassembly:
push ebp
sub esp, 0x90
lea ebp, [esp - 4]
mov eax, dword [0x44ad18]
xor eax, ebp
mov dword [ebp + 0x90], eax
push 0xc0
mov eax, 0x4399ec
call fcn.004267ff
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.00407249
push 0x43dc80
push dword [ebp - 0x20]
lea eax, [ebp + 0x38]
push eax
mov dword [ebp - 4], ebx
call fcn.00408dda
lea ecx, [ebp + 0x54]
push ecx
push eax
lea eax, [ebp - 0x44]
push eax
mov byte [ebp - 4], 1
call fcn.00408d17
add esp, 0x18
cmp dword [eax + 0x18], 8
jb 0x4090af
mov eax, dword [eax + 4]
jmp 0x4090b2
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.00405621
push ebx
push esi
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], bl
call fcn.00405621
cmp byte [ebp - 0x11], bl
je 0x4090f0
mov ecx, dword [ebp - 0x18]
lea eax, [ebp + 0x54]
push eax
call fcn.00407249
jmp 0x409349
push esi
push 0xffffffffffffffff
lea eax, [ebp - 0x1c]
push eax
mov ecx, edi
mov dword [ebp - 0x1c], 0x2e
call fcn.00408a16
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
jne 0x409111
mov eax, edi
jmp 0x409156
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x4c]
push eax
mov ecx, edi
call fcn.00405e73
mov ecx, eax
call fcn.004089e8
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x54]
push eax
mov ecx, edi
call fcn.00405e73
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.00408c81
mov byte [ebp - 4], 2
mov dword [ebp - 0x10], 2
push eax
lea ecx, [ebp]
call fcn.00407249
test byte [ebp - 0x10], 2
mov dword [ebp - 4], 4
je 0x40917a
and dword [ebp - 0x10], 0xfffffffd
push ebx
push esi
lea ecx, [ebp - 0x44]
call fcn.00405621
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x40919d
push ebx
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x2c], 7
call fcn.0040557d
or dword [ebp - 0x10], 4
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 5
jmp 0x4091e7
lea eax, [ebp - 0x54]
push eax
mov ecx, edi
call fcn.00405e93
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.00405e73
mov ecx, eax
call fcn.004089e8
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.00408c81
or dword [ebp - 0x10], 8
mov dword [ebp - 4], 6
push eax
lea ecx, [ebp + 0x1c]
call fcn.00407249
mov dword [ebp - 4], 7
test byte [ebp - 0x10], 8
je 0x40920e
and dword [ebp - 0x10], 0xfffffff7
push ebx
push esi
lea ecx, [ebp - 0xb0]
call fcn.00405621
test byte [ebp - 0x10], 4
mov byte [ebp - 4], 9
je 0x409222
push ebx
push esi
lea ecx, [ebp - 0x44]
call fcn.00405621
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.00427afc
push 0x43dc7c
lea eax, [ebp]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00408dda
lea ecx, [ebp + 0x70]
push ecx
push eax
lea eax, [ebp - 0xcc]
push eax
mov byte [ebp - 4], 0xa
call fcn.00408dda
lea ecx, [ebp + 0x1c]
push ecx
push eax
lea eax, [ebp - 0x94]
push eax
mov byte [ebp - 4], 0xb
call fcn.00408d17
add esp, 0x34
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp + 0x54]
mov byte [ebp - 4], 0xc
call fcn.0040583a
push ebx
push esi
lea ecx, [ebp - 0x94]
call fcn.00405621
push ebx
push esi
lea ecx, [ebp - 0xcc]
call fcn.00405621
push ebx
push esi
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 9
call fcn.00405621
push 0x43dc80
push dword [ebp - 0x20]
lea eax, [ebp - 0x70]
push eax
call fcn.00408dda
lea ecx, [ebp + 0x54]
push ecx
push eax
lea eax, [ebp + 0x38]
push eax
mov byte [ebp - 4], 0xd
call fcn.00408d17
add esp, 0x18
push ebx
push esi
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 9
call fcn.00405621
cmp dword [ebp + 0x50], 8
mov eax, dword [ebp + 0x3c]
jae 0x4092fc
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 0x409324
call fcn.00405621
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 0x3e8
jl 0x409225
jmp 0x409329
call fcn.00405621
mov ecx, dword [ebp - 0x18]
lea eax, [ebp + 0x54]
push eax
call fcn.00407249
push ebx
push esi
lea ecx, [ebp + 0x1c]
call fcn.00405621
push ebx
push esi
lea ecx, [ebp]
call fcn.00405621
push ebx
push esi
lea ecx, [ebp + 0x54]
call fcn.00405621
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.004267f0
add ebp, 0x94
leave
ret 4