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

Disassembly:
push 0xffffffffffffffff
push 0x452718
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x468d80]
xor eax, esp
mov dword [esp + 0x140], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x468d80]
xor eax, esp
push eax
lea eax, [esp + 0x158]
mov dword fs:[0], eax
mov esi, dword [esp + 0x168]
xor ebx, ebx
push 0xffffffffffffffff
mov edi, ecx
mov dword [esp + 0x20], ebx
push ebx
mov ebp, edx
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.00408900
push str._S
lea ecx, [esp + 0x3c]
push ebp
push ecx
mov dword [esp + 0x16c], ebx
call fcn.00410160
lea edx, [esp + 0xec]
push edx
push eax
lea eax, [esp + 0xd8]
push eax
mov byte [esp + 0x178], 1
call fcn.0040ffd0
mov ebp, 8
add esp, 0x18
cmp dword [eax + 0x18], ebp
jb 0x410757
mov eax, dword [eax + 4]
jmp 0x41075a
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 0x410782
mov ecx, dword [esp + 0xc8]
push ecx
call fcn.0043e5e6
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 0x4107bc
mov eax, dword [esp + 0x3c]
push eax
call fcn.0043e5e6
add esp, 4
cmp byte [esp + 0x17], 0
je 0x410809
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.00408900
cmp dword [esp + 0xf8], ebp
jb 0x410802
mov eax, dword [esp + 0xe4]
push eax
call fcn.0043e5e6
add esp, 4
mov eax, edi
jmp 0x410d74
push 1
push 0xffffffffffffffff
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
mov dword [esp + 0x24], 0x2e
call fcn.0040fac0
mov edi, eax
mov dword [esp + 0x18], edi
cmp edi, 0xffffffff
jne 0x410833
mov eax, esi
jmp 0x4108ef
mov ecx, dword [esi + 0x18]
lea edi, [esi + 4]
cmp ecx, ebp
jb 0x410841
mov ebp, dword [edi]
jmp 0x410843
mov ebp, edi
test ebp, ebp
je 0x41086b
cmp ecx, 8
jb 0x410850
mov eax, dword [edi]
jmp 0x410852
mov eax, edi
cmp eax, ebp
ja 0x41086b
cmp ecx, 8
jb 0x41085f
mov eax, dword [edi]
jmp 0x410861
mov eax, edi
mov edx, dword [esi + 0x14]
lea eax, [eax + edx*2]
cmp ebp, eax
jbe 0x410870
call fcn.0043ead4
mov ecx, dword [esp + 0x18]
push ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], ebp
call fcn.0040fa30
mov edx, dword [eax + 4]
mov ebp, dword [eax]
mov eax, dword [esi + 0x18]
mov dword [esp + 0x24], edx
cmp eax, 8
jb 0x41089b
mov ebx, dword [edi]
jmp 0x41089d
mov ebx, edi
test ebx, ebx
je 0x4108c1
cmp eax, 8
jb 0x4108aa
mov ecx, dword [edi]
jmp 0x4108ac
mov ecx, edi
cmp ecx, ebx
ja 0x4108c1
cmp eax, 8
jb 0x4108b7
mov edi, dword [edi]
mov eax, dword [esi + 0x14]
lea ecx, [edi + eax*2]
cmp ebx, ecx
jbe 0x4108c6
call fcn.0043ead4
mov edx, dword [esp + 0x24]
push edx
push ebp
push ebx
push esi
lea ecx, [esp + 0x48]
call fcn.0040feb0
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.00408900
mov dword [esp + 0x160], 4
test bl, 2
je 0x410949
and ebx, 0xfffffffd
mov dword [esp + 0x1c], ebx
cmp dword [esp + 0x50], ebp
jb 0x410949
mov edx, dword [esp + 0x3c]
push edx
call fcn.0043e5e6
add esp, 4
cmp edi, 0xffffffff
jne 0x410979
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 0x410a32
mov edx, dword [esi + 0x18]
lea edi, [esi + 4]
cmp edx, ebp
jb 0x410987
mov ecx, dword [edi]
jmp 0x410989
mov ecx, edi
mov eax, dword [esi + 0x14]
add eax, eax
add ecx, eax
mov dword [esp + 0x28], ecx
je 0x4109b5
cmp edx, ebp
jb 0x41099e
mov edx, dword [edi]
jmp 0x4109a0
mov edx, edi
cmp edx, ecx
ja 0x4109b5
cmp dword [esi + 0x18], ebp
jb 0x4109ad
mov edx, dword [edi]
jmp 0x4109af
mov edx, edi
add edx, eax
cmp ecx, edx
jbe 0x4109ba
call fcn.0043ead4
mov ecx, dword [esi + 0x18]
cmp ecx, ebp
jb 0x4109c5
mov ebp, dword [edi]
jmp 0x4109c7
mov ebp, edi
test ebp, ebp
je 0x4109eb
cmp ecx, 8
jb 0x4109d4
mov eax, dword [edi]
jmp 0x4109d6
mov eax, edi
cmp eax, ebp
ja 0x4109eb
cmp ecx, 8
jb 0x4109e1
mov edi, dword [edi]
mov ecx, dword [esi + 0x14]
lea edx, [edi + ecx*2]
cmp ebp, edx
jbe 0x4109f0
call fcn.0043ead4
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], ebp
call fcn.0040fa30
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.0040feb0
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.00408900
mov dword [esp + 0x160], esi
test bl, 8
je 0x410a9f
and ebx, 0xfffffff7
cmp dword [esp + 0x88], ebp
jb 0x410a8a
mov edx, dword [esp + 0x74]
push edx
call fcn.0043e5e6
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 0x410ace
cmp dword [esp + 0x6c], ebp
jb 0x410abf
mov ecx, dword [esp + 0x58]
push ecx
call fcn.0043e5e6
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
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.00440656
push 0x458930
lea edx, [esp + 0x12c]
push edx
lea eax, [esp + 0xc0]
push eax
call fcn.00410160
lea ecx, [esp + 0x150]
push ecx
push eax
lea edx, [esp + 0x5c]
push edx
mov byte [esp + 0x188], 0xa
call fcn.00410160
lea ecx, [esp + 0x124]
push ecx
push eax
lea edx, [esp + 0xbc]
push edx
mov byte [esp + 0x194], 0xb
call fcn.0040ffd0
add esp, 0x34
push 0xffffffffffffffff
push edi
push eax
lea ecx, [esp + 0xec]
mov byte [esp + 0x16c], bl
call fcn.00408900
cmp dword [esp + 0xa4], ebp
jb 0x410bb0
mov eax, dword [esp + 0x90]
push eax
call fcn.0043e5e6
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 0x410bdf
mov edx, dword [esp + 0x3c]
push edx
call fcn.0043e5e6
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 0x410c13
mov ecx, dword [esp + 0xac]
push ecx
call fcn.0043e5e6
add esp, 4
mov edx, dword [esp + 0x30]
push 0x458934
push edx
lea eax, [esp + 0xb0]
push eax
call fcn.00410160
lea ecx, [esp + 0xec]
push ecx
push eax
lea edx, [esp + 0xd8]
push edx
mov byte [esp + 0x178], 0xd
call fcn.0040ffd0
add esp, 0x18
mov byte [esp + 0x160], 9
cmp dword [esp + 0xc0], ebp
jb 0x410c6c
mov eax, dword [esp + 0xac]
push eax
call fcn.0043e5e6
add esp, 4
mov eax, dword [esp + 0xc8]
cmp dword [esp + 0xdc], ebp
jae 0x410c83
lea eax, [esp + 0xc8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x410cb7
cmp dword [esp + 0xdc], ebp
jb 0x410ca8
mov ecx, dword [esp + 0xc8]
push ecx
call fcn.0043e5e6
add esp, 4
inc esi
cmp esi, 0x3e8
jl 0x410ad5
jmp 0x410cd0
cmp dword [esp + 0xdc], ebp
jb 0x410cd0
mov edx, dword [esp + 0xc8]
push edx
call fcn.0043e5e6
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.00408900
cmp dword [esp + 0x114], ebp
jb 0x410d10
mov edx, dword [esp + 0x100]
push edx
call fcn.0043e5e6
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 0x410d41
mov ecx, dword [esp + 0x11c]
push ecx
call fcn.0043e5e6
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 0x410d72
mov eax, dword [esp + 0xe4]
push eax
call fcn.0043e5e6
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.0043eed8
add esp, 0x150
ret 4