Function at 0x401170
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x405ec3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x138
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x10], esp
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], esi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00401c40
lea eax, [ebp - 0x14]
push eax
push 0x4070e8
push 7
push esi
push 0x4070d8
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, esi
jl 0x4011f2
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ole32.dll_OleRun]
cmp eax, esi
jl 0x4011e9
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
push ecx
push 0x4070c8
mov edx, dword [eax]
push eax
call dword [edx]
mov eax, dword [ebp - 0x14]
push eax
mov edx, dword [eax]
call dword [edx + 8]
cmp dword [ebp - 0x18], esi
jne 0x401201
push 0x80004003
call fcn.00401df3
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x1c]
push eax
call fcn.00401bf0
mov ecx, dword [ebp - 0x1c]
mov byte [ebp - 4], 2
cmp ecx, esi
je 0x401250
lea edx, [ebp - 0x20]
push edx
call fcn.00401980
mov ecx, dword [ebp - 0x20]
mov byte [ebp - 4], 3
cmp ecx, esi
je 0x401248
lea eax, [ebp - 0x28]
push eax
call fcn.004019d0
mov eax, dword [ebp - 0x28]
mov byte [ebp - 4], 4
cmp eax, esi
jne 0x401278
lea ecx, [ebp - 0x28]
call fcn.00401c40
lea ecx, [ebp - 0x20]
call fcn.00401c40
lea ecx, [ebp - 0x1c]
call fcn.00401c40
lea ecx, [ebp - 0x18]
call fcn.00401c40
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
push str._loc
push esi
call fcn.0040202e
mov edi, eax
push str._subloc
push esi
mov dword [ebp - 0x14], edi
call fcn.0040202e
add esp, 0x10
mov ebx, eax
test edi, edi
je 0x401336
xor esi, esi
cmp esi, 4
jge 0x4012be
push edi
call dword [sym.imp.USER32.dll_CharNextA]
mov edi, eax
inc esi
mov dword [ebp - 0x14], edi
jmp 0x4012aa
push 0x4070b0
push edi
call fcn.0040202e
add esp, 8
test eax, eax
je 0x4012db
push eax
push edi
call dword [sym.imp.USER32.dll_CharPrevA]
mov byte [eax], 0
mov al, byte [edi]
cmp al, 0x20
je 0x4012e5
cmp al, 0x22
jne 0x4012f7
test edi, edi
je 0x4012f7
push edi
call dword [sym.imp.USER32.dll_CharNextA]
mov edi, eax
mov dword [ebp - 0x14], edi
jmp 0x4012db
mov esi, dword [ebp - 0x14]
push esi
call fcn.00401ff8
mov edi, eax
add esp, 4
mov eax, esi
xor esi, esi
lea ecx, [edi - 1]
cmp esi, ecx
jge 0x40131a
push eax
call dword [sym.imp.USER32.dll_CharNextA]
inc esi
jmp 0x401309
xor esi, esi
mov cl, byte [eax]
cmp cl, 0x20
je 0x401353
cmp cl, 0x22
je 0x401353
test esi, esi
je 0x401336
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov byte [eax], 0
test ebx, ebx
je 0x4013d3
mov edi, dword [sym.imp.USER32.dll_CharNextA]
xor esi, esi
cmp esi, 7
jge 0x401365
push ebx
call edi
mov ebx, eax
inc esi
jmp 0x401346
mov edx, dword [ebp - 0x14]
push eax
push edx
mov esi, 1
call dword [sym.imp.USER32.dll_CharPrevA]
jmp 0x40131c
push 0x4070b0
push ebx
call fcn.0040202e
add esp, 8
test eax, eax
je 0x401382
push eax
push ebx
call dword [sym.imp.USER32.dll_CharPrevA]
mov byte [eax], 0
mov al, byte [ebx]
cmp al, 0x20
je 0x40138c
cmp al, 0x22
jne 0x401397
test ebx, ebx
je 0x401397
push ebx
call edi
mov ebx, eax
jmp 0x401382
push ebx
call fcn.00401ff8
add esp, 4
mov edi, eax
mov eax, ebx
xor esi, esi
lea ecx, [edi - 1]
cmp esi, ecx
jge 0x4013b7
push ebx
call dword [sym.imp.USER32.dll_CharNextA]
inc esi
jmp 0x4013a6
xor esi, esi
mov cl, byte [eax]
cmp cl, 0x20
je 0x4013ff
cmp cl, 0x22
je 0x4013ff
test esi, esi
je 0x4013d3
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov byte [eax], 0
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x401536
push 0xc
call fcn.00401fea
mov ecx, eax
add esp, 4
mov dword [ebp - 0x2c], ecx
test ecx, ecx
mov byte [ebp - 4], 5
je 0x40140e
push ebx
call fcn.00401800
mov edi, eax
jmp 0x401410
push eax
push ebx
mov esi, 1
call dword [sym.imp.USER32.dll_CharPrevA]
jmp 0x4013b9
xor edi, edi
test edi, edi
mov byte [ebp - 4], 4
mov dword [ebp - 0x2c], edi
jne 0x401425
push 0x8007000e
call fcn.00401df3
mov ebx, 8
mov byte [ebp - 4], 6
test edi, edi
mov word [ebp - 0x40], bx
je 0x40143a
mov esi, dword [edi]
jmp 0x40143c
xor esi, esi
push esi
call dword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
push eax
push esi
call dword [sym.imp.OLEAUT32.dll_DllRegisterServer]
test eax, eax
mov dword [ebp - 0x38], eax
jne 0x40145c
push 0x8007000e
call fcn.00401df3
push 0x4075d8
push 0x4075d8
push 0x4075d8
mov eax, dword [ebp - 0x14]
push 0x4075d8
push 0x4075d8
push 0x4075d8
push 0x4075d8
lea edx, [ebp - 0x40]
push 0x4075d8
push edx
push ecx
mov ecx, esp
mov dword [ebp - 0x30], esp
push eax
mov byte [ebp - 4], 7
call fcn.00401710
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], bl
call fcn.00401c50
mov ecx, eax
mov byte [ebp - 4], 7
call fcn.00401a20
lea ecx, [ebp - 0x40]
mov esi, eax
push ecx
mov byte [ebp - 4], 6
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test eax, eax
jge 0x4014cb
push eax
call fcn.00401df3
test edi, edi
je 0x4014d6
mov ecx, edi
call fcn.00401840
test esi, esi
jge 0x401536
mov eax, dword [ebp - 0x28]
mov byte [ebp - 4], 3
test eax, eax
je 0x4014eb
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [ebp - 0x20]
mov byte [ebp - 4], 2
test eax, eax
je 0x4014fc
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 1
test eax, eax
je 0x40150d
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 0
test eax, eax
je 0x40151e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov dword [ebp - 0x24], 0
lea edx, [ebp - 0x14]
mov byte [ebp - 4], 9
push edx
push 0x4070e8
push 7
push 0
push 0x4070a0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x401585
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ole32.dll_OleRun]
test eax, eax
jl 0x40157c
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x24]
push edx
push 0x407090
mov ecx, dword [eax]
push eax
call dword [ecx]
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4015d7
mov ecx, dword [ebp - 0x1c]
mov edx, dword [eax]
push ecx
push eax
mov esi, eax
call dword [edx + 0x20]
test eax, eax
jge 0x4015a8
push 0x407090
push esi
push eax
call fcn.00401e01
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x4015bc
push 0x80004003
call fcn.00401df3
mov eax, dword [ebp - 0x24]
mov edx, dword [eax]
push eax
mov esi, eax
call dword [edx + 0x24]
test eax, eax
jge 0x4015d4
push 0x407090
push esi
push eax
call fcn.00401e01
mov eax, dword [ebp - 0x24]
test eax, eax
mov byte [ebp - 4], 4
je 0x4015e5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x28]
mov byte [ebp - 4], 3
test eax, eax
je 0x4015f6
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [ebp - 0x20]
mov byte [ebp - 4], 2
test eax, eax
je 0x401607
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 1
test eax, eax
je 0x401618
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 0
test eax, eax
je 0x401629
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10