Function at 0x40eb90
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x34
mov edi, ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [0x4b5040]
xor edx, ebp
mov dword [ebp - 0x10], edx
lea esi, [ebp - 0x1c]
push 3
push ecx
push eax
push esi
call fcn.00454ba0
add esp, 0x10
mov eax, dword [esi + 4]
test eax, eax
je 0x40ee28
mov esi, dword [ebp - 0x1c]
mov dword [edi], esi
mov dword [ebp - 0x24], edi
mov dword [edi + 4], eax
xor ebx, ebx
mov dword [ebp - 0x20], ebx
push 0x800
push ebx
push str.api_ms_win_downlevel_shell32_l1_1_0.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test eax, eax
mov dword [ebp - 0x3c], eax
je 0x40ee5f
push 0x4abb46
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40ec14
mov ecx, eax
call dword [0x4b1788]
lea eax, [ebp - 0x20]
push eax
push esi
call ecx
mov ebx, eax
mov eax, dword [ebp - 0x20]
test eax, eax
mov dword [ebp - 0x2c], ebx
je 0x40ecd0
cmp eax, 0x15555556
jae 0x40ee5c
shl eax, 2
mov dword [ebp - 0x30], eax
lea eax, [eax + eax*2]
push eax
call fcn.0045e423
add esp, 4
mov edi, eax
xor esi, esi
mov dword [ebp - 0x38], eax
jmp 0x40eca5
mov dword [ebp - 0x40], eax
mov ebx, eax
or ebx, 3
inc ebx
js 0x40ee59
lea eax, [ebx + ebx]
push eax
call fcn.0045e423
add esp, 4
mov edi, eax
mov eax, dword [ebp - 0x28]
mov dword [eax], edi
or ebx, 0x80000000
mov dword [eax + 8], ebx
mov ecx, dword [ebp - 0x40]
mov dword [eax + 4], ecx
mov eax, ecx
mov ebx, eax
add eax, eax
push eax
push dword [ebp - 0x34]
push edi
call fcn.00462360
mov eax, ebx
mov ebx, dword [ebp - 0x2c]
add esp, 0xc
mov word [edi + eax*2], 0
mov edi, dword [ebp - 0x28]
add edi, 0xc
add esi, 4
cmp dword [ebp - 0x30], esi
je 0x40ece0
mov eax, dword [ebx + esi]
mov dword [ebp - 0x34], eax
push eax
call fcn.0045fe10
add esp, 4
cmp eax, 0x7ffffff8
jae 0x40ee56
cmp eax, 5
mov dword [ebp - 0x28], edi
jae 0x40ec48
mov byte [edi + 0xb], al
test eax, eax
jne 0x40ec7b
jmp 0x40ec91
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x38], 0
jmp 0x40ece3
mov dword [ebp - 0x28], edi
push 0xc
call fcn.0045e423
add esp, 4
lea ecx, [eax + 0xc]
xorps xmm0, xmm0
movsd qword [eax], xmm0
mov dword [eax + 8], 0
mov ebx, dword [ebp - 0x24]
mov edi, dword [ebx + 0xc]
test edi, edi
je 0x40ed5f
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], eax
mov esi, dword [ebx + 0x10]
mov eax, edi
cmp esi, edi
jne 0x40ed2b
jmp 0x40ed4d
push dword [esi - 0xc]
call fcn.0045e41e
add esp, 4
add esi, 0xfffffff4
cmp esi, edi
je 0x40ed47
cmp byte [esi - 1], 0
jns 0x40ed24
jmp 0x40ed19
xorps xmm0, xmm0
movsd qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], 0
mov edi, dword [ebp - 0x2c]
jmp 0x40edbb
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebx + 0xc]
mov dword [ebx + 0x10], edi
push eax
call fcn.0045e41e
add esp, 4
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x30]
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], ecx
mov dword [ebx + 0x14], ecx
lea ecx, [ebx + 0x18]
mov eax, dword [ebp - 0x24]
lea esi, [eax + 0x1c]
mov eax, dword [ebp - 0x24]
push dword [eax + 0x1c]
call fcn.0040e410
xor eax, eax
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x20], eax
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x18], esi
mov esi, dword [ebp - 0x24]
mov dword [esi + 0x1c], eax
mov dword [esi + 0x24], 1
mov ebx, dword [ebp - 0x38]
cmp ebx, dword [ebp - 0x28]
je 0x40ed33
movzx eax, byte [ebx + 0xb]
mov edx, ebx
test al, al
mov edi, dword [ebp - 0x2c]
jns 0x40edb1
mov edx, dword [ebx]
mov eax, dword [ebx + 4]
lea ecx, [ebp - 0x1c]
push eax
push edx
call fcn.00454ad0
mov ecx, esi
lea eax, [ebp - 0x1c]
push eax
call fcn.0040ee70
cmp byte [ebp - 0x11], 0
jns 0x40edd7
push dword [ebp - 0x1c]
call fcn.0045e41e
add esp, 4
mov eax, dword [ebp - 0x28]
cmp ebx, eax
je 0x40edf8
sub eax, ebx
sar eax, 2
imul eax, eax, 0xaaaaaaab
dec eax
lea edx, [ebx + 0xc]
mov ecx, esi
push eax
call fcn.0040ef60
add esp, 4
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x40ee14
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
mov esi, dword [ebp - 0x28]
je 0x40ee28
cmp ebx, esi
jne 0x40ee4e
push ebx
call fcn.0045e41e
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00461246
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret 8
push dword [esi - 0xc]
call fcn.0045e41e
add esp, 4
add esi, 0xfffffff4
cmp esi, ebx
je 0x40ee1f
cmp byte [esi - 1], 0
jns 0x40ee47
jmp 0x40ee3c
int3
int3
int3
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
jmp 0x40ec12