Function at 0x404170
Capabilities:
Accept command line arguments
Load windows common language runtime

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41f265
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x98
push esi
push edi
mov eax, dword [0x429040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00403950
test al, al
jne 0x40476f
call fcn.004036f0
test al, al
jne 0x40476f
push 2
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov esi, dword [sym.imp.mscoree.dll_CLRCreateInstance]
lea eax, [ebp - 0x44]
push eax
push 0x42689c
push 0x4268ac
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x50], 0
call esi
lea eax, [ebp - 0x4c]
push eax
push 0x42687c
push 0x42686c
call esi
lea eax, [ebp - 0x50]
push eax
push 0x42684c
push 0x4268cc
call esi
mov eax, dword [ebp - 0x44]
lea edx, [ebp - 0x34]
push edx
push 0x4268bc
mov dword [ebp - 0x34], 0
mov ecx, dword [eax]
push str.v4.0.30319
push eax
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x70]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x28]
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x38]
push edx
push 0x42685c
mov dword [ebp - 0x38], 0
mov ecx, dword [eax]
push 0x42688c
push eax
call dword [ecx + 0x24]
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x28]
mov dword [ebp - 4], 0
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x40], 0
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov dword [ebp - 0x2c], 0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x404785
mov byte [ebp - 4], 2
lea edx, [ebp - 0x2c]
push edx
mov dword [ebp - 0x2c], 0
mov ecx, dword [eax]
push 0x426dbc
push eax
call dword [ecx]
mov dword [ebp - 0x20], 0
mov byte [ebp - 4], 4
mov eax, dword [0x42a724]
sub eax, dword [0x42a720]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x64]
push eax
push 1
push 0x11
mov dword [ebp - 0x60], 0
call dword [sym.imp.OLEAUT32.dll_SafeArrayDestroy]
mov edi, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x5c], edi
call fcn.00403950
test al, al
jne 0x404739
call fcn.004036f0
test al, al
jne 0x404739
lea eax, [ebp - 0x48]
push eax
push edi
call dword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
mov ecx, dword [0x42a720]
mov eax, dword [0x42a724]
sub eax, ecx
push eax
push ecx
push dword [ebp - 0x48]
call fcn.00409350
add esp, 0xc
push edi
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
mov esi, dword [ebp - 0x2c]
test esi, esi
je 0x404785
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x404355
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x20]
push ecx
mov dword [ebp - 0x20], 0
mov eax, dword [esi]
push edi
push esi
call dword [eax + 0xb4]
mov dword [ebp - 0x1c], 0
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x404785
mov byte [ebp - 4], 9
lea edx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x404785
mov ecx, dword [eax]
lea edx, [ebp - 0x54]
push edx
push eax
call dword [ecx + 0x48]
mov eax, dword [ebp - 0x54]
cmp dword [eax + 0x10], 0
je 0x404450
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
push dword [ebp - 0x3c]
mov edi, eax
push 0
push 8
call dword [sym.imp.OLEAUT32.dll_SafeArrayCopyData]
xor esi, esi
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x3c], esi
jle 0x404412
add edi, 4
nop dword [eax + eax]
push dword [edi]
mov dword [ebp - 0x30], esi
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.OLEAUT32.dll_SafeArrayCopy]
inc esi
lea edi, [edi + 4]
cmp esi, dword [ebp - 0x3c]
jl 0x4043f0
push 1
push 0
push 0xc
call dword [sym.imp.OLEAUT32.dll_SafeArrayCopyData]
mov esi, eax
mov dword [ebp - 0x58], 0
mov eax, 0x2008
mov dword [ebp - 0x30], esi
mov word [ebp - 0x88], ax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x58]
push eax
push esi
call dword [sym.imp.OLEAUT32.dll_SafeArrayCopy]
jmp 0x40446f
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x6c], 0
push eax
push 1
push 0xc
mov dword [ebp - 0x68], 0
call dword [sym.imp.OLEAUT32.dll_SafeArrayDestroy]
mov dword [ebp - 0x30], eax
xorps xmm0, xmm0
mov eax, 1
movups xmmword [ebp - 0x98], xmm0
mov ecx, 0x4315072e
mov word [ebp - 0x98], ax
movups xmmword [ebp - 0xa8], xmm0
call fcn.00405e40
mov esi, edx
mov ecx, 0xf076ae24
mov edi, eax
mov dword [ebp - 0x28], esi
call fcn.00405e40
push esi
push edi
mov ecx, 0x7deb3c2b
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x24], edx
call fcn.00405db0
push esi
push edi
mov ecx, 0x9e6c4c
mov dword [ebp - 0x18], eax
call fcn.00405db0
mov eax, dword [ebp - 0x14]
add esp, 0x10
mov edx, dword [ebp - 0x24]
mov ecx, eax
or ecx, edx
je 0x40453c
push edx
push eax
mov ecx, 0xcc03ee21
call fcn.00405db0
push esi
push edi
mov ecx, 0x3fba5504
mov dword [ebp - 0x14], eax
call fcn.00405db0
push dword [ebp - 0x28]
mov ecx, 0xc43c8f09
mov esi, eax
push edi
call fcn.00405db0
add esp, 0x18
mov edi, eax
lea eax, [ebp - 0x24]
push eax
push 4
push 8
push dword [ebp - 0x14]
call dword [ebp - 0x18]
push eax
call edi
push 0
push 8
push 0x42994c
push dword [ebp - 0x14]
call dword [ebp - 0x18]
push eax
call esi
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x24]
push 8
push dword [ebp - 0x14]
call dword [ebp - 0x18]
push eax
call edi
push 1
call fcn.0040feca
add esp, 4
push eax
call fcn.0041025e
add esp, 4
mov ecx, 0x426d90
call fcn.00405820
mov ecx, str.mscore
call fcn.00405820
mov ecx, 0x4315072e
call fcn.00405e40
mov esi, edx
mov dword [ebp - 0x28], eax
push esi
push eax
mov ecx, 0x9e6c4c
call fcn.00405db0
push esi
push dword [ebp - 0x28]
mov ecx, 0xf5c7cdfe
mov edi, eax
call fcn.00405db0
add esp, 0x10
mov esi, eax
call edi
push eax
push 0
push 0x410
call esi
mov esi, eax
push 1
mov dword [ebp - 0x24], esi
call fcn.0040feca
add esp, 4
push eax
call fcn.0041025e
add esp, 4
push 1
call fcn.0040feca
add esp, 4
push eax
call fcn.0041025e
add esp, 4
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.00405ac0
add esp, 4
mov dword [ebp - 0x14], eax
push 1
call fcn.0040feca
add esp, 4
push eax
call fcn.0041025e
mov edi, dword [ebp - 0x28]
add esp, 4
cmp edi, 5
je 0x40468e
cmp edi, 6
je 0x40468e
cmp edi, 9
je 0x404646
cmp edi, 0xa
je 0x404646
cmp edi, 0xb
je 0x404646
cmp edi, 0xc
je 0x404646
xor esi, esi
test edi, edi
je 0x4046b7
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + esi*4]
call fcn.004059e0
push 1
call fcn.0040feca
add esp, 4
push eax
call fcn.0041025e
inc esi
add esp, 4
cmp esi, edi
jb 0x404621
jmp 0x4046b7
mov edi, dword [ebp - 0x14]
xor esi, esi
nop dword [eax + eax]
mov ecx, dword [edi + esi*4]
call fcn.004059e0
push 1
call fcn.0040feca
add esp, 4
push eax
call fcn.0041025e
inc esi
add esp, 4
cmp esi, 5
jb 0x404650
mov ecx, dword [edi + 0x1c]
call fcn.004059e0
push 1
call fcn.0040feca
add esp, 4
push eax
call fcn.0041025e
add esp, 4
jmp 0x4046b7
xor esi, esi
test edi, edi
je 0x4046b7
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + esi*4]
call fcn.004059e0
push 1
call fcn.0040feca
add esp, 4
push eax
call fcn.0041025e
inc esi
add esp, 4
cmp esi, edi
jb 0x404694
push dword [ebp - 0x14]
call fcn.00412385
add esp, 4
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00403950
test al, al
jne 0x404728
call fcn.004036f0
test al, al
jne 0x404728
mov ecx, dword [0x42a720]
mov eax, dword [0x42a724]
sub eax, ecx
push eax
push 0
push ecx
call fcn.00409100
add esp, 0xc
push dword [ebp - 0x5c]
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetDim]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x404785
movups xmm0, xmmword [ebp - 0x98]
mov edx, dword [eax]
lea ecx, [ebp - 0xa8]
push ecx
push dword [ebp - 0x30]
sub esp, 0x10
mov ecx, esp
push eax
movups xmmword [ecx], xmm0
call dword [edx + 0x94]
mov byte [ebp - 4], 0xf
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x404739
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0x10
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x40474a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0x11
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x40475b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], 0x12
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x40476f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0x80004003
call fcn.00408340
int3