Function at 0x1012a6e0
Capabilities:
Check for time delay via gettickcount
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x62c
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
push esi
mov esi, dword [eax + 4]
push edi
lea edi, [eax + 4]
mov dword [ebp - 0x628], eax
mov ecx, edi
push dword [esi + 4]
call fcn.1012a220
mov eax, dword [edi]
push 0x208
push 0
mov dword [eax + 4], esi
mov eax, dword [edi]
mov dword [eax], esi
mov eax, dword [edi]
mov dword [eax + 8], esi
lea eax, [ebp - 0x20c]
push eax
mov dword [edi + 4], 0
call sub.msvcrt.dll_memset
push str.ipchipslog.dll
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [0x10257d10]
call fcn.100da6a0
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x20c]
add esp, 0x1c
push eax
call esi
test eax, eax
je 0x1012aa2e
push 0x208
lea eax, [ebp - 0x620]
push 0
push eax
call sub.msvcrt.dll_memset
push str.ipcgalaxy2.dat
push 0x104
lea eax, [ebp - 0x620]
push eax
push dword [0x10257d10]
call fcn.100da6a0
add esp, 0x1c
lea eax, [ebp - 0x620]
push eax
call esi
test eax, eax
je 0x1012aa2e
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.101b13a0
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
add esp, 8
test eax, eax
jne 0x1012a92c
cmp dword [0x1023c00c], 0
je 0x1012a911
push 0x20a
lea eax, [ebp - 0x418]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push str.360Base.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x1012a805
mov eax, dword [0x10257d10]
push 0x104
lea ecx, [ebp - 0x418]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str...360Base.dll
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp dword [0x1024e9f8], 0
jne 0x1012a8df
push 0x1024e9e0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x1024e9f8], 0
jne 0x1012a8d4
lea eax, [ebp - 0x418]
push eax
call fcn.101b1420
mov esi, eax
add esp, 4
mov edi, 0x80004005
test esi, esi
je 0x1012a8be
push str.InitLibs
push esi
call ebx
push str.CreateObject
push esi
mov dword [ebp - 0x624], eax
call ebx
mov ecx, dword [ebp - 0x624]
mov dword [0x1024e5d8], eax
test ecx, ecx
je 0x1012aa19
push 0x1024e5dc
mov dword [0x1024e5dc], 0x100
call ecx
mov edi, eax
test edi, edi
je 0x1012aa23
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x1024e5d4], 0
xor eax, eax
mov dword [0x1024e9f8], 1
test edi, edi
sete al
mov dword [0x1024e9fc], eax
push 0x1024e9e0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [0x1024e9fc]
test esi, esi
jne 0x1012a8ff
push 1
lea eax, [ebp - 0x418]
push 0x10247130
push eax
call fcn.1001ac50
add esp, 0xc
mov dword [0x1023c00c], 0
test esi, esi
je 0x1012a9f7
push 0
lea eax, [ebp - 0x20c]
mov ecx, 0x1024e5d0
push eax
call fcn.101b1210
test eax, eax
je 0x1012a9f7
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
mov dword [ebp - 0x62c], ebx
test ebx, ebx
je 0x1012a9f7
push str.CreateHipsLogReader
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1012a9f0
call eax
mov esi, eax
test esi, esi
je 0x1012a9f0
push 0x1858
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
add esp, 4
test edi, edi
je 0x1012a9ea
push 0x1858
push 0
push edi
call sub.msvcrt.dll_memset
mov ecx, dword [esi]
lea eax, [ebp - 0x620]
add esp, 0xc
push edi
push eax
push esi
call dword [ecx + 8]
test eax, eax
je 0x1012a9dc
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
mov dword [ebp - 0x624], eax
lea esp, [esp]
call ebx
sub eax, dword [ebp - 0x624]
cmp eax, 0x2710
ja 0x1012a9d6
mov ecx, dword [ebp - 0x628]
push edi
call fcn.1012a2b0
mov eax, dword [esi]
push edi
push esi
call dword [eax + 0xc]
test eax, eax
jne 0x1012a9b0
mov ebx, dword [ebp - 0x62c]
push 0x1858
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 8
mov eax, dword [esi]
push esi
call dword [eax + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x628]
pop ebx
pop edi
pop esi
mov dword [eax], 1
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101f99c6
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x1012a8ad
xor edi, edi
mov dword [0x1024e5d4], esi
jmp 0x1012a8be
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.101f99c6
mov esp, ebp
pop ebp
ret