Function at 0x414de0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x596640
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x60f520]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
call fcn.00428040
test eax, eax
je 0x415127
call fcn.0050b280
test al, al
jne 0x415127
call fcn.0050b330
test al, al
jne 0x415127
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx]
sub ecx, 0x10
call fcn.0040c3c0
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
call fcn.0040bce0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x414e67
push 0x80004005
call fcn.0040c390
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 1
call fcn.0040bce0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x414e94
push 0x80004005
call fcn.0040c390
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 2
push dword [ebx]
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push eax
lea ecx, [ebp - 0x24]
call fcn.0040c2d0
mov byte [ebp - 4], 3
push 0x5b5504
push dword [ebp - 0x24]
call fcn.00551d79
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 8
test eax, eax
jne 0x414f62
lea eax, [ebp - 0x20]
mov ecx, ebx
push eax
lea eax, [ebp - 0x1c]
push eax
lea edx, [ebp - 0x14]
call fcn.0050b870
mov eax, dword [ebp - 0x14]
add esp, 8
cmp dword [eax - 0xc], 0
jle 0x414f69
push eax
call esi
test eax, eax
jne 0x414f62
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
jge 0x414f0b
or esi, 0xffffffff
jmp 0x414f29
push str.__x86_
push eax
call fcn.00552a08
mov esi, eax
add esp, 8
test esi, esi
jne 0x414f24
or esi, 0xffffffff
jmp 0x414f29
sub esi, dword [ebp - 0x14]
sar esi, 1
call fcn.0050acc0
cmp dword [0x640f9c], 0
je 0x414f5c
test esi, esi
jle 0x414f5c
push 6
push esi
lea ecx, [ebp - 0x14]
call fcn.00415140
push dword [ebp - 0x14]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call esi
test eax, eax
jne 0x414f62
xor ebx, ebx
jmp 0x41508d
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
je 0x414f55
push eax
call esi
test eax, eax
je 0x414f55
xor ebx, ebx
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], ebx
mov byte [ebp - 4], 4
xor esi, esi
mov eax, dword [edi + 8]
sub eax, dword [edi + 4]
sar eax, 3
test eax, eax
je 0x415055
mov eax, dword [edi + 4]
lea edx, [ebp - 0x20]
push edx
lea edx, [ebp - 0x1c]
push edx
mov ecx, dword [eax + esi*8]
lea edx, [ebp - 0x14]
push edx
push dword [ebp + 8]
mov eax, dword [ecx]
call dword [eax + 4]
test eax, eax
jne 0x414fc6
mov eax, dword [edi + 8]
inc esi
sub eax, dword [edi + 4]
sar eax, 3
cmp esi, eax
jb 0x414f95
jmp 0x415055
mov eax, dword [edi + 4]
lea ecx, [ebp - 0x2c]
lea eax, [eax + esi*8]
push eax
call fcn.00409fc0
mov esi, dword [ebp - 0x2c]
test esi, esi
je 0x415052
push esi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [edi + 0x10]
call fcn.004653c0
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], 0
jle 0x415034
mov eax, dword [esi]
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x14]
push ecx
mov ecx, esi
call dword [eax + 0xc]
mov byte [ebp - 4], 4
or esi, 0xffffffff
mov edx, dword [ebp - 0x18]
mov ecx, esi
add edx, 0xfffffff0
mov dword [ebp + 8], eax
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41502f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x28]
jmp 0x41505f
lea edx, [eax - 0x10]
mov byte [ebp - 4], 4
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x415052
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x28]
mov dword [ebp + 8], 0
or esi, 0xffffffff
mov byte [ebp - 4], 3
test ebx, ebx
je 0x41508a
lea eax, [ebx + 4]
mov ecx, esi
lock xadd dword [eax], ecx
jne 0x41508a
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
lea eax, [ebx + 8]
mov edx, esi
lock xadd dword [eax], edx
jne 0x41508a
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
mov ebx, dword [ebp + 8]
mov byte [ebp - 4], 2
or esi, 0xffffffff
mov edx, dword [ebp - 0x24]
mov ecx, esi
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4150b0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov ecx, esi
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4150d0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov ecx, esi
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4150f0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edi, dword [ebp - 0x14]
add edi, 0xfffffff0
lea eax, [edi + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x415111
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4