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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
call fcn.00403100
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor ebx, ebx
mov dword [0x4a7028], eax
mov byte [ebp - 1], bl
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0043ddc9
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
call fcn.0042ebab
push dword [ebp + 0x14]
push dword [ebp + 8]
call fcn.00417878
mov eax, dword [ebp + 0x10]
push 5
mov dword [ebp - 0x14], eax
lea eax, [ebp + 0x10]
push ebx
push eax
call fcn.00414faa
add esp, 0x18
cmp eax, ebx
mov dword [ebp + 0x10], eax
je 0x40aecb
mov esi, 0x4a6be8
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.0042ebab
mov edi, dword [ebp - 8]
cmp word [edi], 0x22
pop ecx
jne 0x40ad05
add edi, 2
push 4
push edi
push 0x4906cc
call fcn.0042fae7
add esp, 0xc
test al, al
je 0x40ad8f
mov ax, word [edi + 8]
call fcn.00402b47
test al, al
je 0x40ad8f
push 0x6592
mov ecx, esi
call fcn.00433c6b
mov eax, dword [0x4a6be8]
push 0x6590
mov word [eax], bx
push dword [0x4a6be8]
push 0x2713
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_LoadStringW]
push dword [0x4a6be8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
inc eax
push eax
mov ecx, esi
call fcn.00433c6b
push edi
lea ecx, [ebp - 0xc]
call fcn.0043ddc9
mov eax, dword [ebp - 0xc]
call fcn.004045a2
lea ecx, [ebp - 0xc]
call fcn.0042eb98
mov ecx, esi
mov byte [0x4aa003], bl
call fcn.0042eb98
push 4
push dword [ebp - 8]
push str.MAIN
call fcn.0042fae7
add esp, 0xc
test al, al
je 0x40ae02
mov ecx, dword [ebp - 8]
add ecx, 8
xor edx, edx
mov dx, word [ecx]
mov eax, edx
call fcn.00402b47
test al, al
jne 0x40adc1
cmp dx, 0x2a
jne 0x40ae02
mov ax, word [ecx]
call fcn.00402b47
mov byte [ebp - 2], al
lea eax, [ebp - 0x10]
push eax
mov byte [0x4a6b86], bl
mov dword [ebp - 0x10], ecx
call fcn.0042ebab
cmp byte [ebp - 2], bl
pop ecx
je 0x40aed0
push 3
push dword [ebp - 0x10]
push 0x4906c0
call fcn.0042fa9d
add esp, 0xc
test al, al
je 0x40aed0
cmp byte [ebp - 1], 2
jge 0x40ae3f
push 0x4a6b70
mov eax, 0x10000
push eax
push 0x4a6c00
push 0x402f42
push eax
push ebx
mov byte [0x4a6c00], 0x11
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
je 0x40ae39
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40ae3f
mov byte [0x4a6c00], bl
mov al, byte [0x4a6f0c]
push dword [ebp - 0x14]
mov byte [0x4a6b84], al
call fcn.004030b9
pop ecx
push ebx
mov ecx, 0x4a6f08
call fcn.0041f8fd
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0x4906be
mov ecx, 0x4a6f4c
call fcn.00433ce1
mov eax, dword [0x4a6bc0]
cmp eax, ebx
mov dword [0x4a6f44], ebx
mov dword [0x4a6f48], ebx
mov byte [0x4aa003], bl
mov byte [0x4a6c01], 0x20
je 0x40aef4
push dword [ebp + 0x14]
mov byte [0x4a5290], 1
push dword [ebp + 8]
mov dword [ebp + 0x10], eax
mov byte [ebp - 1], 2
call fcn.00417878
mov eax, dword [ebp + 0x10]
push 5
mov dword [ebp - 0x14], eax
lea eax, [ebp + 0x10]
push ebx
push eax
call fcn.00414faa
add esp, 0x14
cmp eax, ebx
mov dword [ebp + 0x10], eax
jne 0x40acec
or esi, 0xffffffff
jmp 0x40af14
mov eax, dword [ebp - 8]
add eax, 8
push eax
lea ecx, [ebp - 0x18]
call fcn.0043ddc9
push dword [ebp - 0x18]
mov ecx, 0x4a6f08
call fcn.004275a8
lea ecx, [ebp - 0x18]
call fcn.0042eb98
cmp byte [0x4a6d56], bl
je 0x40af01
call fcn.0040d80a
mov ecx, 0x4a6f08
call fcn.0042f0aa
mov esi, eax
push esi
call fcn.0042ec7a
pop ecx
lea ecx, [ebp - 0x1c]
call fcn.0042eb98
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x10