Function at 0x407670
Capabilities:
Accept command line arguments
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54c
mov eax, dword [0x47b310]
xor eax, esp
mov dword [esp + 0x548], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
push eax
mov dword [esp + 0x3c], eax
call fcn.0040e0aa
add esp, 4
mov dword [esp + 0x3c], 0
xor ebx, ebx
mov ecx, str.Norwii_Presenter
or edi, 0xffffffff
mov eax, 8
cmp ecx, str.SMART_POINTER
mov dword [esp + 0x18], edi
sete bl
cmp ecx, 0x473d80
lea ebx, [ebx*2 + 1]
cmove ebx, eax
lea eax, [esp + 0x3c]
push eax
push esi
mov dword [esp + 0x18], ebx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ecx, eax
xor eax, eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x14], eax
cmp dword [esp + 0x3c], eax
jle 0x407940
nop word [eax + eax]
mov edx, dword [ecx + eax*4]
xor eax, eax
mov word [esp + 0x40], ax
mov eax, edx
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 7
lea esi, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407720
sub eax, esi
lea ecx, [esp + 0x40]
sar eax, 1
push eax
push edx
call fcn.00401450
mov edi, dword [esp + 0x54]
lea eax, [esp + 0x40]
mov esi, dword [esp + 0x40]
cmp edi, 8
mov ebx, dword [esp + 0x50]
push 8
push str.WillLan_
push 0
cmovae eax, esi
push ebx
push eax
call fcn.004015c0
mov ecx, eax
add esp, 0x14
cmp ecx, 0xffffffff
je 0x407819
lea edx, [ecx + 8]
mov dword [esp + 0x2c], 0
xor eax, eax
mov dword [esp + 0x30], 7
mov word [esp + 0x1c], ax
cmp ebx, edx
jb 0x407aea
mov eax, ebx
sub ebx, edx
sub eax, ecx
lea ecx, [eax - 8]
cmp ebx, ecx
lea eax, [esp + 0x40]
cmovb ecx, ebx
cmp edi, 8
push ecx
cmovae eax, esi
lea ecx, [esp + 0x20]
lea eax, [eax + edx*2]
push eax
call fcn.00401450
cmp dword [esp + 0x30], 8
lea eax, [esp + 0x1c]
cmovae eax, dword [esp + 0x1c]
push eax
call fcn.0044d503
mov edx, dword [esp + 0x34]
add esp, 4
mov dword [esp + 0x18], eax
cmp edx, 8
jb 0x40780d
mov ecx, dword [esp + 0x1c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x407803
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407ae5
push edx
push ecx
call fcn.004478dd
add esp, 8
mov esi, dword [esp + 0x40]
mov ebx, dword [esp + 0x50]
mov edi, dword [esp + 0x54]
push 9
push str.WillType_
cmp edi, 8
lea eax, [esp + 0x48]
push 0
cmovae eax, esi
push ebx
push eax
call fcn.004015c0
mov ecx, eax
add esp, 0x14
cmp ecx, 0xffffffff
je 0x4078ec
lea edx, [ecx + 9]
mov dword [esp + 0x2c], 0
xor eax, eax
mov dword [esp + 0x30], 7
mov word [esp + 0x1c], ax
cmp ebx, edx
jb 0x407aea
mov eax, ebx
sub ebx, edx
sub eax, ecx
lea ecx, [eax - 9]
cmp ebx, ecx
lea eax, [esp + 0x40]
cmovb ecx, ebx
cmp edi, 8
push ecx
cmovae eax, esi
lea ecx, [esp + 0x20]
lea eax, [eax + edx*2]
push eax
call fcn.00401450
cmp dword [esp + 0x30], 8
lea eax, [esp + 0x1c]
cmovae eax, dword [esp + 0x1c]
push eax
call fcn.0044d503
mov edx, dword [esp + 0x34]
add esp, 4
mov ebx, eax
mov dword [esp + 0x10], ebx
cmp edx, 8
jb 0x4078e2
mov ecx, dword [esp + 0x1c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4078d8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407ae5
push edx
push ecx
call fcn.004478dd
add esp, 8
mov edi, dword [esp + 0x54]
mov esi, dword [esp + 0x40]
jmp 0x4078f0
mov ebx, dword [esp + 0x10]
cmp edi, 8
jb 0x407924
lea edi, [edi*2 + 2]
mov eax, esi
cmp edi, 0x1000
jb 0x40791a
mov esi, dword [esi - 4]
add edi, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407ae5
push edi
push esi
call fcn.004478dd
add esp, 8
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x3c]
jge 0x40793c
mov ecx, dword [esp + 0x34]
jmp 0x407700
mov edi, dword [esp + 0x18]
push 0x4f8
lea eax, [esp + 0x5c]
push 0
push eax
call fcn.00449450
add esp, 0xc
lea ecx, [esp + 0x58]
call fcn.00413aa0
push 0x53
lea ecx, [esp + 0x70]
mov dword [esp + 0x6c], vtable.DuiLib::CNotifyPump.0
call fcn.0041177c
lea ecx, [esp + 0x84]
mov dword [esp + 0x58], vtable.DuiLib::WindowImplBase.1.0
mov dword [esp + 0x68], vtable.DuiLib::WindowImplBase.2.0
mov dword [esp + 0x78], vtable.DuiLib::WindowImplBase.4.0
mov dword [esp + 0x7c], vtable.DuiLib::WindowImplBase.0
mov dword [esp + 0x80], vtable.DuiLib::WindowImplBase.3.0
call fcn.00408e76
mov dword [esp + 0x58], vtable.CMainFrame.0
mov dword [esp + 0x68], vtable.CMainFrame.4.0
mov dword [esp + 0x78], vtable.CMainFrame.1.0
mov dword [esp + 0x7c], vtable.CMainFrame.2.0
mov dword [esp + 0x80], vtable.CMainFrame.3.0
mov dword [esp + 0x514], 0
mov dword [esp + 0x51c], 0
mov dword [esp + 0x520], 0
call fcn.004073c0
push 0
push SysReAllocString
push SysReAllocString
push SysReAllocString
push SysReAllocString
push 0x100
push 0x96c80000
mov dword [esp + 0x538], eax
lea ecx, [esp + 0x74]
push str.Feature_Tour
lea eax, [edi + 1]
mov dword [esp + 0x544], 0
push 0
mov dword [esp + 0x554], eax
mov dword [esp + 0x558], ebx
mov dword [esp + 0x55c], 0x11
mov dword [esp + 0x53c], 0
mov dword [esp + 0x550], 0
mov dword [esp + 0x56c], 0
mov dword [esp + 0x570], 0
mov dword [esp + 0x560], 0
call fcn.00413c1a
push 0x6c
push dword [esp + 0x3c]
call dword [sym.imp.USER32.dll_LoadIconW]
push eax
push 1
push 0x170
lea ecx, [esp + 0x64]
call fcn.00411cc8
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [esp + 0x58]
call fcn.00413ab9
lea ecx, [esp + 0x58]
call fcn.00413fea
lea ecx, [esp + 0x58]
call fcn.00401ee0
mov ecx, dword [esp + 0x554]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004476a1
mov esp, ebp
pop ebp
ret 0x10
call fcn.0044c9d9
call fcn.004015b0
int3