Function at 0x413280
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c29d5
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x4e84c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], 0
call fcn.00404890
cmp dword [ebp + 0x20], 0x10
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x413500
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x4ec364]
cmp eax, dword [ecx + 8]
jle 0x41333d
push 0x4ec364
call fcn.0049c29e
add esp, 4
cmp dword [0x4ec364], 0xffffffff
jne 0x41333d
push 0x4c7390
mov dword [0x4ec358], 0
mov dword [0x4ec35c], 0
mov dword [0x4ec360], 0
call fcn.0049c5b0
add esp, 4
push 0x4ec364
call fcn.0049c254
add esp, 4
lea eax, [ebp + 0xc]
mov ecx, 0x4ec358
push eax
call fcn.00433870
mov edx, eax
test edx, edx
je 0x413500
cmp byte [ebp + 8], 0
mov ecx, dword [edx + 0x20]
mov dword [edi + 0x14], ecx
mov ecx, dword [edx + 0x28]
mov dword [edi + 0x1c], ecx
mov eax, dword [edx + 0x2c]
mov dword [edi + 0x20], eax
je 0x413373
mov eax, dword [edx + 0x24]
mov dword [edi + 0x18], eax
mov eax, dword [ecx]
push ecx
call dword [eax + 0xc]
mov edx, dword [edi + 0x24]
lea ebx, [edi + 0x24]
mov esi, dword [edi + 0x20]
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 4]
mov ecx, eax
sub ecx, edx
mov dword [ebp - 0x18], eax
sar ecx, 2
cmp esi, ecx
jae 0x41339b
lea eax, [edx + esi*4]
jmp 0x4133cc
jbe 0x4133cf
mov eax, dword [ebx + 8]
sub eax, edx
sar eax, 2
cmp esi, eax
jbe 0x4133b4
push ecx
push esi
mov ecx, ebx
call fcn.00413560
jmp 0x4133cf
sub esi, ecx
shl esi, 2
push esi
push 0
push dword [ebp - 0x18]
call fcn.0049f000
mov eax, dword [ebp - 0x18]
add esp, 0xc
add eax, esi
mov dword [ebx + 4], eax
xor esi, esi
cmp dword [edi + 0x20], esi
jle 0x413408
mov edi, dword [ebp - 0x14]
add edi, 0x44
nop dword [eax]
mov eax, dword [edi]
test eax, eax
je 0x4133f3
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x41340f
mov dword [edi], eax
mov eax, dword [ebx]
mov dword [eax + esi*4], 0
mov eax, dword [ebp - 0x1c]
inc esi
add edi, 0x48
cmp esi, dword [eax + 0x20]
jl 0x4133e0
xor esi, esi
jmp 0x413505
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x4ec364]
cmp eax, dword [ecx + 8]
jle 0x413472
push 0x4ec364
call fcn.0049c29e
add esp, 4
cmp dword [0x4ec364], 0xffffffff
jne 0x413472
push 0x4c7390
mov dword [0x4ec358], 0
mov dword [0x4ec35c], 0
mov dword [0x4ec360], 0
call fcn.0049c5b0
add esp, 4
push 0x4ec364
call fcn.0049c254
add esp, 4
mov edx, dword [edi]
mov eax, edx
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
lea ecx, [eax + 1]
mov byte [ebp - 0x34], 0
mov dword [ebp - 0x14], ecx
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x413495
sub eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x34]
push eax
push edx
call fcn.00405510
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 1
push eax
mov ecx, 0x4ec358
call fcn.00433610
mov ecx, dword [eax + 0x20]
mov eax, dword [ebx]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x20]
mov dword [eax + esi*4], ecx
cmp edx, 0x10
jb 0x4133fc
mov ecx, dword [ebp - 0x34]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4134f1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41354b
push edx
push ecx
call fcn.0049c10a
add esp, 8
jmp 0x4133fc
mov esi, 0x80004005
mov edx, dword [ebp + 0x20]
cmp edx, 0x10
jb 0x413535
mov ecx, dword [ebp + 0xc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41352b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41354b
push edx
push ecx
call fcn.0049c10a
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
call fcn.004a1e9f
int3