Function at 0x1006a578
Capabilities:
Accept command line arguments

Disassembly:
push 0x60
mov eax, 0x100a3371
call fcn.10094b6a
mov edi, dword [ebp + 8]
xor esi, esi
cmp dword [edi + 0x48], esi
je 0x1006a94c
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.10026b5d
mov dword [ebp - 4], esi
mov eax, dword [0x100bcf90]
mov ecx, 0x100bcf90
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 1
mov ecx, dword [edi + 0x14]
mov eax, dword [ecx]
mov dword [ebp - 0x28], esi
call dword [eax]
test eax, eax
je 0x1006a8ed
mov ecx, dword [edi + 0x14]
push dword [ebp - 0x28]
mov eax, dword [ecx]
call dword [eax + 4]
push esi
push 0x100c4560
push 0x100c4218
push esi
push eax
call fcn.10094605
mov ebx, eax
add esp, 0x14
cmp ebx, esi
je 0x1006a8da
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], esi
mov byte [ebp - 4], 2
mov eax, dword [ebx + 0x34]
mov dword [ebp - 0x20], esi
cmp eax, esi
jbe 0x1006a74c
mov dword [ebp - 0x24], esi
cmp esi, eax
jae 0x1006a97a
mov eax, dword [ebx + 0x30]
add eax, dword [ebp - 0x24]
lea esi, [ebp - 0x1c]
call fcn.10049f05
xor eax, eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
push eax
push 0x80
push 3
push 7
push SysReAllocStringLen
mov byte [ebp - 4], 4
push dword [ebp - 0x1c]
lea edi, [ebp - 0x44]
call fcn.1002b029
mov esi, 0x80070020
cmp eax, esi
jne 0x1006a688
mov esi, dword [ebp - 0x1c]
push esi
push 0x10015c70
lea eax, [ebp - 0x18]
push eax
call fcn.100847a7
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
mov eax, dword [ecx]
add esp, 0xc
push dword [ebp - 0x18]
push 4
call dword [eax + 4]
jmp 0x1006a715
xor edi, edi
cmp dword [ebp - 0x44], edi
je 0x1006a69b
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x44], edi
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebx + 0x34]
jae 0x1006a97a
mov eax, dword [ebx + 0x30]
add eax, dword [ebp - 0x24]
cmp byte [eax + 4], 0
jne 0x1006a6ef
push edi
push 0x80
push 3
push 7
push 0x10000
push dword [ebp - 0x1c]
lea edi, [ebp - 0x44]
call fcn.1002b029
cmp eax, esi
jne 0x1006a6dc
mov esi, dword [ebp - 0x1c]
push esi
push 0x10015d28
jmp 0x1006a667
cmp dword [ebp - 0x44], 0
je 0x1006a6ef
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x44], 0
mov esi, dword [ebp - 0x1c]
push esi
lea eax, [ebp - 0x38]
push eax
call fcn.1002812a
mov byte [ebp - 4], 5
push dword [eax]
lea ecx, [ebp - 0x54]
call fcn.10073046
mov eax, dword [ebp - 0x38]
add eax, 0xfffffff0
call fcn.10084b37
cmp dword [ebp - 0x44], 0
je 0x1006a728
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x44], 0
lea eax, [esi - 0x10]
mov byte [ebp - 4], 2
call fcn.10084b37
inc dword [ebp - 0x20]
mov eax, dword [ebx + 0x34]
add dword [ebp - 0x24], 0x28
cmp dword [ebp - 0x20], eax
jb 0x1006a621
mov edi, dword [ebp + 8]
xor esi, esi
mov eax, dword [ebx + 4]
mov dword [ebp - 0x20], esi
cmp eax, esi
jbe 0x1006a84b
mov ecx, dword [ebp - 0x20]
cmp ecx, eax
jae 0x1006a97a
mov eax, dword [ebx]
lea eax, [eax + ecx*4]
push dword [eax]
lea eax, [ebp - 0x2c]
push eax
call fcn.1002812a
mov byte [ebp - 4], 6
mov dword [ebp - 0x24], esi
cmp dword [ebp - 0x50], esi
jbe 0x1006a805
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
call fcn.10084ad6
add eax, 0x10
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 7
cmp eax, dword [ebp - 0x50]
jae 0x1006a97a
mov ecx, dword [ebp - 0x54]
mov eax, dword [ecx + eax*4]
sub eax, 0x10
call fcn.10084ad6
lea esi, [eax + 0x10]
mov dword [ebp - 0x3c], esi
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x34]
push eax
call fcn.1005f5d9
neg eax
sbb al, al
inc al
mov byte [ebp - 0x11], al
lea eax, [esi - 0x10]
call fcn.10084b37
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x34]
add eax, 0xfffffff0
call fcn.10084b37
cmp byte [ebp - 0x11], 0
jne 0x1006a954
inc dword [ebp - 0x24]
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x50]
jb 0x1006a78e
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
mov dword [ebp - 0x30], eax
call fcn.10084ad6
mov ecx, dword [edi + 0x48]
lea esi, [eax + 0x10]
mov dword [ebp - 0x3c], esi
push esi
mov byte [ebp - 4], 9
call fcn.10073046
lea eax, [esi - 0x10]
call fcn.10084b37
mov eax, dword [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.10084b37
inc dword [ebp - 0x20]
mov eax, dword [ebx + 4]
xor esi, esi
cmp dword [ebp - 0x20], eax
jb 0x1006a75a
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x1006a888
cmp esi, eax
jae 0x1006a97a
mov eax, dword [ebx + 0x10]
lea eax, [eax + esi*4]
mov eax, dword [eax]
push ecx
mov dword [ebp - 0x3c], esp
sub eax, 0x10
mov dword [ebp - 0x3c], esp
call fcn.10084ad6
mov ecx, esp
add eax, 0x10
mov dword [ecx], eax
mov ecx, dword [edi + 0x48]
call fcn.10052aba
mov eax, dword [ebx + 0x14]
inc esi
cmp esi, eax
jb 0x1006a85a
mov eax, dword [ebx + 0x24]
and dword [ebp - 0x24], 0
test eax, eax
je 0x1006a8cc
mov ecx, dword [ebp - 0x24]
cmp ecx, eax
jae 0x1006a97a
mov eax, dword [ebx + 0x20]
lea eax, [eax + ecx*4]
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [ebp - 0x3c], esp
mov esi, esp
call fcn.10084ad6
add eax, 0x10
mov dword [esi], eax
mov esi, dword [edi + 0x48]
call fcn.10052c0a
inc dword [ebp - 0x24]
mov eax, dword [ebx + 0x24]
cmp dword [ebp - 0x24], eax
jb 0x1006a893
lea esi, [ebp - 0x54]
mov byte [ebp - 4], 1
call fcn.1007314e
xor esi, esi
mov ecx, dword [edi + 0x14]
mov eax, dword [ecx]
inc dword [ebp - 0x28]
call dword [eax]
cmp dword [ebp - 0x28], eax
jb 0x1006a5ce
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call esi
push dword [edi + 0x48]
mov ebx, eax
call fcn.10052b44
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x6c]
call fcn.10027183
mov eax, dword [eax]
mov ebx, dword [eax - 0xc]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.10084b37
test ebx, ebx
je 0x1006a931
call esi
push eax
call fcn.1004937f
push dword [edi + 0x48]
mov ebx, eax
call fcn.10052b44
mov esi, dword [edi + 0x48]
call fcn.10052a56
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.10084b37
lea ecx, [ebp - 0x6c]
call fcn.10026eb8
call fcn.10094c56
ret 4
push dword [ebp - 0x2c]
lea eax, [ebp - 0x18]
push 0x10015de0
push eax
call fcn.100847a7
mov ecx, dword [edi + 0x18]
mov eax, dword [ecx]
add esp, 0xc
push dword [ebp - 0x18]
push 4
call dword [eax + 4]
jmp 0x1006a82e
push 0x80070057
call fcn.10084aa9
int3