Function at 0x477ef0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x53eec0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5a8cf0]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov dword [esp + 0x24], ecx
lea eax, [esp + 0x1c]
push 0x142
push eax
mov dword [esp + 0x60], 0
call fcn.00488dc0
lea ecx, [esp + 0x20]
push 0x143
push ecx
mov byte [esp + 0x68], 1
call fcn.00488dc0
add esp, 0x10
cmp dword [esp + 0x70], 0
mov byte [esp + 0x58], 2
mov byte [esp + 0x17], 0
je 0x478069
mov esi, dword [esp + 0x6c]
mov edx, dword [esp + 0x70]
lea eax, [esi + edx]
cmp esi, eax
jbe 0x477f72
call fcn.0051820b
mov eax, dword [esp + 0x70]
mov ebx, esi
mov edi, esi
shr ebx, 2
add eax, esi
and edi, 3
cmp esi, eax
mov ebp, ebx
jb 0x477f8d
call fcn.0051820b
mov eax, dword [esp + 0x68]
cmp eax, ebp
ja 0x477f97
sub ebp, eax
mov ecx, dword [esp + 0x64]
mov edx, dword [ecx + ebp*4]
lea ecx, [edx + edi*4]
call fcn.00488510
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x47801b
mov eax, dword [esp + 0x70]
add eax, esi
cmp esi, eax
jbe 0x477fc0
call fcn.0051820b
mov ecx, dword [esp + 0x70]
lea eax, [esi + ecx]
cmp esi, eax
mov ebp, ebx
jb 0x477fd2
call fcn.0051820b
mov eax, dword [esp + 0x68]
cmp eax, ebp
ja 0x477fdc
sub ebp, eax
mov edx, dword [esp + 0x64]
mov eax, dword [edx + ebp*4]
lea eax, [eax + edi*4]
push eax
lea ecx, [esp + 0x24]
push 0x556bd4
push ecx
call fcn.004383c0
add esp, 0xc
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x5c], 3
call fcn.00488d00
lea ecx, [esp + 0x20]
mov byte [esp + 0x58], 2
call fcn.004884e0
mov byte [esp + 0x17], 1
cmp dword [esp + 0x70], 0
je 0x478062
mov edx, dword [esp + 0x64]
mov eax, dword [edx + ebx*4]
lea edi, [eax + edi*4]
mov ecx, edi
call fcn.004884e0
mov ecx, dword [esp + 0x68]
add esi, 1
lea edx, [ecx*4]
cmp edx, esi
mov dword [esp + 0x6c], esi
ja 0x47804f
xor esi, esi
mov dword [esp + 0x6c], esi
sub dword [esp + 0x70], 1
jne 0x477f62
mov dword [esp + 0x6c], 0
cmp byte [esp + 0x17], 0
jne 0x47809d
mov byte [esp + 0x58], 1
lea ecx, [esp + 0x18]
call fcn.004884e0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x58], 0
call fcn.004884e0
lea ecx, [esp + 0x60]
mov dword [esp + 0x58], 0xffffffff
call fcn.00477c40
mov al, 1
jmp 0x478144
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x28], 0x28
mov dword [esp + 0x2c], ecx
call fcn.004977c0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], eax
mov dword [esp + 0x3c], 0x31
call fcn.00488510
lea ecx, [esp + 0x18]
mov dword [esp + 0x38], eax
call fcn.00488510
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x38], eax
call dword [sym.imp.USER32.dll_MessageBoxIndirectW]
cmp eax, 1
mov byte [esp + 0x58], 1
lea ecx, [esp + 0x18]
je 0x478072
call fcn.004884e0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x58], 0
call fcn.004884e0
lea ecx, [esp + 0x60]
mov dword [esp + 0x58], 0xffffffff
call fcn.00477c40
xor al, al
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 0x14