Function at 0x40ec30
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ef84e
mov eax, dword fs:[0]
push eax
sub esp, 0x230
push ebx
push esi
push edi
mov eax, dword [0x528c24]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], ecx
call fcn.0040e460
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040e6b0
mov eax, dword [ebp - 0x1c]
cmp dword [eax - 0xc], 0
mov dword [ebp - 4], 0
je 0x40efed
lea ecx, [ebp - 0x238]
push eax
mov edi, eax
mov dword [ebp - 0x23c], ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
push 0x80
lea edx, [ebp - 0x238]
push edx
inc esi
lea eax, [ebp - 0x23c]
push esi
push eax
call fcn.0040d0c0
mov ecx, dword [ebp - 0x23c]
lea eax, [esi + esi]
push eax
push edi
push eax
push ecx
call fcn.0048da4a
push eax
call fcn.0040cc20
add esp, 0x24
mov edx, dword [ebp - 0x23c]
push edx
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0040e6b0
mov eax, dword [ebp - 0x23c]
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 3
cmp eax, ecx
je 0x40ecff
push eax
call fcn.0048ea69
add esp, 4
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x20]
push edx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
mov dword [ebp - 0x28], esi
test esi, esi
je 0x40efc7
mov edx, dword [0x52b83c]
mov eax, dword [edx + 0xc]
mov ecx, 0x52b83c
call eax
lea ebx, [eax + 0x10]
mov dword [ebp - 0x18], ebx
mov edx, dword [0x52b83c]
mov eax, dword [edx + 0xc]
mov ecx, 0x52b83c
mov byte [ebp - 4], 4
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x10], edi
mov eax, 1
cmp dword [ebp - 0x20], eax
mov byte [ebp - 4], 5
mov dword [ebp - 0x24], eax
jle 0x40ef1e
nop
mov edi, dword [esi + eax*4]
lea ecx, [ebp - 0x134]
mov dword [ebp - 0x138], ecx
test edi, edi
jne 0x40ed7b
mov dword [ebp - 0x138], edi
jmp 0x40edb9
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
push 0x80
lea edx, [ebp - 0x134]
push edx
inc esi
lea eax, [ebp - 0x138]
push esi
push eax
call fcn.0040d0c0
mov ecx, dword [ebp - 0x138]
lea eax, [esi + esi]
push eax
push edi
push eax
push ecx
call fcn.0048da4a
push eax
call fcn.0040cc20
add esp, 0x24
mov edx, dword [ebp - 0x138]
push edx
lea ecx, [ebp + 8]
mov byte [ebp - 4], 6
call fcn.0040e6b0
mov eax, dword [ebp - 0x138]
lea ecx, [ebp - 0x134]
mov byte [ebp - 4], 8
cmp eax, ecx
je 0x40ede9
push eax
call fcn.0048ea69
add esp, 4
mov edx, dword [ebp + 8]
push 0x4fdcb0
push edx
call fcn.0048e78a
add esp, 8
test eax, eax
je 0x40ee97
sub eax, dword [ebp + 8]
sar eax, 1
mov esi, eax
cmp esi, 0xffffffff
je 0x40ee97
push esi
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp + 8]
call fcn.0040db70
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 9
call fcn.0040c3d0
mov eax, dword [ebp - 0x34]
add eax, 0xfffffff0
mov byte [ebp - 4], 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ee4f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp + 8]
mov eax, dword [ecx - 0xc]
sub eax, esi
dec eax
push eax
lea edx, [ebp - 0x2c]
push edx
lea ecx, [ebp + 8]
call fcn.0040dae0
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0xa
call fcn.0040c3d0
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
mov byte [ebp - 4], 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40eeb2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40eeb2
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 0x18]
call fcn.0040c3d0
push 0
push 0x5124f8
lea ecx, [ebp - 0x10]
call fcn.0040c210
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x30]
push ebx
call fcn.0040eb70
mov edi, dword [ebp - 0x10]
test edi, edi
jne 0x40eec9
xor edx, edx
jmp 0x40eedf
mov edx, edi
lea ecx, [edx + 2]
mov edi, edi
mov si, word [edx]
add edx, 2
test si, si
jne 0x40eed0
sub edx, ecx
sar edx, 1
push edx
push edi
mov ecx, eax
call fcn.0040c210
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov byte [ebp - 4], 5
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40ef0b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x24]
mov esi, dword [ebp - 0x28]
inc eax
cmp eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
jl 0x40ed60
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [edi - 0x10]
mov byte [ebp - 4], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ef45
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ef65
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ef88
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40efae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
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
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40efea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [ebp - 4], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f00c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
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