Function at 0x406550
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59e443
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x6280b8]
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 esi, ecx
mov dword [ebp - 0x64], esi
mov eax, dword [esi]
or eax, dword [esi + 4]
push 0
jne 0x4065bc
call fcn.004492be
mov ecx, dword [esi + 8]
add esp, 4
shl ecx, 4
sub ecx, dword [esi + 8]
shl ecx, 2
mov dword [esi], eax
mov dword [esi + 4], edx
test ecx, ecx
jle 0x4065c9
push ecx
push 0
call fcn.0042b6ed
cdq
add esp, 8
add dword [esi], eax
adc dword [esi + 4], edx
jmp 0x4065c9
call fcn.004492be
add esp, 4
mov dword [esi], eax
mov dword [esi + 4], edx
call fcn.0042b9ee
test al, al
je 0x4065ec
pop edx
pop edx
push esi
pop esp
pop edi
pop eax
pop ebx
push eax
pop edx
push eax
push eax
push eax
pop ebp
push esi
push edi
push esp
push ecx
push ebx
pop edx
push ebx
push esp
push edx
push ebx
pop edi
push esp
push ebx
call fcn.0042bc5b
test al, al
je 0x406611
pop edi
pop esi
push ecx
pop ecx
pop edi
push ebx
pop ebx
push esp
pop esi
pop ebx
pop edx
push esp
pop ebx
pop edx
pop ebp
pop esp
pop edx
push esi
push esi
push ecx
pop ebx
push eax
pop edi
push edx
push edx
mov esi, dword [ebp - 0x64]
xor eax, eax
mov dword [ebp - 0x2c], 0xf
push 0xffffffffffffffff
mov dword [ebp - 0x60], eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x5c], eax
lea eax, [esi + 0x110]
push 0
push eax
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
call fcn.004021a0
mov dword [ebp - 4], 0
cmp dword [esi + 0x128], 0
je 0x406743
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.0042f5ce
mov ecx, dword [esi + 0x128]
add esp, 8
push 0
call fcn.00404fe0
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 0x406716
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 0x4066c6
mov eax, dword [ecx]
jmp 0x4066c8
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
mov word [eax], dx
lea eax, [ebp - 0x28]
push edx
push eax
call fcn.00401e80
call fcn.00428faa
mov dword [ebp - 0x60], eax
add esp, 0x1c
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4066fd
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00402340
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
jmp 0x406848
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x40672f
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00402340
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp dword [ebp - 0x30], 0
je 0x406848
push 0x1869f
push 0x2710
call fcn.0042b6ed
add esp, 8
lea ecx, [ebp - 0x40]
mov esi, eax
push 1
push 0x61df38
call fcn.004075a0
push 6
push str.1e9d2b
lea ecx, [ebp - 0x40]
call fcn.004075a0
push 1
push 0x61df44
lea ecx, [ebp - 0x40]
call fcn.004075a0
mov eax, esi
cdq
push edx
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00427eb6
add esp, 0xc
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.004076d0
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0
call fcn.00401bc0
lea ecx, [ebp - 0xa4]
call fcn.0042a410
mov byte [ebp - 4], 3
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 0x10
lea ecx, [ebp - 0xa4]
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.0042a88f
lea ecx, [ebp - 0xa4]
call fcn.0042ac84
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.004201b8
mov ecx, dword [ebp - 0x5c]
mov ebx, eax
inc ecx
mov dword [ebp - 0x60], ebx
push ecx
push 0
push ebx
call fcn.00443040
mov ecx, dword [esi + 4]
add esp, 0x10
xor edx, edx
sub ecx, dword [esi]
je 0x406836
mov eax, dword [esi]
mov al, byte [edx + eax]
mov byte [edx + ebx], al
inc edx
mov eax, dword [esi + 4]
sub eax, dword [esi]
cmp edx, eax
jb 0x406824
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 0
call fcn.0042a486
mov esi, dword [ebp - 0x64]
call fcn.0042b9a9
test al, al
je 0x406866
push ecx
push ecx
push esi
pop ebp
pop ebx
push esp
push ebx
push ecx
pop eax
pop ebp
pop ebp
pop ecx
pop edx
pop edi
push edi
push esi
push esp
push ebp
push eax
pop eax
pop edx
mov ebx, 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 ebx
call fcn.0042ce71
mov eax, dword [ebp - 0x68]
add esp, 0x10
test eax, eax
jne 0x4068ae
push 0x8d
call fcn.0042c875
add esp, 4
test ebx, ebx
je 0x4068c7
push ebx
call fcn.004201b3
add esp, 4
jmp 0x4068c7
push eax
mov ecx, esi
call fcn.00406b60
test ebx, ebx
je 0x4068c3
push ebx
call fcn.004201b3
add esp, 4
mov byte [esi + 0xc], 1
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x406911
mov ecx, dword [ebp - 0x40]
inc eax
cmp eax, 0x1000
jb 0x406908
test cl, 0x1f
je 0x4068e4
call fcn.004484c1
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x4068f0
call fcn.004484c1
sub ecx, eax
cmp ecx, 4
jae 0x4068fc
call fcn.004484c1
cmp ecx, 0x23
jbe 0x406906
call fcn.004484c1
mov ecx, eax
push ecx
call fcn.0041feb4
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.0041feb9
mov esp, ebp
pop ebp
ret