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

Disassembly:
push 0xffffffffffffffff
push 0x43a398
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x44cc30]
xor eax, esp
mov dword [esp + 0x140], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44cc30]
xor eax, esp
push eax
lea eax, [esp + 0x158]
mov dword fs:[0], eax
mov esi, dword [esp + 0x170]
mov edi, dword [esp + 0x168]
mov ebp, dword [esp + 0x16c]
xor ebx, ebx
push 0xffffffffffffffff
mov dword [esp + 0x20], ebx
push ebx
xor eax, eax
push esi
lea ecx, [esp + 0xec]
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x104], 7
mov dword [esp + 0x100], ebx
mov word [esp + 0xf0], ax
call fcn.00408440
push str._S
lea ecx, [esp + 0x3c]
push ebp
push ecx
mov dword [esp + 0x16c], ebx
call fcn.00409640
lea edx, [esp + 0xec]
push edx
push eax
lea eax, [esp + 0xd8]
push eax
mov byte [esp + 0x178], 1
call fcn.004094a0
mov ebp, 8
add esp, 0x18
cmp dword [eax + 0x18], ebp
jb 0x409c41
mov eax, dword [eax + 4]
jmp 0x409c44
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
sete byte [esp + 0x17]
cmp dword [esp + 0xdc], ebp
jb 0x409c6c
mov ecx, dword [esp + 0xc8]
push ecx
call fcn.004268c7
add esp, 4
xor edx, edx
mov dword [esp + 0xdc], 7
mov dword [esp + 0xd8], 0
mov word [esp + 0xc8], dx
mov byte [esp + 0x160], dl
cmp dword [esp + 0x50], ebp
jb 0x409ca6
mov eax, dword [esp + 0x3c]
push eax
call fcn.004268c7
add esp, 4
cmp byte [esp + 0x17], 0
je 0x409cf3
xor ecx, ecx
push 0xffffffffffffffff
push ecx
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], 0
lea edx, [esp + 0xe8]
mov word [edi + 4], cx
push edx
mov ecx, edi
call fcn.00408440
cmp dword [esp + 0xf8], ebp
jb 0x409cec
mov eax, dword [esp + 0xe4]
push eax
call fcn.004268c7
add esp, 4
mov eax, edi
jmp 0x40a25f
push 1
push 0xffffffffffffffff
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
mov dword [esp + 0x24], 0x2e
call fcn.00408ea0
mov edi, eax
mov dword [esp + 0x18], edi
cmp edi, 0xffffffff
jne 0x409d1d
mov eax, esi
jmp 0x409dd9
mov ecx, dword [esi + 0x18]
lea edi, [esi + 4]
cmp ecx, ebp
jb 0x409d2b
mov ebp, dword [edi]
jmp 0x409d2d
mov ebp, edi
test ebp, ebp
je 0x409d55
cmp ecx, 8
jb 0x409d3a
mov eax, dword [edi]
jmp 0x409d3c
mov eax, edi
cmp eax, ebp
ja 0x409d55
cmp ecx, 8
jb 0x409d49
mov eax, dword [edi]
jmp 0x409d4b
mov eax, edi
mov edx, dword [esi + 0x14]
lea eax, [eax + edx*2]
cmp ebp, eax
jbe 0x409d5a
call fcn.00426db5
mov ecx, dword [esp + 0x18]
push ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], ebp
call fcn.00408d80
mov edx, dword [eax + 4]
mov ebx, dword [eax]
mov eax, dword [esi + 0x18]
mov dword [esp + 0x24], edx
cmp eax, 8
jb 0x409d85
mov ebp, dword [edi]
jmp 0x409d87
mov ebp, edi
test ebp, ebp
je 0x409dab
cmp eax, 8
jb 0x409d94
mov ecx, dword [edi]
jmp 0x409d96
mov ecx, edi
cmp ecx, ebp
ja 0x409dab
cmp eax, 8
jb 0x409da1
mov edi, dword [edi]
mov eax, dword [esi + 0x14]
lea ecx, [edi + eax*2]
cmp ebp, ecx
jbe 0x409db0
call fcn.00426db5
mov edx, dword [esp + 0x24]
push edx
push ebx
push ebp
push esi
lea ecx, [esp + 0x48]
call fcn.00409350
mov edi, dword [esp + 0x18]
mov ebx, 2
mov byte [esp + 0x160], 2
mov dword [esp + 0x1c], ebx
lea ebp, [ebx + 6]
xor ecx, ecx
push 0xffffffffffffffff
push ecx
mov word [esp + 0x124], cx
push eax
lea ecx, [esp + 0x124]
mov dword [esp + 0x13c], 7
mov dword [esp + 0x138], 0
call fcn.00408440
mov dword [esp + 0x160], 4
test bl, 2
je 0x409e33
and ebx, 0xfffffffd
mov dword [esp + 0x1c], ebx
cmp dword [esp + 0x50], ebp
jb 0x409e33
mov edx, dword [esp + 0x3c]
push edx
call fcn.004268c7
add esp, 4
cmp edi, 0xffffffff
jne 0x409e63
xor eax, eax
mov dword [esp + 0x6c], 7
mov dword [esp + 0x68], 0
mov word [esp + 0x58], ax
lea eax, [esp + 0x54]
mov byte [esp + 0x160], 5
or ebx, 4
jmp 0x409f1c
mov edx, dword [esi + 0x18]
lea edi, [esi + 4]
cmp edx, ebp
jb 0x409e71
mov ecx, dword [edi]
jmp 0x409e73
mov ecx, edi
mov eax, dword [esi + 0x14]
add eax, eax
add ecx, eax
mov dword [esp + 0x28], ecx
je 0x409e9f
cmp edx, ebp
jb 0x409e88
mov edx, dword [edi]
jmp 0x409e8a
mov edx, edi
cmp edx, ecx
ja 0x409e9f
cmp dword [esi + 0x18], ebp
jb 0x409e97
mov edx, dword [edi]
jmp 0x409e99
mov edx, edi
add edx, eax
cmp ecx, edx
jbe 0x409ea4
call fcn.00426db5
mov ecx, dword [esi + 0x18]
cmp ecx, ebp
jb 0x409eaf
mov ebp, dword [edi]
jmp 0x409eb1
mov ebp, edi
test ebp, ebp
je 0x409ed5
cmp ecx, 8
jb 0x409ebe
mov eax, dword [edi]
jmp 0x409ec0
mov eax, edi
cmp eax, ebp
ja 0x409ed5
cmp ecx, 8
jb 0x409ecb
mov edi, dword [edi]
mov ecx, dword [esi + 0x14]
lea edx, [edi + ecx*2]
cmp ebp, edx
jbe 0x409eda
call fcn.00426db5
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], ebp
call fcn.00408d80
mov ecx, dword [esp + 0x28]
mov edx, dword [eax + 4]
mov eax, dword [eax]
push ecx
push esi
push edx
push eax
lea ecx, [esp + 0x80]
call fcn.00409350
mov dword [esp + 0x160], 6
or ebx, 8
mov ebp, 8
push 0xffffffffffffffff
xor edi, edi
xor ecx, ecx
push edi
mov word [esp + 0x108], cx
mov esi, 7
push eax
lea ecx, [esp + 0x108]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x120], esi
mov dword [esp + 0x11c], edi
call fcn.00408440
mov dword [esp + 0x160], esi
test bl, 8
je 0x409f89
and ebx, 0xfffffff7
cmp dword [esp + 0x88], ebp
jb 0x409f74
mov edx, dword [esp + 0x74]
push edx
call fcn.004268c7
add esp, 4
xor eax, eax
mov dword [esp + 0x88], esi
mov dword [esp + 0x84], edi
mov word [esp + 0x74], ax
mov byte [esp + 0x160], 9
test bl, 4
je 0x409fb8
cmp dword [esp + 0x6c], ebp
jb 0x409fa9
mov ecx, dword [esp + 0x58]
push ecx
call fcn.004268c7
add esp, 4
xor edx, edx
mov dword [esp + 0x6c], esi
mov dword [esp + 0x68], edi
mov word [esp + 0x58], dx
mov esi, 1
mov bl, 0xc
nop
xor eax, eax
push 0xa
push 0x10
lea ecx, [esp + 0x13c]
push ecx
push esi
mov word [esp + 0x144], ax
mov dword [esp + 0x146], eax
mov dword [esp + 0x14a], eax
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 word [esp + 0x162], ax
call fcn.004282bf
push 0x43e018
lea edx, [esp + 0x12c]
push edx
lea eax, [esp + 0xc0]
push eax
call fcn.00409640
lea ecx, [esp + 0x150]
push ecx
push eax
lea edx, [esp + 0x5c]
push edx
mov byte [esp + 0x188], 0xa
call fcn.00409640
lea ecx, [esp + 0x124]
push ecx
push eax
lea edx, [esp + 0xbc]
push edx
mov byte [esp + 0x194], 0xb
call fcn.004094a0
add esp, 0x34
push 0xffffffffffffffff
push edi
push eax
lea ecx, [esp + 0xec]
mov byte [esp + 0x16c], bl
call fcn.00408440
cmp dword [esp + 0xa4], ebp
jb 0x40a09b
mov eax, dword [esp + 0x90]
push eax
call fcn.004268c7
add esp, 4
xor ecx, ecx
mov dword [esp + 0xa4], 7
mov dword [esp + 0xa0], edi
mov word [esp + 0x90], cx
cmp dword [esp + 0x50], ebp
jb 0x40a0ca
mov edx, dword [esp + 0x3c]
push edx
call fcn.004268c7
add esp, 4
xor eax, eax
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], edi
mov word [esp + 0x3c], ax
mov byte [esp + 0x160], 9
cmp dword [esp + 0xc0], ebp
jb 0x40a0fe
mov ecx, dword [esp + 0xac]
push ecx
call fcn.004268c7
add esp, 4
mov edx, dword [esp + 0x30]
push 0x43e01c
push edx
lea eax, [esp + 0xb0]
push eax
call fcn.00409640
lea ecx, [esp + 0xec]
push ecx
push eax
lea edx, [esp + 0xd8]
push edx
mov byte [esp + 0x178], 0xd
call fcn.004094a0
add esp, 0x18
mov byte [esp + 0x160], 9
cmp dword [esp + 0xc0], ebp
jb 0x40a157
mov eax, dword [esp + 0xac]
push eax
call fcn.004268c7
add esp, 4
mov eax, dword [esp + 0xc8]
cmp dword [esp + 0xdc], ebp
jae 0x40a16e
lea eax, [esp + 0xc8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40a1a2
cmp dword [esp + 0xdc], ebp
jb 0x40a193
mov ecx, dword [esp + 0xc8]
push ecx
call fcn.004268c7
add esp, 4
inc esi
cmp esi, 0x3e8
jl 0x409fc0
jmp 0x40a1bb
cmp dword [esp + 0xdc], ebp
jb 0x40a1bb
mov edx, dword [esp + 0xc8]
push edx
call fcn.004268c7
add esp, 4
mov esi, dword [esp + 0x34]
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0xe8]
mov ebx, 7
xor eax, eax
push ecx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], edi
mov ecx, esi
mov word [esi + 4], ax
call fcn.00408440
cmp dword [esp + 0x114], ebp
jb 0x40a1fb
mov edx, dword [esp + 0x100]
push edx
call fcn.004268c7
add esp, 4
xor eax, eax
mov dword [esp + 0x114], ebx
mov dword [esp + 0x110], edi
mov word [esp + 0x100], ax
cmp dword [esp + 0x130], ebp
jb 0x40a22c
mov ecx, dword [esp + 0x11c]
push ecx
call fcn.004268c7
add esp, 4
xor edx, edx
mov dword [esp + 0x130], ebx
mov dword [esp + 0x12c], edi
mov word [esp + 0x11c], dx
cmp dword [esp + 0xf8], ebp
jb 0x40a25d
mov eax, dword [esp + 0xe4]
push eax
call fcn.004268c7
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x158]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.004271ab
add esp, 0x150
ret