Function at 0x4113d0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov edi, dword [0x14d51ec]
mov esi, dword [esp + 0x54]
mov ebp, dword [esp + 0x60]
test edi, edi
je 0x411510
mov esi, dword [0x14d51f0]
cmp esi, 1
jle 0x411491
test ebp, ebp
mov ebx, 1
mov dword [esp + 0x28], 1
je 0x4114a0
mov dword [esp + 0x2c], ebp
mov ebp, dword [esp + 0x50]
jmp 0x41142f
mov dword [esp + 4], eax
mov dword [esp], ebp
call dword [esp + 0x2c]
cmp ebx, esi
jge 0x411491
mov ecx, dword [esp + 0x28]
mov eax, dword [edi + ebx*4]
add ebx, 1
test ecx, ecx
je 0x411420
cmp byte [eax], 0x2d
jne 0x411420
movzx edx, byte [eax + 1]
test dl, dl
je 0x411420
cmp dl, 0x2d
jne 0x41145d
cmp byte [eax + 2], 0
mov dword [esp + 0x28], 0
je 0x41142b
mov edx, dword [esp + 0x5c]
add eax, 1
mov dword [esp + 0xc], edx
mov edx, dword [edi + ebx*4]
mov dword [esp + 4], eax
mov dword [esp], ebp
mov dword [esp + 8], edx
call fcn.00410de0
test eax, eax
js 0x41168b
add ebx, eax
cmp ebx, esi
mov dword [esp + 0x28], 1
jl 0x41142f
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, 1
jmp 0x4114ab
cmp esi, ebx
jle 0x411491
mov eax, dword [edi + ebx*4]
add ebx, 1
test edx, edx
je 0x4114a7
cmp byte [eax], 0x2d
mov edx, 1
jne 0x4114a7
movzx ecx, byte [eax + 1]
test cl, cl
je 0x4114a7
cmp cl, 0x2d
je 0x411500
mov edx, dword [esp + 0x5c]
add eax, 1
mov dword [esp + 0xc], edx
mov edx, dword [edi + ebx*4]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov edx, dword [esp + 0x50]
mov dword [esp], edx
call fcn.00410de0
test eax, eax
js 0x4116a4
add ebx, eax
mov edx, 1
jmp 0x4114a7
cmp byte [eax + 2], 0
jne 0x4114cc
xor edx, edx
jmp 0x4114a7
mov dword [0x14d51f0], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [esp + 4], 0x14d51f0
mov dword [esp], eax
call dword [sym.imp.SHELL32.DLL_CommandLineToArgvW]
sub esp, 8
test eax, eax
mov edi, eax
je 0x411682
mov ebx, dword [0x14d51f0]
test ebx, ebx
jle 0x411682
xor ecx, ecx
xor ebx, ebx
mov dword [esp + 0x2c], ebp
mov ebp, esi
mov esi, ecx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov eax, dword [edi + ebx*4]
add ebx, 1
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
mov dword [esp + 8], eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
add esi, eax
mov eax, dword [0x14d51f0]
sub esp, 0x20
cmp ebx, eax
jl 0x411558
mov ecx, esi
mov esi, ebp
mov ebp, dword [esp + 0x2c]
lea eax, [ecx + eax*4 + 4]
mov dword [esp + 0x24], ecx
mov dword [esp], eax
call fcn.00ad02a0
mov edx, dword [0x14d51f0]
mov ecx, dword [esp + 0x24]
lea ebx, [eax + edx*4 + 4]
test eax, eax
mov dword [0x14d51ec], eax
mov dword [esp + 0x2c], ebx
je 0x4116bd
xor esi, esi
xor ebx, ebx
test edx, edx
jle 0x41165e
mov dword [esp + 0x28], ebp
mov ebp, ecx
jmp 0x4115f9
mov eax, dword [0x14d51ec]
mov edx, dword [esp + 0x2c]
add edx, esi
mov dword [eax + ebx*4], edx
mov eax, ebp
sub eax, esi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0xffffffff
mov eax, dword [edi + ebx*4]
add ebx, 1
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
mov dword [esp + 8], eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
sub esp, 0x20
add esi, eax
cmp ebx, dword [0x14d51f0]
jl 0x4115f4
mov ebp, dword [esp + 0x28]
shl ebx, 2
mov eax, dword [0x14d51ec]
mov dword [eax + ebx], 0
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [0x14d51f0]
mov edi, dword [0x14d51ec]
sub esp, 4
jmp 0x4113f3
mov edi, dword [esp + 0x58]
jmp 0x4113f3
mov dword [esp + 0x24], eax
mov dword [esp], 1
call fcn.00403a40
mov eax, dword [esp + 0x24]
jmp 0x411483
mov dword [esp + 0x24], eax
mov dword [esp], 1
call fcn.00403a40
mov eax, dword [esp + 0x24]
jmp 0x4114f6
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
sub esp, 4
mov edi, dword [esp + 0x58]
jmp 0x4113f3