Function at 0x40917f
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 1
call fcn.00403fc7
xor ebx, ebx
cmp dword [0x4dac7c], ebx
pop ecx
jne 0x4091a6
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x4091a6
mov dword [0x4dac7c], eax
mov byte [ebp - 1], bl
call dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0044df7a
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
call fcn.0043e425
push dword [ebp + 0x14]
push dword [ebp + 8]
call fcn.0041c053
mov edi, dword [ebp + 0x10]
push 5
lea eax, [ebp + 0x10]
push ebx
push eax
call fcn.0041a299
add esp, 0x18
cmp eax, ebx
mov dword [ebp + 0x10], eax
je 0x4093d4
mov esi, 0x4dacbc
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.0043e425
mov eax, dword [ebp - 8]
cmp word [eax], 0x22
pop ecx
mov dword [ebp - 0xc], eax
jne 0x409213
add eax, 2
mov dword [ebp - 0xc], eax
push 4
push dword [ebp - 0xc]
push 0x4c0818
call fcn.0043f884
add esp, 0xc
test al, al
je 0x4092a4
mov eax, dword [ebp - 0xc]
mov ax, word [eax + 8]
call fcn.00402d55
test al, al
je 0x4092a4
push 0x6592
mov ecx, esi
call fcn.00444a55
mov eax, dword [0x4dacbc]
push 0x6590
mov word [eax], bx
push dword [0x4dacbc]
push 0x2713
push dword [ebp + 8]
call dword [sym.imp.user32.dll_LoadStringW]
push dword [0x4dacbc]
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
inc eax
inc eax
push eax
mov ecx, esi
call fcn.00444a55
push dword [ebp - 0xc]
lea ecx, [ebp - 0x10]
call fcn.0044df7a
mov eax, dword [ebp - 0x10]
call fcn.0040612f
lea ecx, [ebp - 0x10]
call fcn.0043e48d
mov ecx, esi
mov byte [0x4de003], bl
call fcn.0043e3c9
push 4
push dword [ebp - 8]
push str.MAIN
call fcn.0043f884
add esp, 0xc
test al, al
je 0x409317
mov ecx, dword [ebp - 8]
add ecx, 8
xor edx, edx
mov dx, word [ecx]
mov eax, edx
call fcn.00402d55
test al, al
jne 0x4092d6
cmp dx, 0x2a
jne 0x409317
mov ax, word [ecx]
call fcn.00402d55
mov byte [ebp - 2], al
lea eax, [ebp - 0x14]
push eax
mov byte [0x4dac32], bl
mov dword [ebp - 0x14], ecx
call fcn.0043e425
cmp byte [ebp - 2], bl
pop ecx
je 0x4093d9
push 3
push dword [ebp - 0x14]
push 0x4c080c
call fcn.0043f82d
add esp, 0xc
test al, al
je 0x4093d9
cmp byte [ebp - 1], 2
jge 0x40934d
push ebx
push 0x4dac18
mov eax, 0x10000
push eax
push eax
push 0x4dacdc
push 0x403d92
mov byte [0x4dacdc], 0x11
call fcn.0043e57d
add esp, 0x18
test eax, eax
jne 0x40934d
mov byte [0x4dacdc], bl
mov al, byte [0x4db0e4]
push edi
mov byte [0x4dac30], al
call fcn.00403e51
pop ecx
push ebx
mov ecx, 0x4db0e0
call fcn.00435d0b
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0x4c080a
mov ecx, 0x4db120
call fcn.00444acb
mov eax, dword [0x4dac80]
cmp eax, ebx
mov dword [0x4db118], ebx
mov dword [0x4db11c], ebx
mov byte [0x4de003], bl
mov byte [0x4dacdd], 0x20
je 0x4093fd
push dword [ebp + 0x14]
mov byte [0x4d92d4], 1
push dword [ebp + 8]
mov dword [ebp + 0x10], eax
mov byte [ebp - 1], 2
call fcn.0041c053
mov edi, dword [ebp + 0x10]
push 5
lea eax, [ebp + 0x10]
push ebx
push eax
call fcn.0041a299
add esp, 0x14
cmp eax, ebx
mov dword [ebp + 0x10], eax
jne 0x4091f4
or esi, 0xffffffff
jmp 0x40941d
mov eax, dword [ebp - 8]
add eax, 8
push eax
lea ecx, [ebp - 0x18]
call fcn.0044df7a
push dword [ebp - 0x18]
mov ecx, 0x4db0e0
call fcn.0042f77e
lea ecx, [ebp - 0x18]
call fcn.0043e48d
cmp byte [0x4dae6e], bl
je 0x40940a
call fcn.00411b8e
mov ecx, 0x4db0e0
call fcn.0043ed4d
mov esi, eax
push esi
call fcn.0043e572
pop ecx
lea ecx, [ebp - 0x1c]
call fcn.0043e48d
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x10