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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
call fcn.004030f3
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor ebx, ebx
mov dword [0x4a6028], eax
mov byte [ebp - 1], bl
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0043ccfc
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
call fcn.0042dd40
push dword [ebp + 0x14]
push dword [ebp + 8]
call fcn.0040eb99
mov eax, dword [ebp + 0x10]
push 5
mov dword [ebp - 0x14], eax
lea eax, [ebp + 0x10]
push ebx
push eax
call fcn.00414db6
add esp, 0x18
cmp eax, ebx
mov dword [ebp + 0x10], eax
je 0x40aea9
mov esi, 0x4a5be8
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.0042dd40
mov edi, dword [ebp - 8]
cmp word [edi], 0x22
pop ecx
jne 0x40ace3
add edi, 2
push 4
push edi
push 0x48f6cc
call fcn.0042ecb0
add esp, 0xc
test al, al
je 0x40ad6d
mov ax, word [edi + 8]
call fcn.00402b57
test al, al
je 0x40ad6d
push 0x6592
mov ecx, esi
call fcn.00432cfe
mov eax, dword [0x4a5be8]
push 0x6590
mov word [eax], bx
push dword [0x4a5be8]
push 0x2713
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_LoadStringW]
push dword [0x4a5be8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
inc eax
push eax
mov ecx, esi
call fcn.00432cfe
push edi
lea ecx, [ebp - 0xc]
call fcn.0043ccfc
mov eax, dword [ebp - 0xc]
call fcn.00404585
lea ecx, [ebp - 0xc]
call fcn.0042dd2d
mov ecx, esi
mov byte [0x4a9003], bl
call fcn.0042dd2d
push 4
push dword [ebp - 8]
push str.MAIN
call fcn.0042ecb0
add esp, 0xc
test al, al
je 0x40ade0
mov ecx, dword [ebp - 8]
add ecx, 8
xor edx, edx
mov dx, word [ecx]
mov eax, edx
call fcn.00402b57
test al, al
jne 0x40ad9f
cmp dx, 0x2a
jne 0x40ade0
mov ax, word [ecx]
call fcn.00402b57
mov byte [ebp - 2], al
lea eax, [ebp - 0x10]
push eax
mov byte [0x4a5b86], bl
mov dword [ebp - 0x10], ecx
call fcn.0042dd40
cmp byte [ebp - 2], bl
pop ecx
je 0x40aeae
push 3
push dword [ebp - 0x10]
push 0x48f6c0
call fcn.0042ec66
add esp, 0xc
test al, al
je 0x40aeae
cmp byte [ebp - 1], 2
jge 0x40ae1d
push 0x4a5b70
mov eax, 0x10000
push eax
push 0x4a5c00
push 0x402f35
push eax
push ebx
mov byte [0x4a5c00], 0x11
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
je 0x40ae17
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40ae1d
mov byte [0x4a5c00], bl
mov al, byte [0x4a5f0c]
push dword [ebp - 0x14]
mov byte [0x4a5b84], al
call fcn.004030ac
pop ecx
push ebx
mov ecx, 0x4a5f08
call fcn.0041f0e9
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0x48f6be
mov ecx, 0x4a5f4c
call fcn.00432d74
mov eax, dword [0x4a5bc0]
cmp eax, ebx
mov dword [0x4a5f44], ebx
mov dword [0x4a5f48], ebx
mov byte [0x4a9003], bl
mov byte [0x4a5c01], 0x20
je 0x40aed2
push dword [ebp + 0x14]
mov byte [0x4a4290], 1
push dword [ebp + 8]
mov dword [ebp + 0x10], eax
mov byte [ebp - 1], 2
call fcn.0040eb99
mov eax, dword [ebp + 0x10]
push 5
mov dword [ebp - 0x14], eax
lea eax, [ebp + 0x10]
push ebx
push eax
call fcn.00414db6
add esp, 0x14
cmp eax, ebx
mov dword [ebp + 0x10], eax
jne 0x40acca
or esi, 0xffffffff
jmp 0x40aef2
mov eax, dword [ebp - 8]
add eax, 8
push eax
lea ecx, [ebp - 0x18]
call fcn.0043ccfc
push dword [ebp - 0x18]
mov ecx, 0x4a5f08
call fcn.00426822
lea ecx, [ebp - 0x18]
call fcn.0042dd2d
cmp byte [0x4a5d56], bl
je 0x40aedf
call fcn.0040d3ba
mov ecx, 0x4a5f08
call fcn.0042e273
mov esi, eax
push esi
call fcn.0042de43
pop ecx
lea ecx, [ebp - 0x1c]
call fcn.0042dd2d
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x10