Function at 0x4c2630
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52c0e0
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0x559024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
push eax
push ecx
push edx
mov byte [ebp - 0xd], 1
call fcn.004e1eb0
xor ebx, ebx
cmp eax, ebx
je 0x4c2853
cmp dword [eax + 0x1c], ebx
jle 0x4c2853
add eax, 0x18
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x4c2853
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x914c]
mov dword [ebp + 8], ebx
cmp dword [eax + 0xc], ebx
jle 0x4c26bd
mov ecx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
cmp ecx, eax
je 0x4c26bd
sub eax, ecx
mov ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], ebx
cmp dword [ebp + 8], ebx
jle 0x4c2853
mov ecx, dword [ebp - 0x14]
mov edi, dword [ecx]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
cmp edi, ebx
je 0x4c2724
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
cmp esi, ebx
jle 0x4c2724
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov ecx, esi
lea ebx, [ebp - 0x44]
call fcn.004fca40
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
xor ebx, ebx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], eax
cmp ecx, ebx
je 0x4c2724
mov edx, dword [ebp - 0x2c]
lea ecx, [esi + 1]
push ecx
push edi
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov dword [ebp - 0x28], esi
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 4], ebx
mov ecx, dword [eax + 0xc]
mov edi, dword [ecx + edx*4]
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
cmp edi, ebx
je 0x4c278e
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
cmp esi, ebx
jle 0x4c278b
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov ecx, esi
lea ebx, [ebp - 0x50]
call fcn.004fca40
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
xor ebx, ebx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], eax
cmp ecx, ebx
je 0x4c278b
mov edx, dword [ebp - 0x20]
lea ecx, [esi + 1]
push ecx
push edi
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov dword [ebp - 0x1c], esi
mov esi, dword [ebp - 0x20]
push 0x5388e8
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x5c]
push ecx
mov byte [ebp - 4], 1
call fcn.004fd0a0
lea edx, [ebp - 0x20]
push edx
push eax
lea eax, [ebp - 0x38]
push eax
mov byte [ebp - 4], 2
call fcn.004fcfe0
add esp, 0x18
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x5c]
cmp eax, ebx
je 0x4c27d6
push eax
call fcn.005134a7
add esp, 4
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov eax, dword [ebp - 0x38]
cmp eax, ebx
jne 0x4c27e2
mov eax, 0x538640
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov byte [ebp - 4], 1
test eax, eax
mov eax, dword [ebp - 0x38]
je 0x4c286a
cmp eax, ebx
je 0x4c280a
push eax
call fcn.005134a7
add esp, 4
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov byte [ebp - 4], bl
cmp esi, ebx
je 0x4c2823
push esi
call fcn.005134a7
add esp, 4
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
je 0x4c2843
push eax
call fcn.005134a7
add esp, 4
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp + 0xc], eax
cmp eax, dword [ebp + 8]
jl 0x4c26c9
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp eax, ebx
je 0x4c2880
push eax
call fcn.005134a7
add esp, 4
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov byte [ebp - 4], bl
cmp esi, ebx
je 0x4c2890
push esi
call fcn.005134a7
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
je 0x4c28a7
push eax
call fcn.005134a7
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8