Function at 0x4036b0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x2f8
mov eax, dword [0x42a040]
xor eax, esp
mov dword [esp + 0x2f4], eax
push esi
push edi
mov edi, dword [ebp + 0x10]
push 2
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push 0x208
xor esi, esi
lea eax, [esp + 0xf4]
push esi
push eax
call fcn.0040fb70
add esp, 0xc
lea eax, [esp + 0xf0]
push eax
call fcn.0040ad40
add esp, 4
lea eax, [esp + 0xf0]
lea ecx, [esp + 0xd8]
push eax
call fcn.00404360
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x4037fc
lea eax, [esp + 0xc]
mov dword [esp + 0xc], esi
push eax
push edi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ecx, dword [esp + 0xc]
mov edi, eax
lea eax, [ecx - 1]
cmp eax, 1
ja 0x40375e
push 0x422a6c
push dword [edi]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov ecx, dword [esp + 0xc]
neg eax
sbb esi, esi
inc esi
cmp ecx, 2
jne 0x4037f5
push dword [edi + 4]
lea eax, [esp + 0xf4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [esp + 0xf0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
dec eax
add eax, eax
movzx ecx, word [esp + eax + 0xf0]
cmp ecx, 0x5c
je 0x40379b
cmp ecx, 0x2f
jne 0x4037b0
cmp eax, 0x208
jae 0x404263
xor ecx, ecx
mov word [esp + eax + 0xf0], cx
lea ecx, [esp + 0xf0]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4037c0
sub ecx, edx
lea eax, [esp + 0xf0]
sar ecx, 1
push ecx
push eax
lea ecx, [esp + 0xe0]
call fcn.00404640
push 0x422a74
lea ecx, [esp + 0xdc]
call fcn.00404790
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xorps xmm0, xmm0
test esi, esi
je 0x403e01
xor eax, eax
mov dword [esp + 0x80], 0
movups xmmword [esp + 0xa0], xmm0
mov dword [esp + 0x84], eax
movups xmmword [esp + 0xb8], xmm0
mov dword [esp + 0xb0], eax
mov word [esp + 0xa0], ax
mov dword [esp + 0xc8], eax
mov word [esp + 0xb8], ax
mov dword [esp + 0xd0], eax
lea eax, [esp + 0x80]
push eax
push 0x422680
movq qword [esp + 0x90], xmm0
movups xmmword [esp + 0x98], xmm0
mov dword [esp + 0xbc], 7
mov dword [esp + 0xd4], 7
call fcn.0040b090
lea eax, [esp + 0x98]
push eax
push 0x4226d0
call fcn.0040b090
mov edi, dword [esp + 0xf8]
lea edx, [esp + 0xe8]
mov ecx, dword [esp + 0xc4]
add esp, 0x10
cmp dword [esp + 0xec], 7
mov dword [esp + 0xc], edi
cmova edx, dword [esp + 0xd8]
mov dword [esp + 0x14], edx
mov dword [esp + 8], ecx
cmp edi, ecx
ja 0x40390c
lea eax, [edi + edi]
mov dword [esp + 0xb0], edi
cmp ecx, 7
lea esi, [esp + 0xa0]
push eax
cmova esi, dword [esp + 0xa4]
push edx
push esi
call fcn.0040fcd0
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
mov edi, dword [esp + 0xa0]
jmp 0x403a18
cmp edi, 0x7ffffffe
ja 0x404272
mov esi, edi
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x403933
mov eax, 0x7fffffff
mov esi, 0x7ffffffe
add eax, eax
jmp 0x40396f
mov edx, ecx
mov eax, 0x7ffffffe
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x403950
mov eax, 0x7fffffff
mov esi, 0x7ffffffe
add eax, eax
jmp 0x40396f
lea eax, [ecx + edx]
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
cmp eax, 0x7fffffff
ja 0x40426d
add eax, eax
cmp eax, 0x1000
jb 0x403996
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x40426d
push ecx
call fcn.0040ea5d
add esp, 4
test eax, eax
je 0x404268
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x4039a9
test eax, eax
je 0x4039a7
push eax
call fcn.0040ea5d
add esp, 4
mov edi, eax
jmp 0x4039a9
xor edi, edi
mov eax, dword [esp + 0xc]
mov dword [esp + 0xb4], esi
mov dword [esp + 0xb0], eax
lea esi, [eax + eax]
push esi
push dword [esp + 0x18]
push edi
call fcn.0040fcd0
mov ecx, dword [esp + 0x14]
xor eax, eax
add esp, 0xc
mov word [esi + edi], ax
cmp ecx, 7
jbe 0x403a11
mov edx, dword [esp + 0xa0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403a07
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404268
push ecx
push edx
call fcn.0040ecde
add esp, 8
mov dword [esp + 0xa0], edi
cmp dword [esp + 0xb4], 7
lea ecx, [esp + 0xa0]
mov eax, dword [esp + 0xcc]
cmova ecx, edi
mov dword [esp + 0xc], eax
mov edi, dword [esp + 0xb0]
mov dword [esp + 0x14], ecx
mov dword [esp + 8], edi
cmp edi, eax
ja 0x403a81
cmp eax, 7
mov dword [esp + 0xc8], edi
lea eax, [edi + edi]
push eax
lea esi, [esp + 0xbc]
cmova esi, dword [esp + 0xbc]
push ecx
push esi
call fcn.0040fcd0
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
mov edi, dword [esp + 0xb8]
jmp 0x403b8c
cmp edi, 0x7ffffffe
ja 0x404272
mov esi, edi
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x403aa8
mov eax, 0x7fffffff
mov esi, 0x7ffffffe
add eax, eax
jmp 0x403ae3
mov ecx, eax
mov edx, 0x7ffffffe
shr ecx, 1
sub edx, ecx
cmp eax, edx
jbe 0x403ac5
mov eax, 0x7fffffff
mov esi, 0x7ffffffe
add eax, eax
jmp 0x403ae3
add eax, ecx
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
cmp eax, 0x7fffffff
ja 0x40426d
add eax, eax
cmp eax, 0x1000
jb 0x403b0a
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x40426d
push ecx
call fcn.0040ea5d
add esp, 4
test eax, eax
je 0x404268
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x403b1d
test eax, eax
je 0x403b1b
push eax
call fcn.0040ea5d
add esp, 4
mov edi, eax
jmp 0x403b1d
xor edi, edi
mov eax, dword [esp + 8]
mov dword [esp + 0xcc], esi
mov dword [esp + 0xc8], eax
lea esi, [eax + eax]
push esi
push dword [esp + 0x18]
push edi
call fcn.0040fcd0
xor eax, eax
add esp, 0xc
mov word [esi + edi], ax
mov eax, dword [esp + 0xc]
cmp eax, 7
jbe 0x403b85
mov edx, dword [esp + 0xb8]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403b7b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404268
push ecx
push edx
call fcn.0040ecde
add esp, 8
mov dword [esp + 0xb8], edi
mov edx, dword [esp + 0xcc]
mov eax, edx
mov ecx, dword [esp + 0xc8]
sub eax, ecx
cmp eax, 1
jb 0x403bc3
lea eax, [ecx + 1]
cmp edx, 7
mov dword [esp + 0xc8], eax
lea eax, [esp + 0xb8]
cmova eax, edi
mov dword [eax + ecx*2], 0x5c
jmp 0x403be1
push 1
push 0x422158
mov byte [esp + 0x10], 0
lea ecx, [esp + 0xc0]
push dword [esp + 0x10]
push 1
call fcn.00404b50
mov ecx, dword [esp + 0xcc]
mov eax, ecx
mov edi, dword [esp + 0xc8]
sub eax, edi
cmp eax, 8
jb 0x403c30
cmp ecx, 7
lea esi, [esp + 0xb8]
lea eax, [edi + 8]
cmova esi, dword [esp + 0xb8]
push 0x10
mov dword [esp + 0xcc], eax
push 0x4221ac
lea eax, [esi + edi*2]
push eax
call fcn.0040fcd0
add esp, 0xc
xor eax, eax
mov word [esi + edi*2 + 0x10], ax
jmp 0x403c4e
push 8
push 0x4221ac
mov byte [esp + 0x10], 0
lea ecx, [esp + 0xc0]
push dword [esp + 0x10]
push 8
call fcn.00404b50
push 0
lea ecx, [esp + 0x17]
mov dword [esp + 0xd4], 0
call fcn.004053b0
push 0x190
call dword [sym.imp.KERNEL32.dll_Sleep]
movups xmm0, xmmword [esp + 0x80]
push 0
sub esp, 0x54
lea eax, [esp + 0xf8]
mov esi, esp
movups xmmword [esi], xmm0
movups xmm0, xmmword [esp + 0xe8]
movups xmmword [esi + 0x10], xmm0
xorps xmm0, xmm0
movups xmmword [esi + 0x20], xmm0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
cmp dword [esp + 0x10c], 7
mov edi, dword [esp + 0x108]
cmova eax, dword [esp + 0xf8]
mov dword [esp + 0x60], eax
cmp edi, 0x7ffffffe
ja 0x404272
mov dword [esi + 0x34], 7
mov ecx, 0xa
cmp edi, 7
ja 0x403ced
mov dword [esi + 0x30], edi
movups xmm0, xmmword [eax]
movups xmmword [esi + 0x20], xmm0
jmp 0x403d3a
mov eax, edi
or eax, 7
cmp eax, 0x7ffffffe
jbe 0x403d00
mov eax, 0x7ffffffe
jmp 0x403d06
cmp eax, 0xa
cmovb eax, ecx
lea edx, [esp + 0x64]
mov dword [esp + 0x64], eax
call fcn.00404d30
mov ecx, dword [esp + 0x64]
mov dword [esi + 0x34], ecx
lea ecx, [edi*2 + 2]
push ecx
push dword [esp + 0x64]
mov dword [esi + 0x20], eax
push eax
mov dword [esi + 0x30], edi
call fcn.0040fcd0
add esp, 0xc
mov ecx, 0xa
xorps xmm0, xmm0
lea eax, [esp + 0x110]
movups xmmword [esi + 0x38], xmm0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
cmp dword [esp + 0x124], 7
mov edi, dword [esp + 0x120]
cmova eax, dword [esp + 0x110]
mov dword [esp + 0x60], eax
cmp edi, 0x7ffffffe
ja 0x404272
mov dword [esi + 0x4c], 7
cmp edi, 7
ja 0x403d95
mov dword [esi + 0x48], edi
movups xmm0, xmmword [eax]
movups xmmword [esi + 0x38], xmm0
jmp 0x403ddd
mov eax, edi
or eax, 7
cmp eax, 0x7ffffffe
jbe 0x403da8
mov eax, 0x7ffffffe
jmp 0x403dae
cmp eax, 0xa
cmovb eax, ecx
lea edx, [esp + 0x64]
mov dword [esp + 0x64], eax
call fcn.00404d30
mov ecx, dword [esp + 0x64]
mov dword [esi + 0x4c], ecx
lea ecx, [edi*2 + 2]
push ecx
push dword [esp + 0x64]
mov dword [esi + 0x38], eax
push eax
mov dword [esi + 0x48], edi
call fcn.0040fcd0
add esp, 0xc
mov eax, dword [esp + 0x128]
lea ecx, [esp + 0x6b]
mov dword [esi + 0x50], eax
call fcn.00404f60
lea ecx, [esp + 0x80]
call fcn.00402ab0
jmp 0x404204
mov eax, dword [ebp + 8]
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x18], vtable.CInstallDialog.0
mov dword [0x42b74c], eax
mov dword [esp + 0x48], 0
movups xmmword [esp + 0x50], xmm0
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp dword [esp + 0x3c], 0
mov esi, eax
mov dword [esp + 0xc], esi
jne 0x404141
mov esi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
xor eax, eax
push 0x400
push 0x42
mov dword [esp + 0x1c], 9
mov dword [esp + 0x68], 0x82800840
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], 0x1090000
mov dword [esp + 0x4c], 0x400
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
mov dword [esp + 0x3c], eax
call edi
mov ecx, eax
mov dword [esp + 0x3c], eax
sub ecx, eax
mov dword [esp + 0x40], eax
add ecx, dword [esp + 0x44]
test eax, eax
jne 0x403eeb
call fcn.00411b97
mov dword [eax], 0x16
jmp 0x404294
cmp ecx, 0x12
jb 0x40427d
movups xmm0, xmmword [esp + 0x60]
mov ecx, 0xb5
movups xmmword [eax], xmm0
mov word [eax + 0x10], cx
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
add edx, 0x12
mov dword [esp + 0x40], edx
test ecx, ecx
jne 0x403f3a
push 0x400
push 0x42
mov dword [esp + 0x4c], 0x400
call esi
push eax
mov dword [esp + 0x3c], eax
call edi
mov edx, eax
mov dword [esp + 0x3c], edx
mov ecx, edx
jmp 0x403f81
mov esi, dword [esp + 0x44]
mov eax, edx
sub eax, ecx
mov dword [esp + 8], eax
add eax, 2
cmp eax, esi
jbe 0x403f89
add esi, 0x400
push ecx
mov dword [esp + 0x48], esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0x42
push dword [esp + 0x48]
push dword [esp + 0x40]
call dword [sym.imp.KERNEL32.dll_GlobalReAlloc]
push eax
mov dword [esp + 0x3c], eax
call edi
mov edx, dword [esp + 8]
mov ecx, eax
mov dword [esp + 0x3c], ecx
add edx, ecx
mov esi, dword [esp + 0x44]
mov dword [esp + 0x40], edx
sub ecx, edx
add ecx, esi
test edx, edx
jne 0x403fa1
call fcn.00411b97
mov dword [eax], 0x16
jmp 0x404294
cmp ecx, 2
jb 0x404277
xor eax, eax
mov word [edx], ax
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
add edx, 2
mov dword [esp + 0x40], edx
test ecx, ecx
jne 0x403fe8
push 0x400
push 0x42
mov dword [esp + 0x4c], 0x400
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [esp + 0x3c], eax
call edi
mov edx, eax
mov dword [esp + 0x3c], edx
mov ecx, edx
jmp 0x40402f
mov esi, dword [esp + 0x44]
mov eax, edx
sub eax, ecx
mov dword [esp + 8], eax
add eax, 2
cmp eax, esi
jbe 0x404037
add esi, 0x400
push ecx
mov dword [esp + 0x48], esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0x42
push dword [esp + 0x48]
push dword [esp + 0x40]
call dword [sym.imp.KERNEL32.dll_GlobalReAlloc]
push eax
mov dword [esp + 0x3c], eax
call edi
mov edx, dword [esp + 8]
mov ecx, eax
mov dword [esp + 0x3c], ecx
add edx, ecx
mov esi, dword [esp + 0x44]
mov dword [esp + 0x40], edx
sub ecx, edx
add ecx, esi
test edx, edx
jne 0x40404f
call fcn.00411b97
mov dword [eax], 0x16
jmp 0x404294
cmp ecx, 2
jb 0x404277
xor eax, eax
mov word [edx], ax
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
add edx, 2
mov dword [esp + 0x40], edx
test ecx, ecx
jne 0x404096
push 0x400
push 0x42
mov dword [esp + 0x4c], 0x400
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [esp + 0x3c], eax
call edi
mov edx, eax
mov dword [esp + 0x3c], edx
mov ecx, edx
jmp 0x4040dd
mov esi, dword [esp + 0x44]
mov eax, edx
sub eax, ecx
mov dword [esp + 8], eax
add eax, 2
cmp eax, esi
jbe 0x4040e5
add esi, 0x400
push ecx
mov dword [esp + 0x48], esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0x42
push dword [esp + 0x48]
push dword [esp + 0x40]
call dword [sym.imp.KERNEL32.dll_GlobalReAlloc]
push eax
mov dword [esp + 0x3c], eax
call edi
mov edx, dword [esp + 8]
mov ecx, eax
mov dword [esp + 0x3c], ecx
add edx, ecx
mov esi, dword [esp + 0x44]
mov dword [esp + 0x40], edx
sub ecx, edx
add ecx, esi
test edx, edx
jne 0x4040fd
call fcn.00411b97
mov dword [eax], 0x16
jmp 0x404294
cmp ecx, 2
jb 0x404277
xor eax, eax
lea ecx, [esp + 0x38]
mov word [edx], ax
lea eax, [esp + 0x14]
add dword [esp + 0x40], 2
push 2
push eax
call fcn.00404500
push 0x4221a0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [esp + 0x38]
add eax, eax
push eax
push 0x4221a0
call fcn.00404500
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x404160
call fcn.0040e653
mov dword [esp + 0x2c], eax
test eax, eax
jne 0x404160
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x4041bd
push 0
push 0
push eax
call fcn.0040e755
lea eax, [esp + 0x18]
lea edi, [esp + 0x20]
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x42a904
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x42a91c]
push 0x42a904
mov dword [esp + 0x2c], eax
mov dword [0x42a91c], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
push 0x404870
push esi
push dword [esp + 0x48]
push dword [0x42abd8]
call dword [sym.imp.USER32.dll_DialogBoxIndirectParamW]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4041d6
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [esp + 0x38]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
test eax, eax
je 0x404204
push eax
call fcn.0040e6ff
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [esp + 0xec]
cmp ecx, 7
jbe 0x404248
mov edx, dword [esp + 0xd8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40423e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4042a3
push ecx
push edx
call fcn.0040ecde
add esp, 8
mov ecx, dword [esp + 0x2fc]
mov eax, 1
pop edi
pop esi
xor ecx, esp
call fcn.0040e852
mov esp, ebp
pop ebp
ret 0x10
call fcn.0040e982
call fcn.00411acc
call fcn.004013c0
call fcn.00401490
push ecx
push 0
push edx
jmp 0x404281
push ecx
push 0
push eax
call fcn.0040fb70
add esp, 0xc
call fcn.00411b97
mov dword [eax], 0x22
call fcn.00411abc
push 0x80070057
call fcn.004014b0
call fcn.00411acc
int3