Function at 0x4131b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bc625
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x4e04c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], 0
call fcn.00404990
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x41343b
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 8]
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x4e423c]
cmp eax, dword [ecx + 4]
jle 0x41326a
push 0x4e423c
call fcn.00496a7e
add esp, 4
cmp dword [0x4e423c], 0xffffffff
jne 0x41326a
push 0x4c0f10
mov dword [0x4e4230], 0
mov dword [0x4e4234], 0
mov dword [0x4e4238], 0
call fcn.00496d90
push 0x4e423c
call fcn.00496a34
add esp, 8
lea eax, [ebp + 8]
mov ecx, 0x4e4230
push eax
call fcn.00433660
mov edx, eax
test edx, edx
je 0x41343b
cmp byte [ebp + 0x20], 0
mov ecx, dword [edx + 0x20]
mov dword [ebx + 0x14], ecx
mov ecx, dword [edx + 0x28]
mov dword [ebx + 0x1c], ecx
mov eax, dword [edx + 0x2c]
mov dword [ebx + 0x20], eax
je 0x4132a0
mov eax, dword [edx + 0x24]
mov dword [ebx + 0x18], eax
mov eax, dword [ecx]
push ecx
call dword [eax + 0xc]
mov edi, dword [ebx + 0x24]
lea esi, [ebx + 0x24]
mov ecx, dword [ebx + 0x20]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 4]
mov edx, eax
sub edx, edi
mov dword [ebp - 0x10], esi
sar edx, 2
mov dword [ebp - 0x18], eax
cmp ecx, edx
jae 0x4132cb
lea eax, [edi + ecx*4]
jmp 0x413302
jbe 0x413305
mov eax, dword [esi + 8]
sub eax, edi
sar eax, 2
cmp ecx, eax
jbe 0x4132e4
push ecx
push ecx
mov ecx, esi
call fcn.00413490
jmp 0x413305
mov edi, dword [ebp - 0x18]
sub ecx, edx
lea esi, [ecx*4]
push esi
push 0
push edi
call fcn.00499720
lea eax, [esi + edi]
add esp, 0xc
mov esi, dword [ebp - 0x10]
mov dword [esi + 4], eax
xor edi, edi
cmp dword [ebx + 0x20], edi
jle 0x413437
mov ebx, dword [ebp - 0x14]
add ebx, 0x44
mov eax, dword [ebx]
test eax, eax
je 0x413329
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x413337
mov dword [ebx], eax
mov eax, dword [esi]
mov dword [eax + edi*4], 0
jmp 0x413427
mov edx, dword [ebx]
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
nop word [eax + eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x413360
sub eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x34]
push eax
push edx
call fcn.00405500
mov byte [ebp - 4], 1
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x4e423c]
cmp eax, dword [ecx + 4]
jle 0x4133d8
push 0x4e423c
call fcn.00496a7e
add esp, 4
cmp dword [0x4e423c], 0xffffffff
jne 0x4133d8
push 0x4c0f10
mov dword [0x4e4230], 0
mov dword [0x4e4234], 0
mov dword [0x4e4238], 0
call fcn.00496d90
push 0x4e423c
call fcn.00496a34
add esp, 8
mov eax, dword [esi]
mov ecx, 0x4e4230
lea esi, [eax + edi*4]
lea eax, [ebp - 0x34]
push eax
call fcn.00433400
mov eax, dword [eax + 0x20]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x20]
mov dword [esi], eax
cmp edx, 0x10
jb 0x413424
mov ecx, dword [ebp - 0x34]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41341a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413486
push edx
push ecx
call fcn.004968ea
add esp, 8
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
inc edi
add ebx, 0x48
cmp edi, dword [eax + 0x20]
jl 0x413316
xor esi, esi
jmp 0x413440
mov esi, 0x80004005
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x413470
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x413466
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413486
push edx
push ecx
call fcn.004968ea
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.0049c5bf
int3