Function at 0x4c5da0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [0x63d284]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
sub esp, 0x18
mov ebx, esp
mov dword [esp + 0x38], ecx
mov ecx, esi
mov dword [esp + 0x28], esi
mov dword [ebx], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
cmp dword [esi + 0x14], 8
mov eax, dword [esi + 0x10]
mov dword [esp + 0x30], eax
jb 0x4c5df3
mov ecx, dword [esi]
mov dword [esp + 0x28], ecx
mov edx, SysReAllocString
cmp eax, 8
jae 0x4c5e0d
movups xmm0, xmmword [ecx]
mov eax, 7
movups xmmword [ebx], xmm0
jmp 0x4c5e92
or eax, 7
cmp eax, 0x7ffffffe
cmova eax, edx
mov dword [esp + 0x2c], eax
inc eax
cmp eax, 0x7fffffff
ja 0x4c6338
add eax, eax
cmp eax, 0x1000
jb 0x4c5e58
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x4c6338
push ecx
call fcn.00591cad
add esp, 4
test eax, eax
je 0x4c62cf
lea ecx, [eax + 0x23]
and ecx, 0xffffffe0
mov dword [ecx - 4], eax
jmp 0x4c5e73
test eax, eax
je 0x4c5e71
push eax
call fcn.00591cad
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x4c62de
jmp 0x4c5e73
xor ecx, ecx
mov eax, dword [esp + 0x30]
mov dword [ebx], ecx
lea eax, [eax*2 + 2]
push eax
push dword [esp + 0x2c]
push ecx
call fcn.005729d0
mov eax, dword [esp + 0x38]
add esp, 0xc
mov ecx, dword [esp + 0x30]
mov dword [ebx + 0x10], ecx
mov dword [ebx + 0x14], eax
lea eax, [esp + 0x3c]
push eax
call fcn.004cd5b0
mov ebx, eax
add esp, 0x1c
cmp esi, ebx
je 0x4c5f18
mov ecx, dword [esi + 0x14]
cmp ecx, 8
jb 0x4c5ee8
mov eax, dword [esi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x4c5ede
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c62ed
mov eax, edx
push ecx
push eax
call fcn.0056c61e
add esp, 8
mov dword [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 7
mov word [esi], ax
movups xmm0, xmmword [ebx]
movups xmmword [esi], xmm0
movq xmm0, qword [ebx + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], 7
mov word [ebx], ax
mov edx, dword [esp + 0x38]
cmp edx, 8
jb 0x4c5f54
mov ecx, dword [esp + 0x24]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4c5f4a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c62ed
push edx
push ecx
call fcn.0056c61e
add esp, 8
sub esp, 0x18
mov dword [esp + 0x30], edi
mov ebx, esp
lea eax, [edi + 0x10]
mov dword [esp + 0x28], eax
mov ecx, edi
mov dword [ebx], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
cmp dword [edi + 0x14], 8
mov eax, dword [eax]
mov dword [esp + 0x2c], eax
jb 0x4c5f8c
mov ecx, dword [edi]
mov dword [esp + 0x30], ecx
cmp eax, 8
jae 0x4c5fa1
movups xmm0, xmmword [ecx]
mov eax, 7
movups xmmword [ebx], xmm0
jmp 0x4c602b
or eax, 7
mov ecx, SysReAllocString
cmp eax, 0x7ffffffe
cmova eax, ecx
mov dword [esp + 0x34], eax
inc eax
cmp eax, 0x7fffffff
ja 0x4c6338
add eax, eax
cmp eax, 0x1000
jb 0x4c5ff1
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x4c6338
push ecx
call fcn.00591cad
add esp, 4
test eax, eax
je 0x4c62f2
lea ecx, [eax + 0x23]
and ecx, 0xffffffe0
mov dword [ecx - 4], eax
jmp 0x4c600c
test eax, eax
je 0x4c600a
push eax
call fcn.00591cad
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x4c6301
jmp 0x4c600c
xor ecx, ecx
mov eax, dword [esp + 0x2c]
mov dword [ebx], ecx
lea eax, [eax*2 + 2]
push eax
push dword [esp + 0x34]
push ecx
call fcn.005729d0
mov eax, dword [esp + 0x40]
add esp, 0xc
mov ecx, dword [esp + 0x2c]
mov dword [ebx + 0x10], ecx
mov dword [ebx + 0x14], eax
lea eax, [esp + 0x54]
push eax
call fcn.004cd5b0
mov ebx, eax
add esp, 0x1c
cmp edi, ebx
je 0x4c60b4
mov ecx, dword [edi + 0x14]
cmp ecx, 8
jb 0x4c6081
mov eax, dword [edi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x4c6077
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c6310
mov eax, edx
push ecx
push eax
call fcn.0056c61e
add esp, 8
mov eax, dword [esp + 0x10]
mov dword [edi + 0x14], 7
mov dword [eax], 0
xor eax, eax
mov word [edi], ax
movups xmm0, xmmword [ebx]
movups xmmword [edi], xmm0
movq xmm0, qword [ebx + 0x10]
movq qword [edi + 0x10], xmm0
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], 7
mov word [ebx], ax
mov edx, dword [esp + 0x50]
cmp edx, 8
jb 0x4c60f0
mov ecx, dword [esp + 0x3c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4c60e6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c6310
push edx
push ecx
call fcn.0056c61e
add esp, 8
cmp dword [esi + 0x10], 0
je 0x4c619a
cmp dword [esi + 0x14], 8
jb 0x4c6102
mov esi, dword [esi]
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call esi
test eax, eax
je 0x4c619a
mov eax, dword [esp + 0x10]
cmp dword [eax], 0
je 0x4c619a
cmp dword [ebp + 0x10], 0
jne 0x4c62b6
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4c6130
mov eax, dword [edi]
push eax
call esi
test eax, eax
je 0x4c62b6
mov ebx, dword [esp + 0x20]
add ebx, 8
cmp ebx, edi
je 0x4c618f
cmp dword [edi + 0x14], 8
jb 0x4c614e
mov edi, dword [edi]
mov eax, dword [esp + 0x10]
mov ecx, dword [ebx + 0x14]
mov dword [esp + 0x14], ecx
mov eax, dword [eax]
mov dword [esp + 0x1c], eax
cmp eax, ecx
ja 0x4c61b0
mov dword [esp + 0x14], ebx
mov edx, ebx
cmp ecx, 8
jb 0x4c6174
mov edx, dword [ebx]
mov dword [esp + 0x14], edx
lea esi, [eax + eax]
mov dword [ebx + 0x10], eax
push esi
push edi
push edx
call fcn.00572f50
mov eax, dword [esp + 0x20]
add esp, 0xc
xor ecx, ecx
mov word [eax + esi], cx
mov ebx, dword [esp + 0x20]
mov dword [ebx + 4], 0x50
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0056cd75
mov esp, ebp
pop ebp
ret 0xc
cmp eax, 0x7ffffffe
ja 0x4c6315
mov esi, eax
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x4c61d4
mov esi, SysReAllocString
mov eax, 0xfffffffe
jmp 0x4c620d
mov eax, ecx
mov edx, SysReAllocString
shr eax, 1
sub edx, eax
cmp ecx, edx
jbe 0x4c61ef
mov esi, SysReAllocString
mov eax, 0xfffffffe
jmp 0x4c620d
add eax, ecx
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
cmp eax, 0x7fffffff
ja 0x4c6338
add eax, eax
cmp eax, 0x1000
jb 0x4c6236
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x4c6338
push ecx
call fcn.00591cad
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x4c631a
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x4c6253
test eax, eax
je 0x4c6251
push eax
call fcn.00591cad
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
je 0x4c6329
jmp 0x4c6257
xor eax, eax
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x1c]
mov dword [ebx + 0x14], esi
mov dword [ebx + 0x10], ecx
lea esi, [ecx + ecx]
push esi
push edi
push eax
call fcn.005729d0
mov edi, dword [esp + 0x1c]
xor eax, eax
add esp, 0xc
mov word [edi + esi], ax
mov eax, dword [esp + 0x14]
cmp eax, 8
jb 0x4c62af
lea ecx, [eax*2 + 2]
mov eax, dword [ebx]
cmp ecx, 0x1000
jb 0x4c62a5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c62ed
mov eax, edx
push ecx
push eax
call fcn.0056c61e
add esp, 8
mov dword [ebx], edi
jmp 0x4c618f
mov ecx, dword [esp + 0x54]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0056cd75
mov esp, ebp
pop ebp
ret 0xc
push 0x638780
lea eax, [esp + 0x2a]
push eax
call fcn.0057359b
push 0x638780
lea eax, [esp + 0x2b]
push eax
call fcn.0057359b
call fcn.0057da80
push 0x638780
lea eax, [esp + 0x2b]
push eax
call fcn.0057359b
push 0x638780
lea eax, [esp + 0x2a]
push eax
call fcn.0057359b
call fcn.0057da80
call fcn.0040791f
push 0x638780
lea eax, [esp + 0x13]
push eax
call fcn.0057359b
push 0x638780
lea eax, [esp + 0x12]
push eax
call fcn.0057359b
call fcn.00407b84
int3