Function at 0x4369e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b7520
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x4e1370]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ebx, ecx
lea eax, [esp + 0x14]
push str.ipchipslog.dll
push eax
call fcn.0047b079
add esp, 8
mov dword [esp + 0x30], 0
mov edi, dword [esp + 0x14]
test edi, edi
je 0x436be2
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x436be2
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.0047ea6b
add esp, 4
test eax, eax
jne 0x436a63
call fcn.0040cff0
test eax, eax
je 0x436be2
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esp + 0x18], eax
test eax, eax
je 0x436be2
lea edi, [ebx + 8]
push edi
mov dword [esp + 0x20], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0x20], 1
mov byte [esp + 0x30], 1
mov ecx, dword [ebx + 0x38]
mov edx, dword [ecx + 4]
lea esi, [ebx + 0x20]
push edx
mov ecx, esi
call fcn.0042c590
mov eax, dword [esi + 0x18]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x18]
mov dword [esi + 0x1c], 0
mov dword [eax], eax
mov eax, dword [esp + 0x18]
mov esi, dword [esi + 0x18]
push str.CreateHipsLogReader
push eax
mov dword [esi + 8], esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x436bdb
call eax
mov esi, eax
test esi, esi
je 0x436bdb
lea edi, [ebx - 0x24]
mov ecx, edi
call fcn.00436e20
lea ecx, [esp + 0x18]
push str.ipcgalaxy2.dat
push ecx
call fcn.0047b079
add esp, 8
mov byte [esp + 0x30], 2
mov eax, dword [eax]
push esi
mov ecx, eax
call fcn.00436c40
mov byte [esp + 0x30], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x436b2b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x18]
push str.ipcgalaxy4.dat
push ecx
call fcn.0047b079
add esp, 8
mov byte [esp + 0x30], 3
mov eax, dword [eax]
push esi
mov ecx, eax
call fcn.00436c40
mov byte [esp + 0x30], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x436b71
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
push esi
call edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebx - 0x20]
push 0
push eax
push 0x403
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x436bc1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp + 8]
mov edx, dword [ebx - 0x20]
push 0
push ecx
push 0x403
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x436c1f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4