Function at 0x4786b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4df28d
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x5203c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov dword [ebp - 0x48], edi
mov eax, dword fs:[0x2c]
mov ecx, dword [0x528ab0]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x527b88]
cmp eax, dword [ecx + 4]
jg 0x478932
mov eax, dword [0x527b84]
cmp dword [eax - 0xc], 0
jne 0x4788f4
lea eax, [ebp - 0x4c]
push 0x4e6a64
push eax
call fcn.004891d0
add esp, 8
mov eax, dword [eax]
xor ecx, ecx
mov dword [ebp - 0x28], 0
mov word [ebp - 0x28], cx
lea ecx, [ebp - 0x28]
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
call fcn.00408e20
mov edx, dword [ebp - 0x4c]
or esi, 0xffffffff
mov byte [ebp - 4], 2
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x47876e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
jb 0x47877a
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x47880c
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
jb 0x478795
mov eax, dword [ebp - 0x28]
push eax
lea ecx, [ebp - 0x44]
call fcn.00475420
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00487000
add esp, 0x18
push eax
mov ecx, 0x527b84
mov byte [ebp - 4], 4
call fcn.00475ed0
mov edx, dword [ebp - 0x48]
mov eax, esi
mov byte [ebp - 4], 3
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4787e7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x44]
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x47889a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x47889a
lea eax, [ebp - 0x40]
push eax
call fcn.00484a00
add esp, 4
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 5
jb 0x478824
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x44]
call fcn.00475420
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00487000
add esp, 0x18
push eax
mov ecx, 0x527b84
mov byte [ebp - 4], 7
call fcn.00475ed0
mov edx, dword [ebp - 0x48]
mov eax, esi
mov byte [ebp - 4], 6
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x478876
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x44]
mov byte [ebp - 4], 5
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x478892
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x40]
call fcn.004074f0
mov edx, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x4788db
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4788d1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47898a
push edx
push ecx
call fcn.004a8c37
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov eax, dword [0x527b84]
mov dword [ebp - 0x14], 7
xor ecx, ecx
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], cx
mov ecx, edi
push eax
call fcn.00408e20
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a8e4e
mov esp, ebp
pop ebp
ret
push 0x527b88
call fcn.004a8d78
add esp, 4
cmp dword [0x527b88], 0xffffffff
jne 0x478700
call fcn.00476b10
mov ecx, eax
test ecx, ecx
jne 0x478961
push 0x80004005
call fcn.00476460
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
push 0x4e3da0
mov dword [0x527b84], eax
call fcn.004a8b90
push 0x527b88
call fcn.004a8d2e
add esp, 8
jmp 0x478700
call fcn.004b040f
int3