Function at 0x40907a
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 0x40908f
xor eax, eax
jmp 0x40933f
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov esi, dword [ebp + 0xc]
cmp esi, ebx
mov dword [0x4dd1fc], eax
jne 0x4090a8
mov esi, dword [0x4dcc88]
push edi
mov dword [ebp - 4], 0x4c28cc
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
cmp dword [0x4dcfa8], ebx
mov dword [ebp - 4], eax
jne 0x4090f2
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 [0x4dcfa8], esi
call fcn.0041c2b9
pop ecx
pop ecx
push dword [ebp - 4]
lea ecx, [ebp - 8]
call fcn.0044e827
mov eax, dword [ebp - 8]
push 0x11
push eax
push 0x4c28a8
mov dword [ebp - 4], eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x40914c
lea eax, [ebp + 0x10]
push eax
call fcn.00409344
lea eax, [ebp + 0x10]
push eax
call fcn.00405b76
lea eax, [ebp - 4]
push eax
call fcn.00405b76
mov eax, dword [ebp - 4]
add esp, 0xc
mov word [eax], bx
push dword [ebp + 0x10]
lea ecx, [ebp - 8]
call fcn.00444fd8
mov eax, dword [ebp - 8]
mov dword [ebp + 0x10], eax
jmp 0x40917d
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.00409344
mov eax, dword [ebp - 4]
pop ecx
mov word [eax], bx
push dword [ebp + 0x10]
lea ecx, [ebp - 8]
call fcn.00444fd8
mov eax, dword [ebp - 8]
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
call fcn.0043e7bd
pop ecx
mov eax, dword [0x4dcfa8]
mov dword [ebp - 0x1c], eax
mov esi, 0x4dccc8
mov eax, dword [ebp + 0x10]
push 5
mov dword [ebp - 0x20], eax
lea eax, [ebp + 0x10]
push ebx
push eax
call fcn.0041a4ff
add esp, 0xc
mov dword [ebp + 0x10], eax
cmp word [eax], 0x22
mov dword [ebp - 0x14], eax
mov edi, eax
jne 0x4091b0
lea edi, [eax + 2]
push 4
push edi
push 0x4c28a0
call fcn.0043fc19
add esp, 0xc
test al, al
je 0x40923a
mov ax, word [edi + 8]
call fcn.0043e785
test al, al
je 0x40923a
push 0x6592
mov ecx, esi
call fcn.00444fb1
mov eax, dword [0x4dccc8]
push 0x6590
mov word [eax], bx
push dword [0x4dccc8]
push 0x2713
push dword [ebp - 0x1c]
call dword [sym.imp.USER32.dll_LoadStringW]
push dword [0x4dccc8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
inc eax
push eax
mov ecx, esi
call fcn.00444fb1
push edi
lea ecx, [ebp - 0xc]
call fcn.0044e827
mov eax, dword [ebp - 0xc]
call fcn.0040630b
lea ecx, [ebp - 0xc]
call fcn.0043e825
mov ecx, esi
mov byte [0x4e0003], bl
call fcn.0043e75f
mov edi, dword [ebp - 0x14]
push 4
push edi
push str.MAIN
call fcn.0043fc19
add esp, 0xc
test al, al
je 0x40929b
lea ecx, [edi + 8]
xor edi, edi
mov di, word [ecx]
mov eax, edi
call fcn.0043e785
cmp al, bl
mov byte [ebp + 0xf], al
jne 0x40926d
cmp di, 0x2a
jne 0x40929b
lea eax, [ebp - 0x10]
push eax
mov byte [0x4dcc3e], bl
mov dword [ebp - 0x10], ecx
call fcn.0043e7bd
cmp byte [ebp + 0xf], bl
pop ecx
je 0x4092f6
push 3
push dword [ebp - 0x10]
push 0x4c2894
call fcn.0043fbc2
add esp, 0xc
test al, al
je 0x4092f6
mov al, byte [0x4dd0f4]
push dword [ebp - 0x20]
mov byte [0x4dcc3c], al
call fcn.00403f3a
pop ecx
push ebx
mov ecx, 0x4dd0f0
call fcn.004360a8
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0x4c2892
mov ecx, 0x4dd130
call fcn.00445027
mov eax, dword [0x4dcc8c]
cmp eax, ebx
mov dword [0x4dd128], ebx
mov dword [0x4dd12c], ebx
mov byte [0x4e0003], bl
je 0x40931a
mov byte [0x4db2d4], 1
mov dword [ebp + 0x10], eax
jmp 0x40918a
mov eax, dword [ebp - 0x14]
add eax, 8
push eax
lea ecx, [ebp - 0x18]
call fcn.0044e827
push dword [ebp - 0x18]
mov ecx, 0x4dd0f0
call fcn.0042fb1c
lea ecx, [ebp - 0x18]
call fcn.0043e825
cmp byte [0x4dce7e], bl
pop edi
je 0x409328
call fcn.00411db3
mov ecx, 0x4dd0f0
call fcn.0043f0c9
lea ecx, [ebp - 8]
mov esi, eax
call fcn.0043e825
mov eax, esi
pop esi
pop ebx
leave
ret 0x10