Function at 0x1012390
Capabilities:
Accept command line arguments

Disassembly:
mov eax, 0x10152fa
call fcn.01011388
sub esp, 0x118
mov eax, dword [0x101704c]
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
cmp dword [ebx + 0x34], edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x118], ebx
jne 0x10126bc
push 0x20
mov dword [ebp - 4], edi
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, edi
pop ecx
je 0x10123d9
mov ecx, eax
call fcn.0101187d
jmp 0x10123db
xor eax, eax
cmp eax, edi
mov dword [ebx + 0x50], eax
jne 0x10123fd
push 0x1015504
lea eax, [ebp - 0x11c]
push eax
mov dword [ebp - 0x11c], 0x8007000e
call sub.msvcrt.dll__CxxThrowException
or dword [ebx + 0x24], 0xffffffff
or dword [ebx + 4], 0xffffffff
xor eax, eax
inc eax
mov dword [ebx + 0x34], eax
mov dword [ebx], edi
mov dword [ebx + 0xc], edi
mov dword [ebx + 0x10], edi
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], eax
mov dword [ebx + 8], edi
mov dword [ebx + 0x20], edi
mov dword [ebx + 0x28], edi
mov dword [ebx + 0x3c], edi
mov dword [ebx + 0x44], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebx + 0x2c], eax
lea eax, [ebp - 0x124]
push eax
mov dword [ebx + 0x1054], edi
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x1012453
mov eax, dword [ebp - 0x124]
jmp 0x1012459
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, ebx
mov dword [ebx + 0x38], eax
call fcn.01011bfe
cmp dword [0x10173a0], edi
mov esi, 0x10173a0
je 0x10124d5
push edi
push edi
push 0xffffffffffffffff
push edi
push 0x178
push 0x10060b0
mov ecx, esi
call fcn.01011f00
push 0x1006028
push esi
call fcn.01011d27
pop ecx
pop ecx
push edi
mov ecx, esi
call fcn.0101208a
cmp dword [0x10173a0], edi
je 0x10124d5
push edi
push edi
push 0xffffffffffffffff
push edi
push 0x17a
push 0x10060b0
mov ecx, esi
call fcn.01011f00
push dword [ebx + 0x38]
push dword [ebx + 0x2c]
push 0x1006268
push esi
call fcn.01011d27
add esp, 0x10
push edi
mov ecx, esi
call fcn.0101208a
cmp dword [ebp + 8], edi
jne 0x101250d
cmp dword [0x10173a0], edi
je 0x101250d
push edi
push edi
push 0xffffffffffffffff
push edi
push 0x17c
push 0x10060b0
mov ecx, esi
call fcn.01011f00
push 0x1006210
push esi
call fcn.01011d27
pop ecx
pop ecx
push edi
mov ecx, esi
call fcn.0101208a
mov word [ebp - 0x114], di
push 0x3f
pop ecx
xor eax, eax
lea edi, [ebp - 0x112]
rep stosd dword es:[edi], eax
add ebx, 0x30
push ebx
stosw word es:[edi], ax
call dword [sym.imp.msvcrt.dll_time]
push ebx
call dword [sym.imp.msvcrt.dll_localtime]
xor edi, edi
cmp eax, edi
pop ecx
pop ecx
je 0x1012562
push eax
push 0x1005fb0
lea eax, [ebp - 0x114]
push 0x80
push eax
call dword [sym.imp.msvcrt.dll_wcsftime]
add esp, 0x10
test eax, eax
jne 0x1012562
mov word [ebp - 0x114], di
cmp dword [0x10173a0], edi
mov ebx, 0x10060b0
je 0x1012684
push edi
push edi
push 0xffffffffffffffff
push edi
push 0x185
push ebx
mov ecx, esi
call fcn.01011f00
lea eax, [ebp - 0x114]
push eax
push 0x1005f84
push esi
call fcn.01011d27
add esp, 0xc
push edi
mov ecx, esi
call fcn.0101208a
cmp dword [0x10173a0], edi
je 0x1012684
push edi
push edi
push 0xffffffffffffffff
push edi
push 0x186
push ebx
mov ecx, esi
call fcn.01011f00
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push 0x1005f1c
push esi
call fcn.01011d27
add esp, 0xc
push edi
mov ecx, esi
call fcn.0101208a
cmp dword [0x10173a0], edi
je 0x1012684
push edi
push edi
push 0xffffffffffffffff
push edi
push 0x187
push ebx
mov ecx, esi
call fcn.01011f00
push 0xf77
push 0xece
push 2
push 5
push 0x10061c8
push esi
call fcn.01011d27
add esp, 0x18
push edi
mov ecx, esi
call fcn.0101208a
cmp dword [0x10173a0], edi
je 0x1012684
push edi
push edi
push 0xffffffffffffffff
push edi
push 0x188
push ebx
mov ecx, esi
call fcn.01011f00
call fcn.01009bc3
push eax
push 0x1006198
push esi
call fcn.01011d27
add esp, 0xc
push edi
mov ecx, esi
call fcn.0101208a
cmp dword [0x10173a0], edi
je 0x1012684
push edi
push edi
push 0xffffffffffffffff
push edi
push 0x189
push ebx
mov ecx, esi
call fcn.01011f00
push 0x1006028
push esi
call fcn.01011d27
pop ecx
pop ecx
push edi
mov ecx, esi
call fcn.0101208a
call fcn.01009bc3
cmp eax, edi
jne 0x10126bc
cmp dword [0x10173a0], edi
je 0x10126bc
push edi
push edi
push 0xffffffffffffffff
push edi
push 0x18c
push ebx
mov ecx, esi
call fcn.01011f00
push 0x1006140
push esi
call fcn.01011d27
pop ecx
pop ecx
push edi
mov ecx, esi
call fcn.0101208a
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.010110c9
pop edi
pop esi
pop ebx
leave
ret 4