Function at 0x407660
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe0
mov eax, dword [0x41b250]
xor eax, ebp
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0xc8], 0x94
lea eax, [ebp - 0xc8]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0xb8], 1
jne 0x4076ad
mov dword [0x41c230], 1
jmp 0x4076c0
cmp dword [ebp - 0xb8], 2
jne 0x4076c0
mov dword [0x41c234], 1
cmp dword [0x41c230], 0
jne 0x4076db
cmp dword [0x41c234], 0
je 0x4076e5
cmp dword [ebp - 0xc4], 4
jb 0x4076e5
mov dword [0x41c238], 1
mov dword [ebp - 0x20], 0
cmp dword [0x41c234], 0
je 0x40779d
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
movzx edx, word [ecx]
cmp edx, 0x22
jne 0x40774c
mov eax, dword [ebp - 0x24]
add eax, 2
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
movzx edx, word [ecx]
cmp edx, 0x22
je 0x407736
mov eax, dword [ebp - 0x24]
movzx ecx, word [eax]
test ecx, ecx
je 0x407736
mov edx, dword [ebp - 0x24]
add edx, 2
mov dword [ebp - 0x24], edx
jmp 0x407716
mov eax, dword [ebp - 0x24]
movzx ecx, word [eax]
cmp ecx, 0x22
jne 0x40774a
mov edx, dword [ebp - 0x24]
add edx, 2
mov dword [ebp - 0x24], edx
jmp 0x407777
mov eax, dword [ebp - 0x24]
movzx ecx, word [eax]
cmp ecx, 0x20
je 0x407777
mov edx, dword [ebp - 0x24]
movzx eax, word [edx]
cmp eax, 9
je 0x407777
mov ecx, dword [ebp - 0x24]
movzx edx, word [ecx]
test edx, edx
je 0x407777
mov eax, dword [ebp - 0x24]
add eax, 2
mov dword [ebp - 0x24], eax
jmp 0x40774c
mov ecx, dword [ebp - 0x24]
movzx edx, word [ecx]
cmp edx, 0x20
je 0x40778d
mov eax, dword [ebp - 0x24]
movzx ecx, word [eax]
cmp ecx, 9
jne 0x407798
mov edx, dword [ebp - 0x24]
add edx, 2
mov dword [ebp - 0x24], edx
jmp 0x407777
jmp 0x4078f7
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
movsx ecx, byte [eax]
cmp ecx, 0x22
jne 0x4077f4
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
movsx ecx, byte [eax]
cmp ecx, 0x22
je 0x4077de
mov edx, dword [ebp - 0x10]
movsx eax, byte [edx]
test eax, eax
je 0x4077de
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [ebp - 0x10], eax
jmp 0x4077ba
mov edx, dword [ebp - 0x10]
movsx eax, byte [edx]
cmp eax, 0x22
jne 0x4077f2
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
jmp 0x407823
mov edx, dword [ebp - 0x10]
movsx eax, byte [edx]
cmp eax, 0x20
je 0x407823
mov ecx, dword [ebp - 0x10]
movsx edx, byte [ecx]
cmp edx, 9
je 0x407823
mov eax, dword [ebp - 0x10]
movsx ecx, byte [eax]
test ecx, ecx
je 0x407823
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [ebp - 0x10], eax
jmp 0x4077f4
mov eax, dword [ebp - 0x10]
movsx ecx, byte [eax]
cmp ecx, 0x20
je 0x407839
mov edx, dword [ebp - 0x10]
movsx eax, byte [edx]
cmp eax, 9
jne 0x407848
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [ebp - 0x10], eax
jmp 0x407823
push 0
push 0
push 0xffffffffffffffff
mov edx, dword [ebp - 0x10]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
shl eax, 1
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x20], 0
je 0x407889
cmp dword [ebp - 0x24], 0
jne 0x4078df
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [0x41c220], 0
je 0x4078c5
push 0x41accc
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4078c5
mov edx, dword [ebp + 8]
push edx
call dword [ebp - 0x18]
cmp dword [ebp - 0xc], 0
je 0x4078d5
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 0xf5
jmp 0x407c3c
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x24]
push edx
push 0xffffffffffffffff
mov eax, dword [ebp - 0x10]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0xd0], ecx
mov edx, dword [ebp - 0xd0]
movzx eax, word [edx]
cmp eax, 0x21
jne 0x407994
mov ecx, dword [ebp - 0xd0]
movzx edx, word [ecx + 2]
cmp edx, 0x40
jne 0x407994
mov eax, dword [ebp - 0xd0]
movzx ecx, word [eax + 4]
cmp ecx, 0x23
jne 0x407994
mov edx, dword [ebp - 0xd0]
push edx
push 0x421380
call fcn.004100b1
add esp, 8
mov eax, dword [ebp - 0xd0]
add eax, 0x1e
mov dword [ebp - 0xd0], eax
push 0xa
push 0
push 0x421386
call fcn.00410086
add esp, 0xc
mov dword [ebp - 0xcc], eax
mov ecx, dword [ebp - 0xcc]
mov dword [0x41c224], ecx
mov dword [0x41c228], 1
mov dword [0x41c388], 0
mov dword [0x41c380], 0
push 0x4216a0
call fcn.0040c9b0
mov dword [ebp - 0xd8], eax
cmp dword [ebp - 0xd8], 0
je 0x4079c2
mov edx, dword [ebp - 0xd8]
push edx
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [ebp - 0xd4], eax
jmp 0x4079cc
mov dword [ebp - 0xd4], 0x4216a0
mov eax, dword [ebp - 0xd4]
push eax
push 0x41cf60
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x4216a0
push 0x41ce40
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [ebp - 0x1c], 0x41d0a0
xor ecx, ecx
mov edx, dword [ebp - 0x1c]
mov word [edx], cx
mov eax, dword [ebp - 0xd0]
movzx ecx, word [eax]
test ecx, ecx
je 0x407a63
mov dword [ebp - 4], 0
jmp 0x407a1c
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0x1fff
jge 0x407a5b
mov eax, dword [ebp - 0xd0]
movzx ecx, word [eax]
test ecx, ecx
je 0x407a5b
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xd0]
mov cx, word [eax]
mov word [edx], cx
mov edx, dword [ebp - 0x1c]
add edx, 2
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0xd0]
add eax, 2
mov dword [ebp - 0xd0], eax
jmp 0x407a13
xor ecx, ecx
mov edx, dword [ebp - 0x1c]
mov word [edx], cx
cmp dword [0x41c264], 0
je 0x407b68
mov eax, dword [ebp + 0x10]
movsx ecx, byte [eax]
test ecx, ecx
je 0x407b68
push 0
push 0
push 0xffffffffffffffff
mov edx, dword [ebp + 0x10]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
shl eax, 1
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0xdc], eax
cmp dword [ebp - 0xdc], 0
je 0x407b68
mov ecx, dword [ebp - 0xdc]
mov dword [ebp - 0xe0], ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0xdc]
push eax
push 0xffffffffffffffff
mov ecx, dword [ebp + 0x10]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp dword [ebp - 4], 0
je 0x407b09
cmp dword [ebp - 4], 0x1fff
jge 0x407b09
mov edx, 0x20
mov eax, dword [ebp - 0x1c]
mov word [eax], dx
mov ecx, dword [ebp - 0x1c]
add ecx, 2
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
jmp 0x407b14
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x1fff
jge 0x407b53
mov ecx, dword [ebp - 0xe0]
movzx edx, word [ecx]
test edx, edx
je 0x407b53
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xe0]
mov dx, word [ecx]
mov word [eax], dx
mov eax, dword [ebp - 0x1c]
add eax, 2
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0xe0]
add ecx, 2
mov dword [ebp - 0xe0], ecx
jmp 0x407b0b
xor edx, edx
mov eax, dword [ebp - 0x1c]
mov word [eax], dx
mov ecx, dword [ebp - 0xdc]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [ebp - 0x20], 0
je 0x407b82
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [ebp - 0x14], 1
cmp dword [ebp + 0xc], 0
jne 0x407bad
mov ecx, dword [ebp + 8]
push ecx
call fcn.00407c50
test eax, eax
jne 0x407bad
mov dword [0x41c38c], 0xfb
mov dword [ebp - 0x14], 0
cmp dword [ebp - 0x14], 0
je 0x407bf4
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00407cf0
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
jne 0x407bd2
mov dword [ebp - 0x14], 0
jmp 0x407bf4
cmp dword [0x41c22c], 0
je 0x407bf4
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040ca10
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
jne 0x407bf4
mov dword [ebp - 0x14], 0
cmp dword [0x41c220], 0
je 0x407c1c
push str.Ctl3dUnregister
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x407c1c
mov eax, dword [ebp + 8]
push eax
call dword [ebp - 0x18]
cmp dword [ebp - 0xc], 0
je 0x407c2c
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x14], 0
jne 0x407c39
mov eax, dword [0x41c38c]
jmp 0x407c3c
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
xor ecx, ebp
call fcn.0040fa05
mov esp, ebp
pop ebp
ret 0x10