Function at 0x10081d97
Capabilities:
Execute command

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xacc
mov dword [ebp - 4], 0
cmp dword [ebp + 0x10], 0
je 0x10081db6
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.1008197b
add esp, 8
call fcn.100816a9
call fcn.100842b2
test eax, eax
jne 0x10081fb5
cmp dword [ebp + 0xc], 2
jne 0x10081df9
push 0
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.1008234b
add esp, 0xc
mov dword [ebp - 0x9b4], eax
jmp 0x10081fb3
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x9b8], ecx
mov dword [ebp - 0x9bc], 0
mov edx, dword [ebp - 0x9b8]
movsx eax, byte [edx]
test eax, eax
je 0x10081e55
mov ecx, dword [ebp - 0x9b8]
movsx edx, byte [ecx]
cmp edx, 0xa
je 0x10081e55
mov eax, dword [ebp - 0x9b8]
movsx ecx, byte [eax]
cmp ecx, 0x22
jne 0x10081e44
mov edx, dword [ebp - 0x9bc]
add edx, 1
mov dword [ebp - 0x9bc], edx
mov eax, dword [ebp - 0x9b8]
add eax, 1
mov dword [ebp - 0x9b8], eax
jmp 0x10081e0c
mov ecx, dword [ebp - 0x9b8]
movsx edx, byte [ecx]
cmp edx, 0xa
je 0x10081e70
cmp dword [ebp - 0x9bc], 3
jle 0x10081fa1
lea eax, [ebp - 0x9c4]
push eax
call fcn.100cca0c
add esp, 4
mov dword [ebp - 0x9c0], eax
cmp dword [ebp - 0x9c0], 0
jne 0x10081ea5
push 0xfffffffffffffffa
mov ecx, dword [ebp - 0x9c4]
push ecx
call fcn.100c79eb
add esp, 8
mov dword [ebp - 0x9c0], eax
cmp dword [ebp - 0x9c0], 0
jne 0x10081ec8
push str..bat
mov edx, dword [ebp - 0x9c4]
push edx
call fcn.100d276b
add esp, 8
mov dword [ebp - 0x9c0], eax
cmp dword [ebp - 0x9c0], 0
jne 0x10081eeb
push 0x10148720
mov eax, dword [ebp - 0x9c4]
push eax
call fcn.100cc12c
add esp, 8
mov dword [ebp - 0x9c0], eax
cmp dword [ebp - 0x9c0], 0
jne 0x10081f12
mov ecx, dword [ebp - 4]
push ecx
push 0x10148724
mov edx, dword [ebp - 0x9c4]
push edx
call fcn.100d4057
add esp, 0xc
mov dword [ebp - 0x9c0], eax
cmp dword [ebp - 0x9c0], 0
jne 0x10081f30
mov eax, dword [ebp - 0x9c4]
push eax
call fcn.100cf1db
add esp, 4
mov dword [ebp - 0x9c0], eax
cmp dword [ebp - 0x9c0], 0
jne 0x10081f55
lea ecx, [ebp - 0xac8]
push ecx
mov edx, dword [ebp - 0x9c4]
push edx
call fcn.100d05b3
add esp, 8
mov dword [ebp - 0x9c0], eax
cmp dword [ebp - 0x9c0], 0
jne 0x10081f95
lea eax, [ebp - 0xac8]
push eax
call sub.MSVCR70D.dll_system
add esp, 4
mov dword [ebp - 0x9b4], eax
push 0
mov ecx, dword [ebp - 0x9c4]
push ecx
call fcn.100c7f45
add esp, 8
lea edx, [ebp - 0x9c4]
push edx
call fcn.100ccc98
add esp, 4
jmp 0x10081f9f
mov dword [ebp - 0x9b4], 0xffffffff
jmp 0x10081fb3
mov eax, dword [ebp - 4]
push eax
call sub.MSVCR70D.dll_system
add esp, 4
mov dword [ebp - 0x9b4], eax
jmp 0x10082018
cmp dword [ebp + 0xc], 2
jne 0x10081fd3
push 0
push 1
mov ecx, dword [ebp + 8]
push ecx
call fcn.1008234b
add esp, 0xc
mov dword [ebp - 0x9b4], eax
jmp 0x10082018
push 0x20
lea edx, [ebp - 0x190]
push edx
push 0x81e
lea eax, [ebp - 0x9b0]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.10082c5a
add esp, 0x14
mov dword [ebp - 0x9b4], eax
lea edx, [ebp - 0x190]
push edx
mov eax, dword [ebp - 0x190]
push eax
push 0
call sub.MSVCR70D.dll__spawnvp
add esp, 0xc
mov dword [ebp - 0x9b4], eax
call fcn.100816ca
mov ecx, dword [ebp - 4]
push ecx
call sub.MSVCR70D.dll_free
add esp, 4
cmp dword [ebp + 0xc], 2
je 0x10082061
cmp dword [ebp + 0x10], 0
je 0x10082061
cmp dword [ebp - 0x9b4], 0
jl 0x1008204c
mov edx, dword [ebp - 0x9b4]
mov dword [ebp - 0xacc], edx
jmp 0x10082056
mov dword [ebp - 0xacc], 0xffffffff
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0xacc]
mov dword [eax], ecx
mov eax, dword [ebp - 0x9b4]
mov esp, ebp
pop ebp
ret