Function at 0x40e1e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52d79c
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
mov eax, dword [0x57a438]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xd0], edx
mov esi, ecx
mov dword [ebp - 0xcc], esi
mov edi, dword [ebp + 8]
push esi
mov dword [ebp - 0xdc], edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40e526
cmp dword [edi + 0x14], 0x10
mov eax, edi
mov dword [edi + 0x10], 0
jb 0x40e244
mov eax, dword [edi]
push 0xb8
mov byte [eax], 0
xor edi, edi
lea eax, [ebp - 0xc8]
push edi
push eax
call fcn.004fecc0
add esp, 0xc
lea ecx, [ebp - 0xc8]
push 1
call fcn.00415a10
sub esp, 8
mov dword [ebp - 4], edi
lea ecx, [ebp - 0xc8]
push esi
call fcn.004158f0
mov ecx, dword [ebp - 0xc8]
lea esi, [edi + 5]
mov eax, dword [ecx + 4]
test byte [ebp + eax - 0xbc], 6
je 0x40e2d6
mov edi, dword [ebp - 0xcc]
nop dword [eax]
mov eax, esi
dec esi
test eax, eax
jle 0x40e2d4
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
sub esp, 8
lea ecx, [ebp - 0xc8]
push edi
call fcn.004158f0
mov ecx, dword [ebp - 0xc8]
mov eax, dword [ecx + 4]
test byte [ebp + eax - 0xbc], 6
jne 0x40e2a0
xor edi, edi
mov eax, dword [ecx + 4]
test byte [ebp + eax - 0xbc], 6
jne 0x40e519
push 2
sub esp, 8
lea ecx, [ebp - 0xc8]
call fcn.00416650
lea eax, [ebp - 0xc8]
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp - 0xc8]
mov eax, dword [eax + 4]
mov ecx, dword [ebp + eax - 0x90]
test ecx, ecx
je 0x40e31c
mov eax, dword [ecx]
call dword [eax + 4]
push 1
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 1
call fcn.00417670
mov byte [ebp - 0xd4], al
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0xc8]
mov ecx, dword [eax + 4]
test byte [ebp + ecx - 0xbc], 6
jne 0x40e371
mov ecx, dword [ebp + ecx - 0x90]
lea edx, [ebp - 0xf4]
push 1
push 1
push 0
mov eax, dword [ecx]
push 0
push edx
call dword [eax + 0x28]
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0xc8]
jmp 0x40e393
xorps xmm0, xmm0
mov dword [ebp - 0xf4], 0xffffffff
mov dword [ebp - 0xf0], 0xffffffff
movups xmmword [ebp - 0xec], xmm0
mov byte [ebp - 4], 4
mov eax, dword [eax + 4]
mov ecx, dword [ebp + eax - 0x90]
test ecx, ecx
je 0x40e3a6
mov eax, dword [ecx]
call dword [eax + 8]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0xf4]
add eax, dword [ebp - 0xec]
mov dword [ebp - 0xd4], eax
test eax, eax
jle 0x40e4a3
lea esi, [eax + 1]
push esi
call fcn.004acc39
push esi
mov esi, eax
mov dword [ebp - 0xcc], eax
push 0
push esi
call fcn.004fecc0
add esp, 0x10
lea ecx, [ebp - 0xc8]
push 0
sub esp, 8
call fcn.00416650
mov eax, dword [ebp - 0xd4]
lea ecx, [ebp - 0xc8]
cdq
push edx
push eax
push esi
call fcn.00416750
mov eax, dword [ebp - 0xc8]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0xbc], 6
jne 0x40e498
push esi
lea ecx, [ebp - 0xf4]
call fcn.00408f10
push dword [ebp - 0xdc]
lea eax, [ebp - 0xf4]
mov byte [ebp - 4], 6
push dword [ebp - 0xd0]
push eax
call fcn.004bec30
mov byte [ebp - 4], 0
add esp, 0xc
mov edx, dword [ebp - 0xe0]
mov dword [ebp - 0xd0], eax
cmp edx, 0x10
jb 0x40e48e
mov ecx, dword [ebp - 0xf4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40e47e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e541
push edx
push ecx
call fcn.004ac6c8
mov eax, dword [ebp - 0xd0]
add esp, 8
test eax, eax
mov ecx, 1
cmovne edi, ecx
push esi
call fcn.004acc34
add esp, 4
jmp 0x40e4a8
mov edi, 1
cmp dword [ebp - 0x6c], 0
lea esi, [ebp - 0xb8]
jne 0x40e4b8
xor esi, esi
jmp 0x40e4dc
lea ecx, [ebp - 0xb8]
call fcn.004171e0
push dword [ebp - 0x6c]
xor ecx, ecx
test al, al
cmove esi, ecx
call fcn.005115f3
xor ecx, ecx
add esp, 4
test eax, eax
cmovne esi, ecx
push 2
push 0
lea ecx, [ebp - 0xb8]
call fcn.004172a0
test esi, esi
jne 0x40e519
mov eax, dword [ebp - 0xc8]
lea ecx, [ebp - 0xc8]
xor edx, edx
push esi
mov eax, dword [eax + 4]
add ecx, eax
cmp dword [ecx + 0x38], edx
sete dl
lea edx, [edx*4 + 2]
or edx, dword [ecx + 0xc]
push edx
call fcn.00409340
lea ecx, [ebp - 0xc8]
call fcn.0040e550
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ac694
mov esp, ebp
pop ebp
ret
call fcn.005026a0
int3