Function at 0x407590
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe0
mov eax, dword [0x41a178]
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 0x4075dd
mov dword [0x41b150], 1
jmp 0x4075f0
cmp dword [ebp - 0xb8], 2
jne 0x4075f0
mov dword [0x41b154], 1
cmp dword [0x41b150], 0
jne 0x40760b
cmp dword [0x41b154], 0
je 0x407615
cmp dword [ebp - 0xc4], 4
jb 0x407615
mov dword [0x41b158], 1
mov dword [ebp - 0x20], 0
cmp dword [0x41b154], 0
je 0x4076cd
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 0x40767c
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 0x407666
mov eax, dword [ebp - 0x24]
movzx ecx, word [eax]
test ecx, ecx
je 0x407666
mov edx, dword [ebp - 0x24]
add edx, 2
mov dword [ebp - 0x24], edx
jmp 0x407646
mov eax, dword [ebp - 0x24]
movzx ecx, word [eax]
cmp ecx, 0x22
jne 0x40767a
mov edx, dword [ebp - 0x24]
add edx, 2
mov dword [ebp - 0x24], edx
jmp 0x4076a7
mov eax, dword [ebp - 0x24]
movzx ecx, word [eax]
cmp ecx, 0x20
je 0x4076a7
mov edx, dword [ebp - 0x24]
movzx eax, word [edx]
cmp eax, 9
je 0x4076a7
mov ecx, dword [ebp - 0x24]
movzx edx, word [ecx]
test edx, edx
je 0x4076a7
mov eax, dword [ebp - 0x24]
add eax, 2
mov dword [ebp - 0x24], eax
jmp 0x40767c
mov ecx, dword [ebp - 0x24]
movzx edx, word [ecx]
cmp edx, 0x20
je 0x4076bd
mov eax, dword [ebp - 0x24]
movzx ecx, word [eax]
cmp ecx, 9
jne 0x4076c8
mov edx, dword [ebp - 0x24]
add edx, 2
mov dword [ebp - 0x24], edx
jmp 0x4076a7
jmp 0x407827
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 0x407724
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 0x40770e
mov edx, dword [ebp - 0x10]
movsx eax, byte [edx]
test eax, eax
je 0x40770e
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [ebp - 0x10], eax
jmp 0x4076ea
mov edx, dword [ebp - 0x10]
movsx eax, byte [edx]
cmp eax, 0x22
jne 0x407722
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
jmp 0x407753
mov edx, dword [ebp - 0x10]
movsx eax, byte [edx]
cmp eax, 0x20
je 0x407753
mov ecx, dword [ebp - 0x10]
movsx edx, byte [ecx]
cmp edx, 9
je 0x407753
mov eax, dword [ebp - 0x10]
movsx ecx, byte [eax]
test ecx, ecx
je 0x407753
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [ebp - 0x10], eax
jmp 0x407724
mov eax, dword [ebp - 0x10]
movsx ecx, byte [eax]
cmp ecx, 0x20
je 0x407769
mov edx, dword [ebp - 0x10]
movsx eax, byte [edx]
cmp eax, 9
jne 0x407778
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [ebp - 0x10], eax
jmp 0x407753
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 0x4077b9
cmp dword [ebp - 0x24], 0
jne 0x40780f
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 [0x41b140], 0
je 0x4077f5
push 0x419bf4
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 0x4077f5
mov edx, dword [ebp + 8]
push edx
call dword [ebp - 0x18]
cmp dword [ebp - 0xc], 0
je 0x407805
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 0xf5
jmp 0x407b6c
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 0x4078c4
mov ecx, dword [ebp - 0xd0]
movzx edx, word [ecx + 2]
cmp edx, 0x40
jne 0x4078c4
mov eax, dword [ebp - 0xd0]
movzx ecx, word [eax + 4]
cmp ecx, 0x23
jne 0x4078c4
mov edx, dword [ebp - 0xd0]
push edx
push 0x4202a0
call fcn.0040fde1
add esp, 8
mov eax, dword [ebp - 0xd0]
add eax, 0x1e
mov dword [ebp - 0xd0], eax
push 0xa
push 0
push 0x4202a6
call fcn.0040fdb6
add esp, 0xc
mov dword [ebp - 0xcc], eax
mov ecx, dword [ebp - 0xcc]
mov dword [0x41b144], ecx
mov dword [0x41b148], 1
mov dword [0x41b2a4], 0
mov dword [0x41b19c], 0
push 0x4205c0
call fcn.0040c700
mov dword [ebp - 0xd8], eax
cmp dword [ebp - 0xd8], 0
je 0x4078f2
mov edx, dword [ebp - 0xd8]
push edx
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [ebp - 0xd4], eax
jmp 0x4078fc
mov dword [ebp - 0xd4], 0x4205c0
mov eax, dword [ebp - 0xd4]
push eax
push 0x41be80
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x4205c0
push 0x41bd60
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [ebp - 0x1c], 0x41bfc0
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 0x407993
mov dword [ebp - 4], 0
jmp 0x40794c
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0x1fff
jge 0x40798b
mov eax, dword [ebp - 0xd0]
movzx ecx, word [eax]
test ecx, ecx
je 0x40798b
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 0x407943
xor ecx, ecx
mov edx, dword [ebp - 0x1c]
mov word [edx], cx
cmp dword [0x41b180], 0
je 0x407a98
mov eax, dword [ebp + 0x10]
movsx ecx, byte [eax]
test ecx, ecx
je 0x407a98
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 0x407a98
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 0x407a39
cmp dword [ebp - 4], 0x1fff
jge 0x407a39
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 0x407a44
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x1fff
jge 0x407a83
mov ecx, dword [ebp - 0xe0]
movzx edx, word [ecx]
test edx, edx
je 0x407a83
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 0x407a3b
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 0x407ab2
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 0x407add
mov ecx, dword [ebp + 8]
push ecx
call fcn.00407b80
test eax, eax
jne 0x407add
mov dword [0x41b2a8], 0xfb
mov dword [ebp - 0x14], 0
cmp dword [ebp - 0x14], 0
je 0x407b24
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00407c20
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
jne 0x407b02
mov dword [ebp - 0x14], 0
jmp 0x407b24
cmp dword [0x41b14c], 0
je 0x407b24
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040c760
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
jne 0x407b24
mov dword [ebp - 0x14], 0
cmp dword [0x41b140], 0
je 0x407b4c
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 0x407b4c
mov eax, dword [ebp + 8]
push eax
call dword [ebp - 0x18]
cmp dword [ebp - 0xc], 0
je 0x407b5c
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x14], 0
jne 0x407b69
mov eax, dword [0x41b2a8]
jmp 0x407b6c
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
xor ecx, ebp
call fcn.0040f735
mov esp, ebp
pop ebp
ret 0x10