Function at 0x4152e4
Capabilities:
Accept command line arguments

Disassembly:
jmp 0x489680
sub esp, 0x3d4
mov eax, dword [0xa0b130]
xor eax, esp
mov dword [esp + 0x3d0], eax
mov eax, dword [esp + 0x3dc]
push ebx
mov ebx, dword [esp + 0x3dc]
push esi
push edi
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edx, eax
mov dword [esp + 0x1c0], 0
mov ecx, edx
mov dword [esp + 0x1c4], 0x104
lea eax, [esp + 0x1c8]
mov dword [esp + 0x1bc], eax
lea esi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4896e0
sub ecx, esi
lea eax, [esp + 0x1bc]
push eax
sar ecx, 1
lea eax, [esp + 0x24]
push ecx
push edx
push eax
call fcn.004020e5
add esp, 0x10
mov ecx, dword [eax]
mov eax, dword [eax + 4]
test ecx, ecx
je 0x489736
mov dword [ebx], ecx
lea ecx, [esp + 0x1c8]
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x1bc]
cmp eax, ecx
je 0x489a69
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x489a66
lea eax, [esp + 0x5c]
mov dword [esp + 0x54], 0
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x3ec]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x50]
push 0
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x60], 0x14
push eax
push dword [esp + 0x1cc]
push dword [esp + 0x1cc]
call fcn.004131dd
mov esi, dword [esp + 0x64]
add esp, 0x14
mov eax, dword [esp + 0x54]
lea edi, [esi + eax*4]
mov dword [esp + 0x20], edi
cmp esi, edi
je 0x4897e5
nop
mov eax, dword [esi]
lea ecx, [esp + 0xc]
push ecx
push dword [esp + 0x14]
sub esp, 8
mov edx, esp
mov dword [edx], eax
test eax, eax
je 0x4897bf
lea edi, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4897b0
sub eax, edi
mov edi, dword [esp + 0x30]
jmp 0x4897c1
xor eax, eax
mov dword [edx + 4], eax
lea eax, [esp + 0x24]
push eax
call fcn.0048a850
add esp, 0x14
mov ecx, dword [eax]
mov eax, dword [eax + 4]
test ecx, ecx
jne 0x4898f7
add esi, 4
cmp esi, edi
jne 0x489790
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov edi, dword [eax]
mov esi, edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4897f2
sub esi, ecx
mov dword [esp + 0xb4], 0x104
xor eax, eax
lea ecx, [esp + 0xb8]
mov dword [esp + 0xac], ecx
mov dword [esp + 0xb0], eax
cmp esi, 0x104
jbe 0x489845
push 1
mov eax, ecx
lea ecx, [esp + 0xb0]
push esi
push eax
call fcn.00405e1b
mov eax, dword [esp + 0xb0]
mov ecx, dword [esp + 0xac]
lea edx, [edi + esi]
cmp edi, edx
je 0x489860
push esi
add eax, ecx
push edi
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0xbc]
add esp, 0xc
add eax, esi
mov dword [esp + 0x2d0], 0
mov dword [esp + 0xb0], eax
lea eax, [esp + 0x2d8]
mov dword [esp + 0x2cc], eax
lea eax, [esp + 0xac]
push 2
push eax
mov dword [esp + 0x2dc], 0x104
call fcn.00405100
lea eax, [esp + 0x2d4]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00489ea0
add esp, 0x10
mov ecx, dword [eax]
mov eax, dword [eax + 4]
test ecx, ecx
je 0x489930
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov dword [ebx], ecx
lea ecx, [esp + 0x2d8]
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x2cc]
cmp eax, ecx
je 0x4898dd
push eax
call esi
add esp, 4
mov eax, dword [esp + 0xac]
lea ecx, [esp + 0xb8]
cmp eax, ecx
je 0x489902
push eax
call esi
add esp, 4
jmp 0x489902
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov dword [ebx], ecx
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x50]
lea ecx, [esp + 0x5c]
cmp eax, ecx
je 0x489914
push eax
call esi
add esp, 4
mov eax, dword [esp + 0x1bc]
lea ecx, [esp + 0x1c8]
cmp eax, ecx
je 0x489a69
push eax
jmp 0x489a64
lea eax, [esp + 0x2cc]
mov word [esp + 0x28], 0x101
mov dword [esp + 0x14], eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x30]
mov word [esp + 0x38], 0x101
push eax
lea eax, [esp + 0x40]
mov word [esp + 0x48], 0x101
push eax
lea eax, [esp + 0x20]
mov word [esp + 0x28], 0x106
push eax
lea eax, [esp + 0xbc]
push eax
call fcn.004153a7
add esp, 0x14
mov word [esp + 0x1c], 0x106
lea eax, [esp + 0xac]
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x14]
lea eax, [esp + 0x38]
push eax
call fcn.0040a321
mov ecx, eax
cmp dword [eax + 0x14], 0x10
jb 0x4899a5
mov ecx, dword [eax]
push dword [eax + 0x10]
lea eax, [esp + 0x24]
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.004037ec
mov edx, dword [esp + 0x4c]
cmp edx, 0x10
jb 0x4899ef
mov ecx, dword [esp + 0x38]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4899e5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4899e5
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004036ca
add esp, 8
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov eax, dword [esp + 0x20]
mov dword [ecx], eax
mov dword [ebx], 0
call fcn.0040ab32
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea ecx, [esp + 0x2d8]
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x2cc]
cmp eax, ecx
je 0x489a27
push eax
call esi
add esp, 4
mov eax, dword [esp + 0xac]
lea ecx, [esp + 0xb8]
cmp eax, ecx
je 0x489a3f
push eax
call esi
add esp, 4
mov eax, dword [esp + 0x50]
lea ecx, [esp + 0x5c]
cmp eax, ecx
je 0x489a51
push eax
call esi
add esp, 4
mov ecx, dword [esp + 0x1bc]
lea eax, [esp + 0x1c8]
cmp ecx, eax
je 0x489a69
push ecx
call esi
add esp, 4
mov ecx, dword [esp + 0x3dc]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004087b5
add esp, 0x3d4
ret