Function at 0x100979f
Capabilities:
Accept command line arguments

Disassembly:
push 0x288
mov eax, 0x10175f2
call fcn.01011fec
push 0
sub esp, 0x58
mov ecx, esp
mov dword [ebp - 0x12c], esp
push 0xff
push 7
push 0x30c
mov ebx, 0x1002820
push ebx
mov edi, 0x1001fbc
push edi
mov esi, 0x1001f50
push esi
call fcn.01012994
lea ecx, [ebp - 0x174]
call fcn.01013ba7
xor eax, eax
push eax
push eax
push 1
push eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x134], 2
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
push dword [ebp + 0xc]
lea ecx, [ebp - 0x120]
push dword [ebp + 8]
call fcn.01008e45
lea ecx, [ebp - 0x120]
mov byte [ebp - 4], 3
call fcn.01008fd0
lea ecx, [ebp - 0x120]
call fcn.01009177
lea ecx, [ebp - 0x120]
test eax, eax
je 0x100983f
call fcn.01008505
jmp 0x1009844
call fcn.0100cf6c
and dword [ebp - 0x16c], 0
mov dword [ebp - 4], 2
jmp 0x1009940
cmp dword [ebp - 0x16c], 0
mov eax, dword [ebp - 0xfc]
mov dword [ebp - 0x134], eax
je 0x1009e6b
cmp dword [ebp - 0xf0], 2
je 0x100996f
cmp dword [ebp - 0xf0], 3
jne 0x1009d35
push dword [ebp - 0x16c]
call fcn.0100fcb6
test eax, eax
jne 0x1009d35
push 0x40002b63
push eax
lea eax, [ebp - 0x120]
push eax
call fcn.0101076f
add esp, 0xc
mov dword [ebp - 0x128], eax
test eax, eax
jne 0x10099e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x40002b63
push 0x10027b8
push 0x8000ffff
sub esp, 0x58
mov ecx, esp
mov dword [ebp - 0x128], esp
push 0xff
push 7
push 0x33a
push ebx
push edi
push esi
call fcn.01012994
lea eax, [ebp - 0x174]
push eax
call fcn.010143db
and dword [ebp - 0x124], 0
lea eax, [ebp - 0x12c]
push eax
push dword [ebp - 0x16c]
call fcn.0100fcdd
test eax, eax
je 0x1009aec
push dword [ebp - 0x12c]
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.0101076f
add esp, 0xc
mov dword [ebp - 0x124], eax
test eax, eax
jne 0x1009a57
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x12c]
push 0x10027b8
push 0x8000ffff
sub esp, 0x58
mov ecx, esp
mov dword [ebp - 0x128], esp
push 0xff
push 7
push 0x347
jmp 0x10099ce
push 1
push 0xff
push 7
push 0x34b
push ebx
push edi
push esi
lea ecx, [ebp - 0x294]
call fcn.01012994
push dword [ebp - 0x128]
lea ecx, [ebp - 0x23c]
push ecx
mov ecx, eax
call fcn.01012eaf
push dword [ebp - 0x124]
lea ecx, [ebp - 0x1e4]
push ecx
mov ecx, eax
call fcn.01012eaf
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
sub esp, 0x58
mov ecx, esp
mov dword [ebp - 0x130], esp
push eax
push ecx
mov ecx, esi
call fcn.01012eaf
lea eax, [ebp - 0x174]
push 0x1b59
push eax
call fcn.010147b2
add esp, 0x64
lea ecx, [ebp - 0x1e4]
call fcn.01012a44
lea ecx, [ebp - 0x23c]
call fcn.01012a44
lea ecx, [ebp - 0x294]
jmp 0x1009c61
lea eax, [ebp - 0x124]
push eax
push dword [ebp - 0x16c]
call fcn.0100ffa1
test eax, eax
je 0x1009bac
push 1
push 0xff
push 7
push 0x351
push ebx
push edi
push esi
lea ecx, [ebp - 0x1e4]
call fcn.01012994
push dword [ebp - 0x128]
lea ecx, [ebp - 0x23c]
push ecx
mov ecx, eax
call fcn.01012eaf
push dword [ebp - 0x124]
lea ecx, [ebp - 0x294]
push ecx
mov ecx, eax
call fcn.01012eaf
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
sub esp, 0x58
mov ecx, esp
mov dword [ebp - 0x130], esp
push eax
push ecx
mov ecx, esi
call fcn.01012eaf
lea eax, [ebp - 0x174]
push 0x1b59
push eax
call fcn.010147b2
add esp, 0x64
lea ecx, [ebp - 0x294]
call fcn.01012a44
lea ecx, [ebp - 0x23c]
call fcn.01012a44
lea ecx, [ebp - 0x1e4]
call fcn.01012a44
push dword [ebp - 0x124]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1009d29
push dword [ebp - 0x16c]
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.0101076f
add esp, 0xc
mov dword [ebp - 0x124], eax
test eax, eax
je 0x1009c77
push 1
push 0xff
push 7
push 0x35a
push ebx
push edi
push esi
lea ecx, [ebp - 0x1e4]
call fcn.01012994
push dword [ebp - 0x128]
lea ecx, [ebp - 0x23c]
push ecx
mov ecx, eax
call fcn.01012eaf
push dword [ebp - 0x124]
lea ecx, [ebp - 0x294]
push ecx
mov ecx, eax
call fcn.01012eaf
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
sub esp, 0x58
mov ecx, esp
mov dword [ebp - 0x130], esp
push eax
push ecx
mov ecx, esi
call fcn.01012eaf
lea eax, [ebp - 0x174]
push 0x1b59
push eax
call fcn.010147b2
add esp, 0x64
lea ecx, [ebp - 0x294]
call fcn.01012a44
lea ecx, [ebp - 0x23c]
call fcn.01012a44
lea ecx, [ebp - 0x1e4]
call fcn.01012a44
lea eax, [ebp - 0x124]
push eax
call fcn.010087f4
jmp 0x1009d29
push dword [ebp - 0x16c]
lea eax, [ebp - 0x94]
push 0x10027a0
push 0x40
push eax
call fcn.01008c79
add esp, 0x10
push 1
push 0xff
push 7
push 0x361
push ebx
push edi
push esi
lea ecx, [ebp - 0x1e4]
call fcn.01012994
push dword [ebp - 0x128]
lea ecx, [ebp - 0x23c]
push ecx
mov ecx, eax
call fcn.01012eaf
lea ecx, [ebp - 0x94]
push ecx
lea ecx, [ebp - 0x294]
push ecx
mov ecx, eax
call fcn.01012eaf
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
sub esp, 0x58
mov ecx, esp
mov dword [ebp - 0x130], esp
push eax
push ecx
mov ecx, esi
call fcn.01012eaf
lea eax, [ebp - 0x174]
push 0x1b59
push eax
call fcn.010147b2
add esp, 0x64
lea ecx, [ebp - 0x294]
call fcn.01012a44
lea ecx, [ebp - 0x23c]
call fcn.01012a44
lea ecx, [ebp - 0x1e4]
call fcn.01012a44
lea eax, [ebp - 0x128]
push eax
call fcn.010087f4
cmp dword [ebp - 0x16c], 0
je 0x1009e6b
and dword [ebp - 0x12c], 0
and dword [ebp - 0x124], 0
cmp dword [ebp - 0x16c], 1
jne 0x1009d7b
lea eax, [ebp - 0x120]
push 0x40002b07
push eax
mov dword [ebp - 0x134], 1
call fcn.0101045d
pop ecx
pop ecx
jmp 0x1009e6b
lea eax, [ebp - 0x12c]
push eax
push dword [ebp - 0x16c]
call fcn.0100fcdd
test eax, eax
je 0x1009dc9
push dword [ebp - 0x12c]
lea eax, [ebp - 0x120]
push eax
call fcn.01010526
mov eax, dword [ebp - 0x16c]
add eax, 0xffffefff
pop ecx
pop ecx
cmp eax, 9
ja 0x1009e6b
lea ecx, [ebp - 0x120]
call fcn.0100cf6c
jmp 0x1009e6b
lea eax, [ebp - 0x124]
push eax
push dword [ebp - 0x16c]
call fcn.0100ffa1
test eax, eax
je 0x1009e0e
push 0x1002790
lea ecx, [ebp - 0x120]
call fcn.0100fb2f
push dword [ebp - 0x124]
lea ecx, [ebp - 0x120]
call fcn.0100fb2f
push dword [ebp - 0x124]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1009e6b
push dword [ebp - 0x16c]
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.0101076f
add esp, 0xc
mov dword [ebp - 0x124], eax
test eax, eax
lea eax, [ebp - 0x120]
je 0x1009e57
push dword [ebp - 0x124]
push 0x40002716
push eax
call fcn.0101045d
add esp, 0xc
lea eax, [ebp - 0x124]
push eax
call fcn.010087f4
jmp 0x1009e6b
push dword [ebp - 0x16c]
push 0x40002715
push eax
call fcn.0101045d
add esp, 0xc
lea ecx, [ebp - 0x120]
mov byte [ebp - 4], 1
call fcn.010096d8
lea ecx, [ebp - 0x174]
call fcn.01013c60
mov eax, dword [ebp - 0x134]
call fcn.01012057
ret 8