Function at 0x4051f4
Capabilities:
Accept command line arguments

Disassembly:
push 0xa0
mov eax, 0x4d82d0
call fcn.004d631c
mov edi, dword [ebp + 8]
xor edx, edx
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov dword [ebp - 0x98], edi
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], cx
cmp dword [eax + 0x14], 8
mov ecx, eax
mov dword [ebp - 4], edx
mov dword [ebp - 0xa0], edx
jb 0x40523a
mov ecx, dword [eax]
lea eax, [ebp - 0xa0]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [ebp - 0xa0], 0
mov ebx, eax
mov dword [ebp - 0x9c], ebx
jle 0x4052d8
mov esi, dword [ebx]
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
pop ecx
push eax
push esi
lea ecx, [ebp - 0x58]
call fcn.00401ffb
xor esi, esi
cmp dword [ebp - 0xa0], esi
jle 0x4052d8
push dword [ebx + esi*4]
lea ecx, [ebp - 0x40]
call fcn.00401a11
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x7c]
call fcn.004080c5
lea eax, [ebp - 0x7c]
mov byte [ebp - 4], 2
push eax
call fcn.0040af16
pop ecx
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 1
mov bl, al
call fcn.00402dce
lea ecx, [ebp - 0x7c]
call fcn.00401f5a
test bl, bl
jne 0x405379
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], bl
call fcn.00401f5a
mov ebx, dword [ebp - 0x9c]
inc esi
cmp esi, dword [ebp - 0xa0]
jl 0x405277
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0x98]
lea eax, [ebp - 0x28]
push eax
call fcn.0041b260
lea eax, [ebp - 0x98]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x98], 0x22
push eax
lea eax, [ebp - 0x94]
push eax
call fcn.0041b29d
add esp, 0x14
lea ecx, [ebp - 0x28]
push eax
call fcn.00402b70
lea ecx, [ebp - 0x94]
call fcn.00401f5a
lea eax, [ebp - 0x98]
mov dword [ebp - 0x98], 0x27
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x94]
push eax
call fcn.0041b29d
add esp, 0xc
lea ecx, [ebp - 0x28]
push eax
call fcn.00402b70
lea ecx, [ebp - 0x94]
call fcn.00401f5a
cmp dword [ebp - 0x18], 0
jne 0x4053ac
push 0x4ebbc4
mov ecx, edi
call fcn.00401a11
jmp 0x405557
push dword [ebp - 0x9c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
mov ecx, edi
mov byte [ebp - 0x9c], al
push dword [ebp - 0x9c]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
lea eax, [ebp - 0x40]
push eax
call fcn.00402bfb
lea ecx, [ebp - 0x40]
jmp 0x40555a
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x7c]
call fcn.004080c5
lea eax, [ebp - 0x7c]
mov byte [ebp - 4], 4
push eax
call fcn.0040af16
pop ecx
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 3
mov bl, al
call fcn.00402dce
lea ecx, [ebp - 0x7c]
call fcn.00401f5a
test bl, bl
je 0x405404
xor eax, eax
mov ecx, edi
mov byte [ebp - 0x98], al
push dword [ebp - 0x98]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
lea eax, [ebp - 0x28]
push eax
call fcn.00402bfb
jmp 0x405557
push 0x4ec19c
lea ecx, [ebp - 0x94]
call fcn.00401a11
lea eax, [ebp - 0x94]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0xac]
push eax
call fcn.0041ae2c
add esp, 0xc
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 7
call fcn.00401f5a
mov esi, 0x4ebbc4
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.00401ffb
mov eax, dword [ebp - 0xa8]
mov esi, dword [ebp - 0xac]
mov dword [ebp - 0x98], eax
cmp esi, eax
je 0x40552d
and dword [ebp - 0x30], 0
lea ecx, [ebp - 0x40]
and dword [ebp - 0x2c], 0
push esi
call fcn.00402c23
cmp dword [ebp - 0x18], 0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 8
jne 0x4054a6
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x28]
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.00402e22
jmp 0x4054de
push eax
lea eax, [ebp - 0x70]
push 0x4ec19c
push eax
call fcn.004031d3
add esp, 0xc
cmp dword [eax + 0x14], 8
mov ecx, eax
mov byte [ebp - 4], 9
jb 0x4054c6
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00402e22
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 8
call fcn.00401f5a
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x7c]
call fcn.004080c5
lea eax, [ebp - 0x7c]
mov byte [ebp - 4], 0xa
push eax
call fcn.0040af16
pop ecx
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 8
mov bl, al
call fcn.00402dce
lea ecx, [ebp - 0x7c]
call fcn.00401f5a
test bl, bl
jne 0x40556f
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 7
call fcn.00401f5a
add esi, 0x18
cmp esi, dword [ebp - 0x98]
jne 0x405472
xor eax, eax
mov ecx, edi
mov byte [ebp - 0x98], al
push dword [ebp - 0x98]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
lea eax, [ebp - 0x58]
push eax
call fcn.00402bfb
lea ecx, [ebp - 0xac]
call fcn.00402dce
lea ecx, [ebp - 0x28]
call fcn.00401f5a
lea ecx, [ebp - 0x58]
call fcn.00401f5a
mov eax, edi
call fcn.004d62c6
ret
xor eax, eax
mov ecx, edi
mov byte [ebp - 0x98], al
push dword [ebp - 0x98]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
lea eax, [ebp - 0x28]
push eax
call fcn.00402bfb
lea ecx, [ebp - 0x40]
call fcn.00401f5a
jmp 0x40554c