Function at 0x40a520
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43bf12
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x450440]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0x11
mov dword [eax + 0x20], 0
mov dword [eax + 0x24], 0xa
mov dword [eax + 0x28], 0
mov dword [eax + 0x2c], 0
mov dword [eax + 0xc], 0x3f400000
mov dword [eax + 0x10], 0x3e800000
mov dword [eax + 0x14], 0x40100000
mov dword [eax + 0x18], 0x26
mov dword [eax + 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.0040e8c0
add esp, 0x10
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ecx, eax
mov dword [ebp - 0x24], ecx
mov byte [ebp - 4], 2
xor eax, eax
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x20], eax
jle 0x40a8be
mov edi, dword [ebp - 0x28]
mov esi, dword [ebp - 0x1c]
lea ebx, [ebx]
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov byte [ebp - 4], 3
lea edx, [ebp - 0x54]
mov ecx, dword [ecx + eax*4]
push edx
call fcn.0040acc0
add esp, 4
test eax, eax
jne 0x40a685
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x54]
test ecx, ecx
je 0x40a8ab
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x40a67f
mov ebx, ecx
mov esi, eax
mov dword [ebp - 0x30], ebx
mov byte [ebp - 4], 2
or ecx, 0xffffffff
mov edx, dword [ebx]
sub edx, 0x10
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40a673
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add ebx, 4
dec esi
jne 0x40a650
mov esi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x54]
push ecx
jmp 0x40a8a3
cmp dword [ebp - 0x50], 0
jbe 0x40a920
mov ebx, dword [ebp - 0x54]
lea eax, [ebp - 0x38]
push 2
push eax
mov ecx, ebx
call fcn.0040b5d0
mov byte [ebp - 4], 5
mov ecx, 0x448f64
mov eax, dword [eax]
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40a6d6
test dx, dx
je 0x40a6d2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40a6d6
add eax, 4
add ecx, 4
test dx, dx
jne 0x40a6b0
xor eax, eax
jmp 0x40a6db
sbb eax, eax
or eax, 1
test eax, eax
setne byte [ebp - 0xd]
mov byte [ebp - 4], 3
or ecx, 0xffffffff
mov edx, dword [ebp - 0x38]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40a702
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0xd], 0
je 0x40a711
mov byte [ebp - 4], 2
jmp 0x40a894
cmp dword [ebp - 0x50], 1
jbe 0x40a73c
mov ecx, dword [ebx + 4]
sub ecx, 0x10
call fcn.00405ab0
lea edi, [eax + 0x10]
mov dword [ebp - 0x28], edi
mov byte [ebp - 4], 3
lea eax, [ebp - 0x28]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 8
or dword [ebp - 0x14], 1
jmp 0x40a775
call fcn.004015c0
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40a907
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 8
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 0xa
or dword [ebp - 0x14], 2
push ecx
mov ecx, ebx
call fcn.0040abd0
mov ecx, dword [ebp - 0x18]
mov ebx, dword [eax]
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x40]
push eax
push ebx
call fcn.0040b170
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x40a7cb
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0
jne 0x40a7ba
push 1
push dword [eax + 8]
mov ecx, eax
call fcn.00406620
test al, al
je 0x40a8ee
mov eax, dword [ebp - 0x18]
push dword [ebp - 0x3c]
mov ecx, eax
push dword [ebp - 0x40]
push ebx
call fcn.0040b270
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x2c]
lea ecx, [eax + 4]
mov ebx, dword [ecx]
sub ebx, 0x10
mov edx, dword [edx]
lea eax, [edx - 0x10]
mov dword [ebp - 0x2c], eax
cmp eax, ebx
je 0x40a827
cmp dword [ebx + 0xc], 0
jl 0x40a81e
mov eax, dword [eax]
cmp eax, dword [ebx]
jne 0x40a81e
mov ecx, dword [ebp - 0x2c]
call fcn.00405ab0
mov dword [ebp - 0x2c], eax
or ecx, 0xffffffff
lea eax, [ebx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40a810
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
add eax, 0x10
mov dword [ecx + 4], eax
jmp 0x40a827
push dword [edx - 0xc]
push edx
call fcn.00405940
mov dword [ebp - 4], 8
mov ebx, dword [ebp - 0x14]
test bl, 2
je 0x40a85d
and ebx, 0xfffffffd
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], 8
lea edx, [esi - 0x10]
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40a85d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 3
test bl, 1
je 0x40a88d
and ebx, 0xfffffffe
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 3
lea edx, [edi - 0x10]
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40a88d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov ebx, dword [ebp - 0x54]
test ebx, ebx
je 0x40a8ab
mov edx, dword [ebp - 0x50]
mov ecx, ebx
call fcn.00406530
push ebx
call fcn.0041fb10
add esp, 4
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x34], eax
cmp eax, dword [ebp - 0x20]
jl 0x40a600
mov byte [ebp - 4], 0
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
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 0x8007000e
push 0x9a3
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_FilesMicrosoft_Visual_Studio_12.0VC_atlmfcinclude_atlcoll.h
call fcn.004091e0
push 0x80004005
push 0xcd
mov edx, str.ATL::CSimpleStringT_wchar_t_0_::CSimpleStringT
mov ecx, str.C:Program_FilesMicrosoft_Visual_Studio_12.0VC_atlmfcinclude_atlsimpstr.h
call fcn.004091e0
push 0x80070057
push 0x30a
mov edx, str.ATL::CAtlArray_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_________::operator___
mov ecx, str.C:Program_FilesMicrosoft_Visual_Studio_12.0VC_atlmfcinclude_atlcoll.h
call fcn.004091e0
int3