Function at 0x4084ed
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
jne 0x408502
xor eax, eax
jmp 0x4087b2
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov esi, dword [ebp + 0xc]
cmp esi, ebx
mov dword [0x4c9150], eax
jne 0x40851b
mov esi, dword [0x4c8c2c]
push edi
mov dword [ebp - 4], 0x4af644
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
cmp dword [0x4c8f04], ebx
mov dword [ebp - 4], eax
jne 0x408565
push 0xf
pop ecx
xor eax, eax
mov dword [ebp - 0x64], 0x44
mov dword [ebp - 0x60], ebx
lea edi, [ebp - 0x5c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
movzx eax, word [ebp - 0x34]
push eax
push esi
mov dword [0x4c8f04], esi
call fcn.0041d354
pop ecx
pop ecx
push dword [ebp - 4]
lea ecx, [ebp - 8]
call fcn.00448399
mov eax, dword [ebp - 8]
push 0x11
push eax
push 0x4af620
mov dword [ebp - 4], eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x4085bf
lea eax, [ebp + 0x10]
push eax
call fcn.00405444
lea eax, [ebp + 0x10]
push eax
call fcn.0040549b
lea eax, [ebp - 4]
push eax
call fcn.0040549b
mov eax, dword [ebp - 4]
add esp, 0xc
mov word [eax], bx
push dword [ebp + 0x10]
lea ecx, [ebp - 8]
call fcn.0043fe06
mov eax, dword [ebp - 8]
mov dword [ebp + 0x10], eax
jmp 0x4085f0
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.00405444
mov eax, dword [ebp - 4]
pop ecx
mov word [eax], bx
push dword [ebp + 0x10]
lea ecx, [ebp - 8]
call fcn.0043fe06
mov eax, dword [ebp - 8]
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
call fcn.00439c95
pop ecx
mov eax, dword [0x4c8f04]
mov dword [ebp - 0x1c], eax
mov esi, 0x4c8c6c
mov eax, dword [ebp + 0x10]
push 5
mov dword [ebp - 0x20], eax
lea eax, [ebp + 0x10]
push ebx
push eax
call fcn.0041a38c
add esp, 0xc
mov dword [ebp + 0x10], eax
cmp word [eax], 0x22
mov dword [ebp - 0x14], eax
mov edi, eax
jne 0x408623
lea edi, [eax + 2]
push 4
push edi
push 0x4af618
call fcn.0043af58
add esp, 0xc
test al, al
je 0x4086ad
mov ax, word [edi + 8]
call fcn.0040ea2b
test al, al
je 0x4086ad
push 0x6592
mov ecx, esi
call fcn.0043fddf
mov eax, dword [0x4c8c6c]
push 0x6590
mov word [eax], bx
push dword [0x4c8c6c]
push 0x2713
push dword [ebp - 0x1c]
call dword [sym.imp.USER32.dll_LoadStringW]
push dword [0x4c8c6c]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
inc eax
push eax
mov ecx, esi
call fcn.0043fddf
push edi
lea ecx, [ebp - 0xc]
call fcn.00448399
mov eax, dword [ebp - 0xc]
call fcn.00405b54
lea ecx, [ebp - 0xc]
call fcn.00439cfd
mov ecx, esi
mov byte [0x4cc003], bl
call fcn.00439cfd
mov edi, dword [ebp - 0x14]
push 4
push edi
push str.MAIN
call fcn.0043af58
add esp, 0xc
test al, al
je 0x40870e
lea ecx, [edi + 8]
xor edi, edi
mov di, word [ecx]
mov eax, edi
call fcn.0040ea2b
cmp al, bl
mov byte [ebp + 0xf], al
jne 0x4086e0
cmp di, 0x2a
jne 0x40870e
lea eax, [ebp - 0x10]
push eax
mov byte [0x4c8bea], bl
mov dword [ebp - 0x10], ecx
call fcn.00439c95
cmp byte [ebp + 0xf], bl
pop ecx
je 0x408769
push 3
push dword [ebp - 0x10]
push 0x4af60c
call fcn.0043af01
add esp, 0xc
test al, al
je 0x408769
mov al, byte [0x4c904c]
push dword [ebp - 0x20]
mov byte [0x4c8be8], al
call fcn.00403e6f
pop ecx
push ebx
mov ecx, 0x4c9048
call fcn.00430616
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0x4af60a
mov ecx, 0x4c9088
call fcn.0043fe55
mov eax, dword [0x4c8c30]
cmp eax, ebx
mov dword [0x4c9080], ebx
mov dword [0x4c9084], ebx
mov byte [0x4cc003], bl
je 0x40878d
mov byte [0x4c72b4], 1
mov dword [ebp + 0x10], eax
jmp 0x4085fd
mov eax, dword [ebp - 0x14]
add eax, 8
push eax
lea ecx, [ebp - 0x18]
call fcn.00448399
push dword [ebp - 0x18]
mov ecx, 0x4c9048
call fcn.0042ad85
lea ecx, [ebp - 0x18]
call fcn.00439cfd
cmp byte [0x4c8e1e], bl
pop edi
je 0x40879b
call fcn.00410a65
mov ecx, 0x4c9048
call fcn.0043a48c
lea ecx, [ebp - 8]
mov esi, eax
call fcn.00439cfd
mov eax, esi
pop esi
pop ebx
leave
ret 0x10