Function at 0x40b4d2
Capabilities:
Accept command line arguments
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
call fcn.004031f4
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
xor ebx, ebx
mov dword [0x4ad030], eax
mov byte [ebp - 1], bl
call dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004403c3
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
call fcn.00430961
push dword [ebp + 0x14]
push dword [ebp + 8]
call fcn.004196c1
mov eax, dword [ebp + 0x10]
push 5
mov dword [ebp - 0x14], eax
lea eax, [ebp + 0x10]
push ebx
push eax
call fcn.00416853
add esp, 0x18
cmp eax, ebx
mov dword [ebp + 0x10], eax
je 0x40b71d
mov esi, 0x4acbec
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.00430961
mov edi, dword [ebp - 8]
cmp word [edi], 0x22
pop ecx
jne 0x40b557
add edi, 2
push 4
push edi
push 0x4958bc
call fcn.004318b1
add esp, 0xc
test al, al
je 0x40b5e1
mov ax, word [edi + 8]
call fcn.0040bc38
test al, al
je 0x40b5e1
push 0x6592
mov ecx, esi
call fcn.00435da9
mov eax, dword [0x4acbec]
push 0x6590
mov word [eax], bx
push dword [0x4acbec]
push 0x2713
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_LoadStringW]
push dword [0x4acbec]
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
inc eax
inc eax
push eax
mov ecx, esi
call fcn.00435da9
push edi
lea ecx, [ebp - 0xc]
call fcn.004403c3
mov eax, dword [ebp - 0xc]
call fcn.00404a3a
lea ecx, [ebp - 0xc]
call fcn.0043092f
mov ecx, esi
mov byte [0x4b0003], bl
call fcn.0043092f
push 4
push dword [ebp - 8]
push str.MAIN
call fcn.004318b1
add esp, 0xc
test al, al
je 0x40b654
mov ecx, dword [ebp - 8]
add ecx, 8
xor edx, edx
mov dx, word [ecx]
mov eax, edx
call fcn.0040bc38
test al, al
jne 0x40b613
cmp dx, 0x2a
jne 0x40b654
mov ax, word [ecx]
call fcn.0040bc38
mov byte [ebp - 2], al
lea eax, [ebp - 0x10]
push eax
mov byte [0x4acb8a], bl
mov dword [ebp - 0x10], ecx
call fcn.00430961
cmp byte [ebp - 2], bl
pop ecx
je 0x40b722
push 3
push dword [ebp - 0x10]
push 0x4958b0
call fcn.00431867
add esp, 0xc
test al, al
je 0x40b722
cmp byte [ebp - 1], 2
jge 0x40b691
push 0x4acb74
mov eax, 0x10000
push eax
push 0x4acc04
push 0x402ff2
push eax
push ebx
mov byte [0x4acc04], 0x11
call dword [sym.imp.KERNEL32.DLL_CreateThread]
cmp eax, ebx
je 0x40b68b
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x40b691
mov byte [0x4acc04], bl
mov al, byte [0x4acf14]
push dword [ebp - 0x14]
mov byte [0x4acb88], al
call fcn.00403169
pop ecx
push ebx
mov ecx, 0x4acf10
call fcn.004282f1
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0x4958ae
mov ecx, 0x4acf50
call fcn.00435e1f
mov eax, dword [0x4acbc4]
cmp eax, ebx
mov dword [0x4acf48], ebx
mov dword [0x4acf4c], ebx
mov byte [0x4b0003], bl
mov byte [0x4acc05], 0x20
je 0x40b746
push dword [ebp + 0x14]
mov byte [0x4ab290], 1
push dword [ebp + 8]
mov dword [ebp + 0x10], eax
mov byte [ebp - 1], 2
call fcn.004196c1
mov eax, dword [ebp + 0x10]
push 5
mov dword [ebp - 0x14], eax
lea eax, [ebp + 0x10]
push ebx
push eax
call fcn.00416853
add esp, 0x14
cmp eax, ebx
mov dword [ebp + 0x10], eax
jne 0x40b53e
or esi, 0xffffffff
jmp 0x40b766
mov eax, dword [ebp - 8]
add eax, 8
push eax
lea ecx, [ebp - 0x18]
call fcn.004403c3
push dword [ebp - 0x18]
mov ecx, 0x4acf10
call fcn.004255f2
lea ecx, [ebp - 0x18]
call fcn.0043092f
cmp byte [0x4acd56], bl
je 0x40b753
call fcn.0040ddec
mov ecx, 0x4acf10
call fcn.00430e85
mov esi, eax
push esi
call fcn.00430a30
pop ecx
lea ecx, [ebp - 0x1c]
call fcn.0043092f
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x10