Function at 0x416850
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x575473
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x5e10a4]
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 edi, ecx
mov eax, dword [edi]
or eax, dword [edi + 4]
push 0
jne 0x4168b9
call fcn.00447e8e
mov ecx, dword [edi + 8]
add esp, 4
shl ecx, 4
sub ecx, dword [edi + 8]
shl ecx, 2
mov dword [edi], eax
mov dword [edi + 4], edx
test ecx, ecx
jle 0x4168c6
push ecx
push 0
call fcn.00437575
cdq
add esp, 8
add dword [edi], eax
adc dword [edi + 4], edx
jmp 0x4168c6
call fcn.00447e8e
add esp, 4
mov dword [edi], eax
mov dword [edi + 4], edx
xor ebx, ebx
mov dword [ebp - 0x2c], 0xf
push 0xffffffffffffffff
lea eax, [edi + 0x110]
mov dword [ebp - 0x5c], ebx
push ebx
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], ebx
mov byte [ebp - 0x40], bl
call fcn.00408c80
mov dword [ebp - 4], ebx
cmp dword [edi + 0x128], ebx
je 0x4169e0
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], ebx
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.0043626f
mov ecx, dword [edi + 0x128]
add esp, 8
push ebx
call fcn.00414980
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 0x4169b3
lea eax, [ebp - 0x5c]
push eax
sub esp, 0x18
mov ecx, esp
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], ebx
cmp dword [ecx + 0x14], 8
jb 0x416964
mov eax, dword [ecx]
jmp 0x416966
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
mov word [eax], dx
lea eax, [ebp - 0x28]
push edx
push eax
call fcn.004091c0
call fcn.00436d81
mov ebx, eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
add esp, 0x1c
cmp eax, 8
jb 0x41699a
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00409050
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
jmp 0x416af1
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 0
cmp eax, 8
jb 0x4169cc
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00409050
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp dword [ebp - 0x30], 0
je 0x416af1
push 0x1869f
push 0x2710
call fcn.00437575
add esp, 8
lea ecx, [ebp - 0x40]
mov esi, eax
push 1
push 0x57afa4
call fcn.00408db0
push 5
push str.3ef31
lea ecx, [ebp - 0x40]
call fcn.00408db0
push 1
push 0x57afb0
lea ecx, [ebp - 0x40]
call fcn.00408db0
mov eax, esi
cdq
push edx
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.004370f8
add esp, 0xc
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.00408ee0
mov eax, dword [ebp - 0x44]
mov byte [ebp - 4], 0
cmp eax, 0x10
jb 0x416a66
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.004090b0
lea ecx, [ebp - 0x9c]
call fcn.0042f212
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 3
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.0042f407
lea ecx, [ebp - 0x9c]
call fcn.0042f6ed
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.00427130
mov ecx, dword [ebp - 0x5c]
mov ebx, eax
inc ecx
push ecx
push 0
push ebx
call fcn.0043fcd0
mov ecx, dword [esi + 4]
add esp, 0x10
xor edx, edx
sub ecx, dword [esi]
je 0x416ae2
nop dword [eax + eax]
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 0x416ad0
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 0
call fcn.0042f254
lea eax, [ebp - 0x68]
mov dword [ebp - 0x60], 0
push eax
lea eax, [ebp - 0x60]
mov dword [ebp - 0x68], 0
push eax
push dword [ebp - 0x5c]
push ebx
call fcn.004375c5
mov eax, dword [ebp - 0x60]
add esp, 0x10
test eax, eax
jne 0x416b36
push 0x8d
call fcn.00433eb0
add esp, 4
test ebx, ebx
je 0x416b4f
push ebx
call fcn.00427139
add esp, 4
jmp 0x416b4f
push eax
mov ecx, edi
call fcn.00416560
test ebx, ebx
je 0x416b4b
push ebx
call fcn.00427139
add esp, 4
mov byte [edi + 0xc], 1
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x416b99
mov ecx, dword [ebp - 0x40]
inc eax
cmp eax, 0x1000
jb 0x416b90
test cl, 0x1f
je 0x416b6c
call fcn.00442951
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x416b78
call fcn.00442951
sub ecx, eax
cmp ecx, 4
jae 0x416b84
call fcn.00442951
cmp ecx, 0x23
jbe 0x416b8e
call fcn.00442951
mov ecx, eax
push ecx
call fcn.0042711d
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.004273c3
mov esp, ebp
pop ebp
ret