Function at 0x478c10
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4de00d
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x520404]
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 [0x528b00]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x527bc0]
cmp eax, dword [ecx + 4]
jg 0x478e92
mov eax, dword [0x527bbc]
cmp dword [eax - 0xc], 0
jne 0x478e54
lea eax, [ebp - 0x4c]
push str.GameAssistant.exe
push eax
call fcn.0048e2b0
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.00408a70
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 0x478cce
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
jb 0x478cda
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x478d6c
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
jb 0x478cf5
mov eax, dword [ebp - 0x28]
push eax
lea ecx, [ebp - 0x44]
call fcn.00477a20
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.0048c1a0
add esp, 0x18
push eax
mov ecx, 0x527bbc
mov byte [ebp - 4], 4
call fcn.00477bd0
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 0x478d47
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 0x478dfa
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x478dfa
lea eax, [ebp - 0x40]
push eax
call fcn.00488f80
add esp, 4
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 5
jb 0x478d84
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x44]
call fcn.00477a20
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.0048c1a0
add esp, 0x18
push eax
mov ecx, 0x527bbc
mov byte [ebp - 4], 7
call fcn.00477bd0
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 0x478dd6
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 0x478df2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x40]
call fcn.00407180
mov edx, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x478e3b
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x478e31
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x478eea
push edx
push ecx
call fcn.004a7d37
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov eax, dword [0x527bbc]
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.00408a70
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.004a7f4e
mov esp, ebp
pop ebp
ret
push 0x527bc0
call fcn.004a7e78
add esp, 4
cmp dword [0x527bc0], 0xffffffff
jne 0x478c60
call fcn.004782d0
mov ecx, eax
test ecx, ecx
jne 0x478ec1
push 0x80004005
call fcn.00477ec0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
push 0x4e2e40
mov dword [0x527bbc], eax
call fcn.004a7c9b
push 0x527bc0
call fcn.004a7e2e
add esp, 8
jmp 0x478c60
call fcn.004af45f
int3