Function at 0x10085200
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x48
call sub.kernel32.dll_GetCommandLineW
test eax, eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 4
mov dword [ebp - 0x24], 0
je 0x10085636
movzx esi, word [eax]
test si, si
je 0x10085636
add eax, 2
xor ebx, ebx
mov ecx, 2
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 2
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x10], 0
jmp 0x10085276
mov ecx, dword [ebp - 0x4c]
mov word [ecx + ebx*2], si
inc ebx
mov dword [ebp - 0x48], ebx
movzx esi, word [edi]
lea eax, [edi + 2]
test si, si
je 0x100852c3
mov edi, eax
cmp si, 9
je 0x100852a0
movzx eax, si
cmp eax, 0x20
je 0x100852a0
cmp eax, 0x22
jne 0x100852a6
mov eax, dword [ebp - 0x10]
not al
and al, 1
mov dword [ebp - 0x10], eax
jmp 0x1008526b
test byte [ebp - 0x10], 1
je 0x100852c3
cmp ebx, dword [ebp - 0x50]
jne 0x10085263
lea ecx, [ebp - 0x50]
call fcn.1006fd60
jmp 0x10085260
add edi, 2
movzx eax, word [edi]
cmp eax, 0x20
je 0x100852c0
cmp eax, 9
je 0x100852c0
mov eax, dword [ebp - 0x4c]
lea ecx, [ebp - 0x44]
push ebx
mov dword [ebp - 0x54], eax
push eax
push ecx
call fcn.10091010
add esp, 0xc
lea ecx, [ebp - 0x2c]
call fcn.1006fa50
mov eax, dword [ebp - 0x28]
movsd xmm0, qword [ebp - 0x44]
movsd xmm1, qword [ebp - 0x3c]
movsd qword [eax + 8], xmm1
movsd qword [eax], xmm0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 2
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x18], 0
movzx ebx, word [edi]
test bx, bx
je 0x100856df
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 2
mov dword [ebp - 0x34], 0
jmp 0x10085371
test byte [ebp - 0x34], 1
jne 0x100854cc
mov edi, dword [ebp - 0x14]
mov al, 1
mov dword [ebp - 0x34], eax
nop word cs:[eax + eax]
nop dword [eax]
movzx ebx, word [esi]
mov dword [ebp - 0x14], edi
test bx, bx
mov edi, esi
je 0x100856cf
movzx eax, bx
lea esi, [edi + 2]
cmp eax, 0x21
jg 0x10085410
cmp eax, 9
je 0x1008538e
cmp eax, 0x20
jne 0x10085480
test byte [ebp - 0x34], 1
jne 0x10085480
mov eax, dword [ebp - 0x1c]
push dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.10091010
add esp, 0xc
mov edi, dword [ebp - 0x24]
cmp edi, dword [ebp - 0x2c]
jne 0x100853be
lea ecx, [ebp - 0x2c]
call fcn.1006fa50
mov eax, dword [ebp - 0x28]
movsd xmm0, qword [ebp - 0x44]
movsd xmm1, qword [ebp - 0x3c]
mov ecx, edi
inc edi
shl ecx, 4
movsd qword [eax + ecx + 8], xmm1
movsd qword [eax + ecx], xmm0
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x18], 0
jmp 0x100853f3
add esi, 2
movzx ebx, word [esi]
cmp ebx, 0x20
je 0x100853f0
cmp ebx, 9
je 0x100853f0
mov dword [ebp - 0x10], 0
jmp 0x10085366
cmp eax, 0x22
je 0x10085341
cmp eax, 0x5c
jne 0x10085480
movzx eax, word [esi]
xor ebx, ebx
cmp ax, 0x5c
jne 0x1008543f
xor ebx, ebx
nop dword [eax + eax]
movzx eax, word [edi + ebx*2 + 4]
add esi, 2
inc ebx
cmp ax, 0x5c
je 0x10085430
lea ecx, [ebx + 1]
cmp ax, 0x22
jne 0x100854a6
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x10]
mov edi, ecx
shr edi, 1
sub eax, edx
cmp eax, edi
jae 0x100854ec
mov dword [ebp - 0x30], ecx
lea ecx, [ebp - 0x20]
push edi
call fcn.1006f760
add esp, 4
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x10], eax
jmp 0x100854f5
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x20]
jne 0x10085490
lea ecx, [ebp - 0x20]
call fcn.1006fd60
mov edi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
mov word [edi + eax*2], bx
inc eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], eax
jmp 0x10085360
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x10]
sub eax, edx
cmp eax, ecx
mov eax, ecx
jae 0x10085507
mov ebx, eax
lea ecx, [ebp - 0x20]
push eax
call fcn.1006f760
add esp, 4
mov edi, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov eax, ebx
jmp 0x1008550e
movzx ebx, word [esi]
cmp ebx, 0x22
je 0x10085601
test ebx, ebx
je 0x100856fd
mov dword [ebp - 0x34], 0
jmp 0x10085366
cmp ecx, 2
jb 0x100855bd
mov eax, dword [ebp - 0x1c]
cmp ecx, 0x20
mov dword [ebp - 0x14], eax
jae 0x10085567
mov eax, edi
jmp 0x100855a4
mov edi, dword [ebp - 0x14]
test eax, eax
je 0x1008555c
cmp eax, 0x10
jb 0x10085550
movaps xmm0, xmmword [0x10177f30]
mov ecx, eax
mov dword [ebp - 0x30], eax
and eax, 0xf
mov dword [ebp - 0x14], edi
lea ebx, [edi + edx*2 + 0x10]
and ecx, 0xfffffff0
add edx, ecx
mov edi, ecx
movups xmmword [ebx - 0x10], xmm0
movups xmmword [ebx], xmm0
add ebx, 0x20
add edi, 0xfffffff0
jne 0x10085530
cmp dword [ebp - 0x30], ecx
mov edi, dword [ebp - 0x14]
je 0x1008555c
nop word [eax + eax]
mov ecx, edx
mov word [edi + edx*2], 0x5c
inc edx
dec eax
jne 0x10085550
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x18], edx
jmp 0x10085360
mov ecx, edi
mov edx, dword [ebp - 0x10]
movaps xmm0, xmmword [0x10177f30]
mov eax, edi
and ecx, 0xfffffff0
and eax, 0xf
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp - 0x14]
lea edx, [ecx + edx*2 + 0x10]
mov ecx, dword [ebp - 0x30]
add dword [ebp - 0x10], ecx
nop dword [eax + eax]
movups xmmword [edx - 0x10], xmm0
movups xmmword [edx], xmm0
add edx, 0x20
add ecx, 0xfffffff0
jne 0x10085590
cmp edi, dword [ebp - 0x30]
je 0x100855bd
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
nop word [eax + eax]
mov word [edx + ecx*2], 0x5c
inc ecx
dec eax
jne 0x100855b0
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
test bl, 1
mov dword [ebp - 0x18], eax
jne 0x100855f9
xor ebx, ebx
cmp word [esi], 0
setne byte [ebp - 0x14]
cmp eax, dword [ebp - 0x20]
jne 0x100855df
lea ecx, [ebp - 0x20]
call fcn.1006fd60
movzx eax, byte [ebp - 0x14]
mov edi, dword [ebp - 0x1c]
mov bl, al
mov eax, dword [ebp - 0x10]
lea esi, [esi + ebx*2]
mov word [edi + eax*2], 0x22
jmp 0x1008549a
mov edi, dword [ebp - 0x14]
jmp 0x10085360
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x20]
jne 0x10085611
lea ecx, [ebp - 0x20]
call fcn.1006fd60
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
mov word [ecx + eax*2], 0x22
inc eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], eax
lea eax, [edi + 4]
cmp word [edi + 2], 0
mov edi, ecx
cmovne esi, eax
jmp 0x10085360
lea ecx, [ebp - 0x44]
call fcn.100a1a70
mov esi, dword [ebp - 0x44]
mov ebx, dword [ebp - 0x40]
mov edi, dword [ebp - 0x3c]
cmp esi, 0x80000000
jne 0x1008569d
cmp bl, 3
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 1
jne 0x10085694
mov ebx, dword [edi + 4]
mov esi, dword [edi]
mov eax, dword [ebx]
test eax, eax
je 0x10085673
push esi
call eax
add esp, 4
mov eax, dword [ebx + 4]
test eax, eax
je 0x10085687
push dword [ebx + 8]
push eax
push esi
call fcn.1000d080
add esp, 0xc
push 4
push 0xc
push edi
call fcn.1000d080
add esp, 0xc
mov ebx, 1
xor esi, esi
jmp 0x100856a6
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x2c]
call fcn.1006fa50
mov edi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov dword [edi], esi
mov dword [edi + 4], ebx
mov dword [edi + 8], eax
mov dword [edi + 0xc], ecx
mov esi, 1
mov ebx, dword [ebp - 0x2c]
jmp 0x1008576f
test byte [ebp - 0x34], 1
mov ecx, dword [ebp - 0x10]
sete al
test ecx, ecx
je 0x100856e7
jmp 0x10085700
mov al, 1
xor ecx, ecx
test ecx, ecx
jne 0x10085700
test al, al
je 0x10085700
mov edi, dword [ebp - 0x28]
mov esi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x2c]
test eax, eax
jne 0x10085748
jmp 0x10085758
mov ecx, dword [ebp - 0x10]
push ecx
push dword [ebp - 0x1c]
lea eax, [ebp - 0x44]
push eax
call fcn.10091010
add esp, 0xc
mov esi, dword [ebp - 0x24]
cmp esi, dword [ebp - 0x2c]
jne 0x10085720
lea ecx, [ebp - 0x2c]
call fcn.1006fa50
mov edi, dword [ebp - 0x28]
movsd xmm0, qword [ebp - 0x44]
movsd xmm1, qword [ebp - 0x3c]
mov eax, esi
inc esi
shl eax, 4
movsd qword [edi + eax + 8], xmm1
movsd qword [edi + eax], xmm0
mov eax, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x2c]
test eax, eax
je 0x10085758
add eax, eax
push 2
push eax
push dword [ebp - 0x1c]
call fcn.1000d080
add esp, 0xc
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x1008576f
add eax, eax
push 2
push eax
push dword [ebp - 0x54]
call fcn.1000d080
add esp, 0xc
mov eax, dword [ebp + 8]
shl esi, 4
add esi, edi
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [eax + 8], ebx
mov dword [eax + 0xc], esi
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret