Function at 0x401170
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x405f36
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x57c
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10], esp
push edi
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp - 4], edi
mov dword [ebp - 0x1c], edi
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
push 0x407138
push 7
push edi
push 0x407128
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, edi
jl 0x4011ea
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ole32.dll_OleRun]
cmp eax, edi
jl 0x4011e1
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x1c]
push ecx
push 0x407118
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 - 0x1c], edi
jne 0x4011f9
push 0x80004003
call fcn.00401e53
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x24]
push eax
call fcn.00401c50
mov ecx, dword [ebp - 0x24]
mov byte [ebp - 4], 2
cmp ecx, edi
jne 0x40123d
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 0
cmp eax, edi
je 0x4012d2
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
lea edx, [ebp - 0x28]
push edx
call fcn.00401ac0
mov ecx, dword [ebp - 0x28]
mov byte [ebp - 4], 3
cmp ecx, edi
jne 0x40128b
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 1
cmp eax, edi
je 0x401262
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 0
cmp eax, edi
je 0x401273
mov edx, dword [eax]
push eax
call dword [edx + 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
lea eax, [ebp - 0x2c]
push eax
call fcn.00401b10
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 4
cmp eax, edi
jne 0x4012ea
mov eax, dword [ebp - 0x28]
mov byte [ebp - 4], 2
cmp eax, edi
je 0x4012b0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 1
cmp eax, edi
je 0x4012c1
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 0
cmp eax, edi
je 0x4012d2
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
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
push str._loc
push esi
call fcn.0040208e
push str._subloc
push esi
mov ebx, eax
call fcn.0040208e
add esp, 0x10
cmp ebx, edi
mov dword [ebp - 0x14], eax
je 0x40139b
mov edi, dword [sym.imp.USER32.dll_CharNextA]
xor esi, esi
cmp esi, 4
jge 0x40132d
push ebx
call edi
mov ebx, eax
inc esi
jmp 0x401320
push 0x407100
push ebx
call fcn.0040208e
add esp, 8
test eax, eax
je 0x40134a
push eax
push ebx
call dword [sym.imp.USER32.dll_CharPrevA]
mov byte [eax], 0
mov al, byte [ebx]
cmp al, 0x20
je 0x401354
cmp al, 0x22
jne 0x40135f
test ebx, ebx
je 0x40135f
push ebx
call edi
mov ebx, eax
jmp 0x40134a
push ebx
call fcn.00402058
add esp, 4
mov edi, eax
mov eax, ebx
xor esi, esi
lea edx, [edi - 1]
cmp esi, edx
jge 0x40137f
push eax
call dword [sym.imp.USER32.dll_CharNextA]
inc esi
jmp 0x40136e
xor esi, esi
mov cl, byte [eax]
cmp cl, 0x20
je 0x4013be
cmp cl, 0x22
je 0x4013be
test esi, esi
je 0x40139b
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov byte [eax], 0
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x401450
xor esi, esi
mov edi, eax
cmp esi, 7
jge 0x4013cd
push edi
call dword [sym.imp.USER32.dll_CharNextA]
mov edi, eax
inc esi
mov dword [ebp - 0x14], edi
jmp 0x4013aa
push eax
push ebx
mov esi, 1
call dword [sym.imp.USER32.dll_CharPrevA]
jmp 0x401381
push 0x407100
push edi
call fcn.0040208e
add esp, 8
test eax, eax
je 0x4013ea
push eax
push edi
call dword [sym.imp.USER32.dll_CharPrevA]
mov byte [eax], 0
mov al, byte [edi]
cmp al, 0x20
je 0x4013f4
cmp al, 0x22
jne 0x401406
test edi, edi
je 0x401406
push edi
call dword [sym.imp.USER32.dll_CharNextA]
mov edi, eax
mov dword [ebp - 0x14], edi
jmp 0x4013ea
mov esi, dword [ebp - 0x14]
push esi
call fcn.00402058
mov edi, eax
add esp, 4
mov eax, esi
xor esi, esi
lea ecx, [edi - 1]
cmp esi, ecx
jge 0x40142c
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.USER32.dll_CharNextA]
inc esi
jmp 0x401418
xor esi, esi
mov cl, byte [eax]
cmp cl, 0x20
je 0x401504
cmp cl, 0x22
je 0x401504
test esi, esi
je 0x401450
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov byte [eax], 0
test ebx, ebx
mov byte [ebp - 0x15], 1
je 0x40156c
mov ecx, 0xb
mov esi, str.ProviderMicrosoft.Jet.OLEDB.4.0_Data_Source
lea edi, [ebp - 0x84]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, 7
mov esi, 0x4070b0
lea edi, [ebp - 0x54]
lea edx, [ebp - 0x484]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edi, [ebp - 0x84]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp - 0x484]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov bl, 5
and ecx, 3
mov byte [ebp - 4], bl
rep movsb byte es:[edi], byte [esi]
push ecx
mov dword [ebp - 0x20], esp
mov esi, esp
push 0xc
call fcn.0040204a
add esp, 4
mov dword [ebp - 0x30], eax
test eax, eax
mov byte [ebp - 4], 6
je 0x401519
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, eax
call fcn.00401960
jmp 0x40151b
push eax
mov eax, dword [ebp - 0x14]
push eax
mov esi, 1
call dword [sym.imp.USER32.dll_CharPrevA]
jmp 0x40142e
xor eax, eax
test eax, eax
mov byte [ebp - 4], bl
mov dword [esi], eax
jne 0x40152e
push 0x8007000e
call fcn.00401e53
push ecx
lea edx, [ebp - 0x484]
mov ecx, esp
mov dword [ebp - 0x30], esp
push edx
mov byte [ebp - 4], 7
call fcn.00401870
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 8
call fcn.00401ca0
mov ecx, eax
mov byte [ebp - 4], bl
call fcn.00401b60
mov al, byte [ebp - 0x15]
mov dword [ebp - 4], 4
test al, al
je 0x40161b
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 0xd
push eax
push 0x407138
push 7
push 0
push 0x4070a0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x4015bb
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.ole32.dll_OleRun]
test eax, eax
jl 0x4015b2
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x14]
push ecx
push 0x407090
mov edx, dword [eax]
push eax
call dword [edx]
mov eax, dword [ebp - 0x20]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40160d
mov edx, dword [ebp - 0x24]
mov ecx, dword [eax]
push edx
push eax
mov esi, eax
call dword [ecx + 0x20]
test eax, eax
jge 0x4015de
push 0x407090
push esi
push eax
call fcn.00401e61
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x4015f2
push 0x80004003
call fcn.00401e53
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push eax
mov esi, eax
call dword [ecx + 0x24]
test eax, eax
jge 0x40160a
push 0x407090
push esi
push eax
call fcn.00401e61
mov eax, dword [ebp - 0x14]
test eax, eax
mov byte [ebp - 4], 4
je 0x40161b
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 3
test eax, eax
je 0x40162c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x28]
mov byte [ebp - 4], 2
test eax, eax
je 0x40163d
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 1
test eax, eax
je 0x40164e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 0
test eax, eax
je 0x401846
mov edx, dword [eax]
push eax
call dword [edx + 8]
jmp 0x401846
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