Function at 0x4d7c10
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x19
push 0
push 0
dec ecx
jne 0x4d7c18
push ecx
push ebx
push esi
push edi
mov eax, 0x4d5fc4
call fcn.00407294
xor eax, eax
push ebp
push 0x4d83a7
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x14]
xor eax, eax
call fcn.00403390
mov eax, dword [ebp - 0x14]
mov edx, 0x4d83c0
call fcn.004a9074
lea edx, [ebp - 0x18]
mov eax, 1
call fcn.00403390
mov eax, dword [ebp - 0x18]
mov edx, 0x4d83d0
call fcn.00409594
test al, al
je 0x4d7c7a
call fcn.004b9504
jmp 0x4d8379
lea edx, [ebp - 0x1c]
mov eax, 1
call fcn.00403390
mov eax, dword [ebp - 0x1c]
mov edx, 0x4d83e4
call fcn.00409594
test al, al
je 0x4d7d83
mov eax, 0x4d83f4
call fcn.004c2788
test al, al
jne 0x4d8379
call fcn.00403330
cmp eax, 4
jl 0x4d8379
lea edx, [ebp - 0x20]
mov eax, 5
call fcn.00403390
mov eax, dword [ebp - 0x20]
mov edx, 0x7918
call fcn.00409af0
mov ebx, eax
lea edx, [ebp - 0x24]
mov eax, 6
call fcn.00403390
mov eax, dword [ebp - 0x24]
xor edx, edx
call fcn.00409af0
mov esi, eax
lea edx, [ebp - 0x28]
mov eax, 7
call fcn.00403390
mov eax, dword [ebp - 0x28]
xor edx, edx
call fcn.00409af0
mov edi, eax
lea edx, [ebp - 0x2c]
mov eax, 8
call fcn.00403390
mov eax, dword [ebp - 0x2c]
xor edx, edx
call fcn.00409af0
mov dword [0x4f21d0], eax
push 1
push ebx
push esi
push edi
mov eax, dword [0x4f21d0]
push eax
lea edx, [ebp - 0x30]
mov eax, 4
call fcn.00403390
mov eax, dword [ebp - 0x30]
mov edx, 0xb4
call fcn.00409af0
push eax
lea edx, [ebp - 0x34]
mov eax, 3
call fcn.00403390
mov eax, dword [ebp - 0x34]
mov edx, 0xfa
call fcn.00409af0
push eax
lea edx, [ebp - 0x38]
mov eax, 2
call fcn.00403390
mov eax, dword [ebp - 0x38]
pop edx
pop ecx
call fcn.004c2b90
jmp 0x4d8379
lea edx, [ebp - 0x3c]
mov eax, 1
call fcn.00403390
mov eax, dword [ebp - 0x3c]
mov edx, 0x4d8414
call fcn.00409594
test al, al
je 0x4d7e13
mov eax, 0x4d8428
call fcn.004c2788
test al, al
jne 0x4d8379
call fcn.00403330
cmp eax, 4
jl 0x4d8379
lea edx, [ebp - 0x40]
mov eax, 4
call fcn.00403390
mov eax, dword [ebp - 0x40]
mov edx, 0x1cc
call fcn.00409af0
push eax
lea edx, [ebp - 0x44]
mov eax, 3
call fcn.00403390
mov eax, dword [ebp - 0x44]
mov edx, 0x28a
call fcn.00409af0
push eax
lea edx, [ebp - 0x48]
mov eax, 2
call fcn.00403390
mov eax, dword [ebp - 0x48]
pop edx
pop ecx
call fcn.004c1ff8
jmp 0x4d8379
lea edx, [ebp - 0x4c]
mov eax, 1
call fcn.00403390
mov eax, dword [ebp - 0x4c]
mov edx, 0x4d8448
call fcn.00409594
test al, al
je 0x4d7e67
mov eax, 0x4d845c
call fcn.004c2788
test al, al
jne 0x4d8379
lea edx, [ebp - 0x50]
mov eax, 2
call fcn.00403390
mov eax, dword [ebp - 0x50]
mov edx, 0xa
call fcn.00409af0
call fcn.004c3570
jmp 0x4d8379
lea edx, [ebp - 0x54]
mov eax, 1
call fcn.00403390
mov eax, dword [ebp - 0x54]
mov edx, 0x4d847c
call fcn.00409594
test al, al
je 0x4d80c4
mov eax, 0x4d8490
call fcn.004c2788
test al, al
jne 0x4d8379
call fcn.00403330
cmp eax, 8
jl 0x4d8379
lea edx, [ebp - 0x58]
mov eax, 2
call fcn.00403390
mov eax, dword [ebp - 0x58]
xor edx, edx
call fcn.00409af0
mov ebx, eax
test ebx, ebx
je 0x4d8379
mov edx, 0x4f21d8
mov eax, 3
call fcn.00403390
lea edx, [ebp - 0x60]
mov eax, 4
call fcn.00403390
mov eax, dword [ebp - 0x60]
lea edx, [ebp - 0x5c]
call fcn.0040968c
mov edx, dword [ebp - 0x5c]
mov eax, 0x4f21dc
call fcn.00404ee0
lea edx, [ebp - 0x64]
mov eax, dword [0x4f21d8]
call fcn.0040968c
cmp dword [ebp - 0x64], 0
jne 0x4d7f1e
cmp dword [0x4f21dc], 0
je 0x4d8379
lea edx, [ebp - 0x68]
mov eax, 5
call fcn.00403390
mov eax, dword [ebp - 0x68]
or edx, 0xffffffff
call fcn.00409af0
mov esi, eax
lea edx, [ebp - 0x6c]
mov eax, 6
call fcn.00403390
mov eax, dword [ebp - 0x6c]
or edx, 0xffffffff
call fcn.00409af0
mov edi, eax
lea edx, [ebp - 0x70]
mov eax, 7
call fcn.00403390
mov eax, dword [ebp - 0x70]
or edx, 0xffffffff
call fcn.00409af0
mov dword [0x4f21e0], eax
lea edx, [ebp - 0x74]
mov eax, 8
call fcn.00403390
mov eax, dword [ebp - 0x74]
or edx, 0xffffffff
call fcn.00409af0
mov dword [0x4f21e4], eax
test esi, esi
jl 0x4d8379
test edi, edi
jl 0x4d8379
cmp dword [0x4f21e0], 0
jl 0x4d8379
cmp dword [0x4f21e4], 0
jl 0x4d8379
lea edx, [ebp - 0x78]
mov eax, 9
call fcn.00403390
mov eax, dword [ebp - 0x78]
xor edx, edx
call fcn.00409bd8
mov byte [0x4f21f0], al
lea edx, [ebp - 0x7c]
mov eax, 0xa
call fcn.00403390
mov eax, dword [ebp - 0x7c]
mov edx, 0xc8
call fcn.00409af0
mov dword [0x4f21e8], eax
lea edx, [ebp - 0x80]
mov eax, 0xb
call fcn.00403390
mov eax, dword [ebp - 0x80]
mov edx, 0x64
call fcn.00409af0
mov dword [0x4f21ec], eax
lea edx, [ebp - 0x84]
mov eax, 0xc
call fcn.00403390
mov eax, dword [ebp - 0x84]
mov edx, 0xea60
call fcn.00409af0
mov dword [0x4f21d4], eax
lea edx, [ebp - 0x88]
mov eax, 0xd
call fcn.00403390
mov eax, dword [ebp - 0x88]
mov edx, 0xffffff
call fcn.004a7a8c
mov dword [0x4f21f4], eax
lea edx, [ebp - 0x8c]
mov eax, 0xe
call fcn.00403390
mov eax, dword [ebp - 0x8c]
xor edx, edx
call fcn.004a7a8c
push esi
push edi
mov edx, dword [0x4f21e0]
push edx
mov edx, dword [0x4f21e4]
push edx
movzx edx, byte [0x4f21f0]
push edx
mov edx, dword [0x4f21e8]
push edx
mov edx, dword [0x4f21ec]
push edx
mov edx, dword [0x4f21d4]
push edx
mov edx, dword [0x4f21f4]
push edx
push eax
mov ecx, dword [0x4f21dc]
mov edx, dword [0x4f21d8]
mov eax, ebx
call fcn.004d5070
jmp 0x4d8379
lea edx, [ebp - 0x90]
mov eax, 1
call fcn.00403390
mov eax, dword [ebp - 0x90]
mov edx, 0x4d84b0
call fcn.00409594
test al, al
jne 0x4d8379
mov eax, 0x4d84c0
call fcn.004c2788
test al, al
je 0x4d82e5
lea edx, [ebp - 0x94]
mov eax, 1
call fcn.00403390
mov eax, dword [ebp - 0x94]
mov edx, 0x4d84e0
call fcn.00409594
test al, al
jne 0x4d8379
lea edx, [ebp - 0x98]
mov eax, 1
call fcn.00403390
mov eax, dword [ebp - 0x98]
mov edx, 0x4d84ec
call fcn.00409594
test al, al
jne 0x4d8379
push 0
push 0x4d84f8
call sub.user32.dll_FindWindowA
mov ebx, eax
push 0
call fcn.00403330
push eax
push 0x7ff
push ebx
call sub.user32.dll_SendMessageA
dec eax
jne 0x4d8379
call fcn.00403330
test eax, eax
jle 0x4d8379
xor eax, eax
mov dword [0x4f21c4], eax
lea eax, [ebp - 0xa0]
push eax
push 0x4d8514
lea edx, [ebp - 0xa8]
xor eax, eax
call fcn.00403390
push dword [ebp - 0xa8]
push 0x4d8514
lea eax, [ebp - 0xa4]
mov edx, 3
call fcn.0040523c
mov eax, dword [ebp - 0xa4]
push eax
call sub.kernel32.dll_GetCommandLineA_1
mov edx, eax
lea eax, [ebp - 0xac]
call fcn.00405084
mov eax, dword [ebp - 0xac]
xor ecx, ecx
pop edx
call fcn.0040fa00
mov eax, dword [ebp - 0xa0]
lea edx, [ebp - 0x9c]
call fcn.0040968c
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0xb0]
test eax, eax
je 0x4d8211
sub eax, 4
mov eax, dword [eax]
lea edi, [eax + 1]
mov dword [0x4f21c8], edi
mov eax, edi
call fcn.00402f44
mov esi, eax
mov dword [0x4f21cc], esi
xor eax, eax
push ebp
push 0x4d82de
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xb8]
push eax
push 0x4d8514
lea edx, [ebp - 0xc0]
xor eax, eax
call fcn.00403390
push dword [ebp - 0xc0]
push 0x4d8514
lea eax, [ebp - 0xbc]
mov edx, 3
call fcn.0040523c
mov eax, dword [ebp - 0xbc]
push eax
call sub.kernel32.dll_GetCommandLineA_1
mov edx, eax
lea eax, [ebp - 0xc4]
call fcn.00405084
mov eax, dword [ebp - 0xc4]
xor ecx, ecx
pop edx
call fcn.0040fa00
mov eax, dword [ebp - 0xb8]
lea edx, [ebp - 0xb4]
call fcn.0040968c
mov eax, dword [ebp - 0xb4]
call fcn.00405338
mov edx, eax
mov eax, esi
call fcn.0040a3ec
push 0x4f21c4
push 0
push 0x4a
push ebx
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d8379
mov eax, dword [0x4f21cc]
call fcn.00402f60
ret
mov eax, dword [0x4dc2a8]
mov eax, dword [eax]
call fcn.0046a564
lea edx, [ebp - 0xc8]
mov eax, 1
call fcn.00403390
mov eax, dword [ebp - 0xc8]
mov edx, 0x4d84e0
call fcn.00409594
test al, al
jne 0x4d8339
lea edx, [ebp - 0xcc]
mov eax, 1
call fcn.00403390
mov eax, dword [ebp - 0xcc]
mov edx, 0x4d84ec
call fcn.00409594
test al, al
je 0x4d8344
mov eax, dword [0x4dc2a8]
mov eax, dword [eax]
mov byte [eax + 0x5b], 0
mov eax, dword [0x4dc2a8]
mov eax, dword [eax]
mov edx, 0x4d83c0
call fcn.0046a01c
mov ecx, dword [0x4dc3cc]
mov eax, dword [0x4dc2a8]
mov eax, dword [eax]
mov edx, dword [0x4bd530]
call fcn.0046a57c
mov eax, dword [0x4dc2a8]
mov eax, dword [eax]
call fcn.0046a6b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d83ae
lea eax, [ebp - 0xcc]
mov edx, 7
call fcn.00404eb0
lea eax, [ebp - 0xac]
mov edx, 0x27
call fcn.00404eb0
ret