Function at 0x1009187
Capabilities:
Accept command line arguments

Disassembly:
mov eax, 0x1014cd1
call fcn.01011388
sub esp, 0x200
mov eax, dword [0x101704c]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push 0x1002870
sub esp, 0x40
mov ecx, esp
mov dword [ebp - 0x144], esp
push 0
mov ebx, 0x800000
push ebx
push 0x300
mov edi, 0x1002250
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
push edi
mov esi, 0x10021c0
push esi
mov dword [ebp - 0x120], eax
call fcn.01007e91
lea ecx, [ebp - 0x140]
call fcn.01007fe5
push dword [ebp - 0x120]
and dword [ebp - 4], 0
push dword [ebp + 8]
lea ecx, [ebp - 0x11c]
mov dword [ebp - 0x144], 2
call fcn.010084e7
lea ecx, [ebp - 0x11c]
mov byte [ebp - 4], 3
call fcn.010087ec
lea ecx, [ebp - 0x11c]
call fcn.0100899d
test eax, eax
lea ecx, [ebp - 0x11c]
je 0x1009234
call fcn.01008db7
jmp 0x1009239
call fcn.0100c58b
and dword [ebp - 0x140], 0
jmp 0x100932e
cmp dword [ebp - 0x140], 0
mov ecx, dword [ebp - 0xf8]
push 2
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x144], ecx
je 0x1009741
cmp dword [ebp - 0xec], eax
je 0x1009362
cmp dword [ebp - 0xec], 3
jne 0x1009663
push dword [ebp - 0x140]
call fcn.0100f2e4
test eax, eax
jne 0x1009663
push 0x40002b63
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.0100f7f4
add esp, 0xc
test eax, eax
mov dword [ebp - 0x124], eax
jne 0x10093bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x40002b63
push 0x1002708
push 0x8000ffff
sub esp, 0x40
mov ecx, esp
mov dword [ebp - 0x124], esp
push 0
push ebx
push 0x32c
jmp 0x1009424
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x140]
call fcn.0100ff0e
test eax, eax
lea eax, [ebp - 0x11c]
je 0x10094e5
push dword [ebp - 0x120]
push 0
push eax
call fcn.0100f7f4
add esp, 0xc
test eax, eax
mov dword [ebp - 0x128], eax
jne 0x1009437
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x120]
push 0x1002708
push 0x8000ffff
sub esp, 0x40
mov ecx, esp
mov dword [ebp - 0x124], esp
push 0
push ebx
push 0x338
push edi
push esi
call fcn.01007e91
lea eax, [ebp - 0x140]
push eax
call fcn.010082c0
push 0x1001ea4
push 1
push 0
push ebx
push 0x33c
push edi
push esi
lea ecx, [ebp - 0x18c]
call fcn.01007e91
push dword [ebp - 0x124]
lea ecx, [ebp - 0x1cc]
push ecx
mov ecx, eax
call fcn.01007f63
push dword [ebp - 0x128]
lea ecx, [ebp - 0x20c]
push ecx
mov ecx, eax
call fcn.01007f63
mov esi, eax
mov byte [ebp - 4], 7
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
sub esp, 0x40
mov ecx, esp
mov dword [ebp - 0x14c], esp
push eax
push ecx
mov ecx, esi
call fcn.01007f63
lea eax, [ebp - 0x140]
push 0x1b59
push eax
call fcn.010126fd
add esp, 0x50
lea ecx, [ebp - 0x20c]
call fcn.01007f37
lea ecx, [ebp - 0x1cc]
call fcn.01007f37
lea ecx, [ebp - 0x18c]
mov byte [ebp - 4], 2
call fcn.01007f37
lea eax, [ebp - 0x128]
push eax
call fcn.010080c9
jmp 0x1009657
push dword [ebp - 0x140]
push 0
push eax
call fcn.0100f7f4
add esp, 0xc
test eax, eax
mov dword [ebp - 0x128], eax
je 0x100959d
push 0x1001ea4
push 1
push 0
push ebx
push 0x345
push edi
push esi
lea ecx, [ebp - 0x20c]
call fcn.01007e91
push dword [ebp - 0x124]
lea ecx, [ebp - 0x1cc]
push ecx
mov ecx, eax
call fcn.01007f63
push dword [ebp - 0x128]
lea ecx, [ebp - 0x18c]
push ecx
mov ecx, eax
call fcn.01007f63
mov esi, eax
mov byte [ebp - 4], 0xa
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
sub esp, 0x40
mov ecx, esp
mov dword [ebp - 0x14c], esp
push eax
push ecx
mov ecx, esi
call fcn.01007f63
lea eax, [ebp - 0x140]
push 0x1b59
push eax
call fcn.010126fd
add esp, 0x50
lea ecx, [ebp - 0x18c]
call fcn.01007f37
lea ecx, [ebp - 0x1cc]
call fcn.01007f37
lea ecx, [ebp - 0x20c]
jmp 0x10094cb
push dword [ebp - 0x140]
lea eax, [ebp - 0x94]
push 0x10026ec
push 0x40
push eax
call fcn.010081ee
add esp, 0x10
push 0x1001ea4
push 1
push 0
push ebx
push 0x34c
push edi
push esi
lea ecx, [ebp - 0x20c]
call fcn.01007e91
push dword [ebp - 0x124]
lea ecx, [ebp - 0x1cc]
push ecx
mov ecx, eax
call fcn.01007f63
lea ecx, [ebp - 0x94]
push ecx
lea ecx, [ebp - 0x18c]
push ecx
mov ecx, eax
call fcn.01007f63
mov esi, eax
mov byte [ebp - 4], 0xd
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
sub esp, 0x40
mov ecx, esp
mov dword [ebp - 0x14c], esp
push eax
push ecx
mov ecx, esi
call fcn.01007f63
lea eax, [ebp - 0x140]
push 0x1b59
push eax
call fcn.010126fd
add esp, 0x50
lea ecx, [ebp - 0x18c]
call fcn.01007f37
lea ecx, [ebp - 0x1cc]
call fcn.01007f37
lea ecx, [ebp - 0x20c]
mov byte [ebp - 4], 2
call fcn.01007f37
lea eax, [ebp - 0x124]
push eax
call fcn.010080c9
cmp dword [ebp - 0x140], 0
je 0x1009741
cmp dword [ebp - 0x140], 1
jne 0x100969b
lea eax, [ebp - 0x11c]
push 0x40002b07
push eax
mov dword [ebp - 0x144], 1
call fcn.0100f6cd
pop ecx
pop ecx
jmp 0x1009741
lea eax, [ebp - 0x124]
push eax
push dword [ebp - 0x140]
call fcn.0100ff0e
test eax, eax
lea eax, [ebp - 0x11c]
je 0x10096ea
push dword [ebp - 0x124]
push eax
call fcn.0100fd57
cmp dword [ebp - 0x140], 0x1001
pop ecx
pop ecx
jl 0x1009741
cmp dword [ebp - 0x140], 0x100a
jg 0x1009741
lea ecx, [ebp - 0x11c]
call fcn.0100c58b
jmp 0x1009741
push dword [ebp - 0x140]
push 0
push eax
call fcn.0100f7f4
add esp, 0xc
mov dword [ebp - 0x120], eax
test eax, eax
lea eax, [ebp - 0x11c]
je 0x100972d
push dword [ebp - 0x120]
push 0x40002716
push eax
call fcn.0100f6cd
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
call fcn.010080c9
jmp 0x1009741
push dword [ebp - 0x140]
push 0x40002715
push eax
call fcn.0100f6cd
add esp, 0xc
lea ecx, [ebp - 0x11c]
mov byte [ebp - 4], 1
call fcn.01008fbb
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x140]
call fcn.01008075
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x144]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.010110c9
pop edi
pop esi
pop ebx
leave
ret 8