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

Disassembly:
push 0xffffffffffffffff
push 0x43ba58
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
mov eax, dword [0x44a5d0]
xor eax, esp
mov dword [esp + 0x148], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44a5d0]
xor eax, esp
push eax
lea eax, [esp + 0x160]
mov dword fs:[0], eax
mov eax, dword [esp + 0x170]
mov ebp, dword [esp + 0x174]
mov esi, ecx
xor edi, edi
mov dword [esp + 0x18], edi
xor ecx, ecx
push 0xffffffffffffffff
mov dword [esp + 0x24], eax
mov word [esp + 0xf0], cx
push edi
mov eax, ebp
lea ecx, [esp + 0xf0]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x108], 7
mov dword [esp + 0x104], edi
call fcn.00408690
push esi
mov ebx, 0x441018
lea esi, [esp + 0x2c]
mov dword [esp + 0x16c], edi
call fcn.00409df0
add esp, 4
lea edx, [esp + 0xe8]
push edx
push eax
lea edi, [esp + 0xd4]
mov byte [esp + 0x170], 1
call fcn.00409eb0
mov esi, 8
add esp, 8
cmp dword [eax + 0x18], esi
jb 0x408fde
mov eax, dword [eax + 4]
jmp 0x408fe1
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
sete bl
cmp dword [esp + 0xe4], esi
jb 0x409007
mov eax, dword [esp + 0xd0]
push eax
call fcn.004258ad
add esp, 4
xor ecx, ecx
mov byte [esp + 0x168], cl
mov dword [esp + 0xe4], 7
mov dword [esp + 0xe0], 0
mov word [esp + 0xd0], cx
cmp dword [esp + 0x40], esi
jb 0x409041
mov edx, dword [esp + 0x2c]
push edx
call fcn.004258ad
add esp, 4
test bl, bl
je 0x40908e
mov edi, dword [esp + 0x20]
xor eax, eax
push 0xffffffffffffffff
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], 0
mov word [edi + 4], ax
push eax
lea eax, [esp + 0xf0]
mov ecx, edi
call fcn.00408690
cmp dword [esp + 0x100], esi
jb 0x409087
mov ecx, dword [esp + 0xec]
push ecx
call fcn.004258ad
add esp, 4
mov eax, edi
jmp 0x409521
lea edi, [esp + 0x1c]
mov ebx, ebp
mov dword [esp + 0x1c], 0x2e
call fcn.00409ba0
mov edi, eax
mov dword [esp + 0x1c], edi
cmp edi, 0xffffffff
jne 0x4090b4
mov ebx, dword [esp + 0x18]
mov eax, ebp
jmp 0x409100
push edi
lea ebx, [esp + 0x74]
mov edi, ebp
call fcn.00409830
lea ebx, [esp + 0x6c]
call fcn.00409900
lea ebx, [esp + 0x60]
mov esi, eax
call fcn.00409830
mov edx, dword [esi + 4]
mov ecx, dword [esi]
push edx
mov edx, dword [eax + 4]
mov eax, dword [eax]
push ecx
push edx
push eax
lea eax, [esp + 0x38]
call fcn.00409750
mov byte [esp + 0x168], 2
mov edi, dword [esp + 0x1c]
mov ebx, 2
mov dword [esp + 0x18], ebx
xor ecx, ecx
push 0xffffffffffffffff
mov word [esp + 0x128], cx
push ecx
mov esi, 7
lea ecx, [esp + 0x128]
mov dword [esp + 0x140], esi
mov dword [esp + 0x13c], 0
call fcn.00408690
mov dword [esp + 0x168], 4
test bl, 2
je 0x40915b
and ebx, 0xfffffffd
cmp dword [esp + 0x40], 8
mov dword [esp + 0x18], ebx
jb 0x40915b
mov edx, dword [esp + 0x2c]
push edx
call fcn.004258ad
add esp, 4
cmp edi, 0xffffffff
jne 0x409188
xor eax, eax
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], 0
mov word [esp + 0x48], ax
or ebx, 4
mov byte [esp + 0x168], 5
lea eax, [esp + 0x44]
mov dword [esp + 0x18], ebx
jmp 0x4091df
lea ebx, [esp + 0x60]
mov edi, ebp
call fcn.00409880
mov ecx, dword [esp + 0x1c]
push ecx
lea ebx, [esp + 0x6c]
mov esi, eax
call fcn.00409830
lea ebx, [esp + 0x74]
call fcn.00409900
mov edx, dword [esi + 4]
mov ecx, dword [esi]
push edx
mov edx, dword [eax + 4]
mov eax, dword [eax]
push ecx
push edx
push eax
lea eax, [esp + 0xa4]
call fcn.00409750
mov dword [esp + 0x168], 6
or dword [esp + 0x18], 8
mov ebx, dword [esp + 0x18]
mov esi, 7
xor ecx, ecx
xor edi, edi
push 0xffffffffffffffff
mov word [esp + 0x10c], cx
push edi
lea ecx, [esp + 0x10c]
mov dword [esp + 0x124], esi
mov dword [esp + 0x120], edi
call fcn.00408690
mov dword [esp + 0x168], esi
test bl, 8
je 0x409249
and ebx, 0xfffffff7
cmp dword [esp + 0xac], 8
jb 0x409231
mov edx, dword [esp + 0x98]
push edx
call fcn.004258ad
add esp, 4
xor eax, eax
mov dword [esp + 0xac], esi
mov dword [esp + 0xa8], edi
mov word [esp + 0x98], ax
mov byte [esp + 0x168], 9
test bl, 4
je 0x409279
cmp dword [esp + 0x5c], 8
jb 0x40926a
mov ecx, dword [esp + 0x48]
push ecx
call fcn.004258ad
add esp, 4
xor edx, edx
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], edi
mov word [esp + 0x48], dx
mov ebp, 1
xor eax, eax
push 0xa
push 0x10
lea ecx, [esp + 0x144]
push ecx
push ebp
mov word [esp + 0x14c], ax
mov dword [esp + 0x14e], eax
mov dword [esp + 0x152], eax
mov dword [esp + 0x156], eax
mov dword [esp + 0x15a], eax
mov dword [esp + 0x15e], eax
mov dword [esp + 0x162], eax
mov dword [esp + 0x166], eax
mov word [esp + 0x16a], ax
call fcn.00426e92
lea edx, [esp + 0x130]
push edx
mov ebx, 0x44101c
lea esi, [esp + 0x8c]
call fcn.00409df0
add esp, 0x14
push eax
lea ebx, [esp + 0x140]
lea esi, [esp + 0x2c]
mov byte [esp + 0x16c], 0xa
call fcn.00409df0
add esp, 4
lea ecx, [esp + 0x104]
push ecx
push eax
lea edi, [esp + 0xb8]
mov byte [esp + 0x170], 0xb
call fcn.00409eb0
add esp, 8
push 0xffffffffffffffff
xor ebx, ebx
push ebx
lea ecx, [esp + 0xf0]
mov byte [esp + 0x170], 0xc
call fcn.00408690
mov esi, 8
cmp dword [esp + 0xc8], esi
jb 0x409362
mov edx, dword [esp + 0xb4]
push edx
call fcn.004258ad
add esp, 4
xor eax, eax
mov edi, 7
mov dword [esp + 0xc8], edi
mov dword [esp + 0xc4], ebx
mov word [esp + 0xb4], ax
cmp dword [esp + 0x40], esi
jb 0x409392
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.004258ad
add esp, 4
xor edx, edx
mov byte [esp + 0x168], 9
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], ebx
mov word [esp + 0x2c], dx
cmp dword [esp + 0x90], esi
jb 0x4093bf
mov eax, dword [esp + 0x7c]
push eax
call fcn.004258ad
add esp, 4
mov ecx, dword [esp + 0x24]
push ecx
mov ebx, 0x441018
lea esi, [esp + 0x7c]
call fcn.00409df0
add esp, 4
lea edx, [esp + 0xe8]
push edx
push eax
lea edi, [esp + 0xd4]
mov byte [esp + 0x170], 0xd
call fcn.00409eb0
mov edi, 8
add esp, 8
mov byte [esp + 0x168], 9
cmp dword [esp + 0x90], edi
jb 0x409418
mov eax, dword [esp + 0x7c]
push eax
call fcn.004258ad
add esp, 4
mov eax, dword [esp + 0xd0]
cmp dword [esp + 0xe4], edi
jae 0x40942f
lea eax, [esp + 0xd0]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x409463
cmp dword [esp + 0xe4], edi
jb 0x409454
mov ecx, dword [esp + 0xd0]
push ecx
call fcn.004258ad
add esp, 4
inc ebp
cmp ebp, 0x3e8
jl 0x40927e
jmp 0x40947c
cmp dword [esp + 0xe4], edi
jb 0x40947c
mov edx, dword [esp + 0xd0]
push edx
call fcn.004258ad
add esp, 4
mov esi, dword [esp + 0x20]
xor ebp, ebp
xor eax, eax
mov ebx, 7
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebp
push 0xffffffffffffffff
mov word [esi + 4], ax
push ebp
lea eax, [esp + 0xf0]
mov ecx, esi
call fcn.00408690
cmp dword [esp + 0x11c], edi
jb 0x4094bd
mov ecx, dword [esp + 0x108]
push ecx
call fcn.004258ad
add esp, 4
xor edx, edx
mov dword [esp + 0x11c], ebx
mov dword [esp + 0x118], ebp
mov word [esp + 0x108], dx
cmp dword [esp + 0x138], edi
jb 0x4094ee
mov eax, dword [esp + 0x124]
push eax
call fcn.004258ad
add esp, 4
xor ecx, ecx
mov dword [esp + 0x138], ebx
mov dword [esp + 0x134], ebp
mov word [esp + 0x124], cx
cmp dword [esp + 0x100], edi
jb 0x40951f
mov edx, dword [esp + 0xec]
push edx
call fcn.004258ad
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x160]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.00425821
add esp, 0x158
ret