Function at 0x409520
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42c1ba
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push esi
push edi
mov eax, dword [0x43c00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x10], 0
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0x11
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0xa
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0xc], 0x3f400000
mov dword [edi + 0x10], 0x3e800000
mov dword [edi + 0x14], 0x40100000
mov dword [edi + 0x18], 0x26
mov dword [edi + 0x1c], 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
push esi
push str.Command_line:__ls
push 6
push str.CommandLine::CommandLine
call fcn.00408e10
add esp, 0x10
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ecx, eax
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 4], 2
xor eax, eax
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x18], eax
jle 0x409a6d
mov esi, dword [ebp - 0x28]
mov edi, dword [ebp - 0x14]
nop word [eax + eax]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov byte [ebp - 4], 3
push dword [ecx + eax*4]
lea ecx, [ebp - 0x24]
call fcn.00403e60
mov byte [ebp - 4], 4
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
push ecx
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x24]
call fcn.00409cb0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x60]
push dword [eax]
call fcn.0040a290
mov byte [ebp - 4], 4
or eax, 0xffffffff
mov edx, dword [ebp - 0x3c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x409674
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x20], 0xffffffff
jne 0x409636
mov byte [ebp - 4], 3
or eax, 0xffffffff
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x409699
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x5c]
mov dword [ebp - 0x30], ebx
test ebx, ebx
jne 0x4096b8
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x409a57
push eax
jmp 0x409a4f
push ecx
mov ecx, dword [ebp - 0x60]
lea eax, [ebp - 0x40]
push eax
call fcn.00403c60
mov byte [ebp - 4], 9
mov ecx, 0x4351c0
mov eax, dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4096fb
test dx, dx
je 0x4096f2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4096fb
add eax, 4
add ecx, 4
test dx, dx
jne 0x4096d0
mov dword [ebp - 0x20], 0
jmp 0x409703
sbb ecx, ecx
or ecx, 1
mov dword [ebp - 0x20], ecx
mov byte [ebp - 4], 3
or eax, 0xffffffff
mov edx, dword [ebp - 0x40]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x409722
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x20], 0
je 0x40976e
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x409a57
mov edi, dword [ebp - 0x30]
mov ebx, eax
nop dword [eax]
mov dword [ebp - 0x44], ebx
mov byte [ebp - 4], 2
or eax, 0xffffffff
mov edx, dword [ebx]
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x409761
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add ebx, 4
sub edi, 1
jne 0x409740
jmp 0x409a49
cmp ebx, 1
jbe 0x4097e4
mov eax, dword [ebp - 0x60]
mov eax, dword [eax + 4]
mov ecx, dword [eax - 0x10]
lea esi, [eax - 0x10]
mov dword [ebp - 0x2c], eax
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi + 0xc], 0
mov ecx, eax
lea eax, [esi + 0xc]
jl 0x40979b
cmp ecx, dword [esi]
jne 0x40979b
lock inc dword [eax]
jmp 0x4097ca
mov eax, dword [ecx]
lea ebx, [esi + 4]
push 2
push dword [ebx]
call dword [eax]
mov esi, eax
test esi, esi
je 0x409ab5
mov ecx, dword [ebx]
mov dword [esi + 4], ecx
mov ecx, dword [ebx]
inc ecx
lea edx, [ecx + ecx]
push edx
push dword [ebp - 0x2c]
lea ecx, [esi + 0x10]
call fcn.004011c0
add esp, 8
add esi, 0x10
mov dword [ebp - 0x28], esi
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x2c], ecx
mov byte [ebp - 4], 0xd
or dword [ebp - 0x10], 1
jmp 0x409816
call fcn.004015f0
test eax, eax
je 0x409a9c
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0xd
lea eax, [ebp - 0x14]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 0xf
or dword [ebp - 0x10], 2
mov eax, dword [ebp - 0x60]
mov edx, dword [eax]
mov ebx, edx
mov eax, 0x2d
mov dword [ebp - 0x20], edx
cmp ax, word [ebx]
jne 0x409838
nop word [eax + eax]
add ebx, 2
cmp ax, word [ebx]
je 0x409830
cmp ebx, edx
je 0x40990d
mov eax, dword [edx - 0xc]
sub ebx, edx
sar ebx, 1
mov dword [ebp - 0x20], eax
test eax, eax
js 0x409ad3
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, dword [edx - 0xc]
or eax, ecx
jge 0x409874
push dword [ebp - 0x20]
mov ecx, dword [ebp - 0x60]
call fcn.004044f0
mov eax, dword [ebp - 0x60]
mov edx, dword [eax]
lea eax, [edx + ebx*2]
mov dword [ebp - 0x20], eax
mov eax, dword [edx - 0xc]
sub eax, ebx
mov dword [ebp - 0x44], eax
lea ecx, [eax*2 + 2]
test ecx, ecx
je 0x4098d9
mov ebx, dword [ebp - 0x20]
test ebx, ebx
jne 0x4098a9
call fcn.00413f6c
mov dword [eax], 0x16
call fcn.00413e80
lea eax, [ebx + 0x16]
jmp 0x4098db
mov eax, dword [edx - 0xc]
lea eax, [eax*2 + 2]
cmp eax, ecx
jae 0x4098ce
call fcn.00413f6c
mov dword [eax], 0x22
call fcn.00413e80
mov eax, 0x22
jmp 0x4098db
push ecx
push ebx
push edx
call fcn.0040df10
add esp, 0xc
xor eax, eax
push eax
call fcn.004012c0
mov ecx, dword [ebp - 0x44]
add esp, 4
test ecx, ecx
js 0x409aba
mov edx, dword [ebp - 0x60]
mov eax, dword [edx]
cmp ecx, dword [eax - 8]
jg 0x409aba
mov dword [eax - 0xc], ecx
xor ebx, ebx
mov eax, dword [edx]
mov word [eax + ecx*2], bx
mov edx, dword [edx]
mov dword [ebp - 0x20], edx
mov ebx, dword [ebp - 0x38]
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x48]
mov ecx, ebx
push eax
lea eax, [ebp - 0x4c]
push eax
push edx
call fcn.00409f70
test eax, eax
jne 0x409950
cmp dword [ebx], eax
jne 0x409940
push 1
push dword [ebx + 8]
mov ecx, ebx
call fcn.00404dc0
test al, al
je 0x409aec
push dword [ebp - 0x48]
mov ecx, ebx
push dword [ebp - 0x4c]
push dword [ebp - 0x20]
call fcn.0040a050
mov edx, dword [ebp - 0x2c]
add eax, 4
mov dword [ebp - 0x20], eax
mov edx, dword [edx]
mov ebx, dword [eax]
sub ebx, 0x10
lea ecx, [edx - 0x10]
cmp ecx, ebx
je 0x4099ad
cmp dword [ebx + 0xc], 0
jl 0x4099a2
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x40999f
call fcn.00404490
mov dword [ebp - 0x44], eax
or ecx, 0xffffffff
lea eax, [ebx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x409992
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x44]
add eax, 0x10
mov dword [ecx], eax
jmp 0x4099ad
mov eax, dword [ebp - 0x20]
push dword [edx - 0xc]
mov ecx, eax
push edx
call fcn.00404550
mov dword [ebp - 4], 0xd
mov ebx, dword [ebp - 0x10]
test bl, 2
je 0x4099e1
and ebx, 0xfffffffd
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 0xd
lea edx, [edi - 0x10]
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4099e1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 3
test bl, 1
je 0x409a0f
and ebx, 0xfffffffe
mov dword [ebp - 0x10], ebx
mov byte [ebp - 4], 3
lea edx, [esi - 0x10]
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x409a0f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov ebx, dword [ebp - 0x60]
mov edi, dword [ebp - 0x30]
nop dword [eax]
mov dword [ebp - 0x44], ebx
mov byte [ebp - 4], 2
or eax, 0xffffffff
mov edx, dword [ebx]
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x409a41
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add ebx, 4
sub edi, 1
jne 0x409a20
push dword [ebp - 0x60]
mov edi, dword [ebp - 0x14]
call fcn.00413f7f
add esp, 4
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x34], eax
cmp eax, dword [ebp - 0x18]
jl 0x409600
mov edi, dword [ebp - 0x38]
mov byte [ebp - 4], 0
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80004005
push 0xcd
mov edx, str.ATL::CSimpleStringT_wchar_t_0_::CSimpleStringT
mov ecx, str.c:program_files__x86_microsoft_visual_studio2017_buildtools_vc_toolsmsvc14.16.27023_atlmfcinclude_atlsimpstr.h
call fcn.00405890
call fcn.004048c0
push 0x80070057
push 0x368
mov edx, str.ATL::CSimpleStringT_wchar_t_0_::SetLength
mov ecx, str.c:program_files__x86_microsoft_visual_studio2017_buildtools_vc_toolsmsvc14.16.27023_atlmfcinclude_atlsimpstr.h
call fcn.00405890
push 0x80070057
push 0x325
mov edx, str.ATL::CSimpleStringT_wchar_t_0_::PrepareWrite
mov ecx, str.c:program_files__x86_microsoft_visual_studio2017_buildtools_vc_toolsmsvc14.16.27023_atlmfcinclude_atlsimpstr.h
call fcn.00405890
push 0x8007000e
push 0x99b
mov edx, str.ATL::CAtlMap_class_ATL::CStringT_wchar_t_class_ATL::StrTraitATL_wchar_t_class_ATL::ChTraitsCRT_wchar_t______class_ATL::CStringT_wchar_t_class_ATL::StrTraitATL_wchar_t_class_ATL::ChTraitsCRT_wchar_t______class_ATL::CElementTraits_class_ATL::CStringT_wchar_t_class_ATL::StrTraitATL_wchar_t_class_ATL::ChTraitsCRT_wchar_t________class_ATL::CElementTraits_class_ATL::CStringT_wchar_t_class_ATL::StrTraitATL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_________::CreateNode
mov ecx, str.c:program_files__x86_microsoft_visual_studio2017_buildtools_vc_toolsmsvc14.16.27023_atlmfcinclude_atlcoll.h
call fcn.00405890
int3