Function at 0x405fe0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59ed93
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x628144]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x64], ebx
mov eax, dword [ebx]
or eax, dword [ebx + 4]
push 0
jne 0x40604c
call fcn.0044691c
mov ecx, dword [ebx + 8]
add esp, 4
shl ecx, 4
sub ecx, dword [ebx + 8]
shl ecx, 2
mov dword [ebx], eax
mov dword [ebx + 4], edx
test ecx, ecx
jle 0x406059
push ecx
push 0
call fcn.0042a88b
cdq
add esp, 8
add dword [ebx], eax
adc dword [ebx + 4], edx
jmp 0x406059
call fcn.0044691c
add esp, 4
mov dword [ebx], eax
mov dword [ebx + 4], edx
call fcn.00426513
test al, al
je 0x406074
pop edi
pop esi
push ebp
push esi
pop edi
push eax
pop eax
push esi
pop edx
pop edi
push ecx
pop eax
push edx
pop ecx
push ebp
pop ecx
push ebx
pop edx
call fcn.00426abc
test al, al
je 0x40609b
pop esp
push eax
pop esi
pop esi
push eax
push eax
push edi
push ecx
pop ebx
push eax
push edi
push ebp
pop esp
push eax
push esi
push ebp
push ecx
pop esi
push eax
pop edx
pop edi
push ecx
pop eax
push esp
push esi
pop edx
pop esp
pop ebx
push eax
push esi
call fcn.00426627
test al, al
je 0x4060b6
push eax
pop edi
pop ecx
push ebp
pop edi
pop ecx
push ecx
push ecx
push edi
pop ebp
pop ebx
pop ecx
push eax
push edi
push ebx
push edi
push ebx
push esp
mov ebx, dword [ebp - 0x64]
lea ecx, [ebp - 0x40]
xor eax, eax
mov dword [ebp - 0x2c], 0xf
push 0xffffffffffffffff
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
lea eax, [ebx + 0x110]
push 0
push eax
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
call fcn.004068b0
cmp dword [ebx + 0x128], 0
mov dword [ebp - 4], 0
je 0x4061eb
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
push 1
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
sub esp, 0x18
lea ecx, [ebp - 0x40]
mov eax, esp
push ecx
push eax
call fcn.0042bc94
mov ecx, dword [ebx + 0x128]
add esp, 8
push 0
call fcn.00402e60
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4061be
lea eax, [ebp - 0x5c]
push eax
sub esp, 0x18
mov ecx, esp
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 8
jb 0x40616e
mov eax, dword [ecx]
jmp 0x406170
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
mov word [eax], dx
lea eax, [ebp - 0x28]
push edx
push eax
call fcn.004022e0
call fcn.00428af3
mov dword [ebp - 0x60], eax
add esp, 0x1c
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 0
cmp eax, 8
jb 0x4061a5
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00402500
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
jmp 0x406301
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 0
cmp eax, 8
jb 0x4061d7
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00402500
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp dword [ebp - 0x30], 0
je 0x406301
push 0x1869f
push 0x2710
call fcn.0042a88b
add esp, 8
lea ecx, [ebp - 0x40]
mov esi, eax
push 1
push 0x5a3648
call fcn.00406780
push 6
push str.1cdfc7
lea ecx, [ebp - 0x40]
call fcn.00406780
push 1
push 0x5a3654
lea ecx, [ebp - 0x40]
call fcn.00406780
mov eax, esi
cdq
push edx
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00429ea9
add esp, 0xc
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.00406680
mov eax, dword [ebp - 0x44]
mov byte [ebp - 4], 0
cmp eax, 0x10
jb 0x406271
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00404a40
lea ecx, [ebp - 0xa4]
call fcn.00426edd
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 3
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.0042735e
lea ecx, [ebp - 0xa4]
call fcn.004278b5
mov esi, eax
mov ecx, 1
mov eax, dword [esi + 4]
sub eax, dword [esi]
cmove eax, ecx
mov dword [ebp - 0x5c], eax
inc eax
push eax
call fcn.004257d3
mov ecx, dword [ebp - 0x5c]
mov edi, eax
inc ecx
mov dword [ebp - 0x60], edi
push ecx
push 0
push edi
call fcn.00442fd0
mov ecx, dword [esi + 4]
add esp, 0x10
xor edx, edx
sub ecx, dword [esi]
je 0x4062f2
nop dword [eax]
mov eax, dword [esi]
mov al, byte [edx + eax]
mov byte [edx + edi], al
inc edx
mov eax, dword [esi + 4]
sub eax, dword [esi]
cmp edx, eax
jb 0x4062e0
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 0
call fcn.00426f53
call fcn.00426780
test al, al
je 0x40632d
pop esp
push edi
pop esi
pop esp
pop edx
push ebp
push ebp
pop edx
pop edx
pop ebp
pop edi
push edi
pop edx
pop eax
pop ecx
push esp
push ebp
push ebp
push ebp
push edx
pop esi
pop edi
push eax
pop ebp
pop edi
pop ebx
push ebx
pop edx
push eax
pop esi
pop edx
pop esi
mov ebx, dword [ebp - 0x64]
mov esi, dword [ebp - 0x60]
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x68]
mov dword [ebp - 0x68], 0
push eax
push dword [ebp - 0x5c]
mov dword [ebp - 0x70], 0
push esi
call fcn.0042c76f
mov eax, dword [ebp - 0x68]
add esp, 0x10
test eax, eax
jne 0x406375
push 0x8d
call fcn.0042cdf9
add esp, 4
test esi, esi
je 0x40638e
push esi
call fcn.004257dc
add esp, 4
jmp 0x40638e
push eax
mov ecx, ebx
call fcn.00405c10
test esi, esi
je 0x40638a
push esi
call fcn.004257dc
add esp, 4
mov byte [ebx + 0xc], 1
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x4063d8
mov ecx, dword [ebp - 0x40]
inc eax
cmp eax, 0x1000
jb 0x4063cf
test cl, 0x1f
je 0x4063ab
call fcn.00445a81
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x4063b7
call fcn.00445a81
sub ecx, eax
cmp ecx, 4
jae 0x4063c3
call fcn.00445a81
cmp ecx, 0x23
jbe 0x4063cd
call fcn.00445a81
mov ecx, eax
push ecx
call fcn.004257ce
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042578a
mov esp, ebp
pop ebp
ret