Function at 0x407070
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41d7c1
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x431f1c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x2c], edi
mov eax, dword [ebp + 8]
lea ecx, [eax + 0x10]
mov dword [ebp - 0x54], 0
cmp dword [ecx], 0
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], ecx
je 0x4074e6
xor ecx, ecx
mov dword [ebp - 4], 0
xor ebx, ebx
mov dword [ebp - 0x34], ecx
xor esi, esi
mov dword [ebp - 0x40], ecx
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x30], ecx
mov ecx, eax
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x54], 1
jb 0x4070e9
mov ecx, dword [eax]
lea eax, [ebp - 0x30]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x38], eax
test eax, eax
je 0x40720d
xor edi, edi
cmp dword [ebp - 0x30], ebx
jle 0x407203
xor ebx, ebx
lea esp, [esp]
mov edx, dword [eax + edi*4]
test edx, edx
je 0x4071f6
mov ecx, edx
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea eax, [ecx + 2]
mov dword [ebp - 0x3c], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407137
sub ecx, dword [ebp - 0x3c]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00402690
mov byte [ebp - 4], 1
cmp esi, ebx
je 0x40719d
mov eax, dword [ebp - 0x28]
mov edx, 7
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi], eax
mov eax, dword [ebp - 0x24]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x20]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x14], eax
xor eax, eax
add esi, 0x18
mov word [ebp - 0x28], ax
mov dword [ebp - 0x44], esi
jmp 0x4071b8
lea eax, [ebp - 0x28]
push eax
push esi
lea ecx, [ebp - 0x48]
call fcn.004039a0
mov eax, dword [ebp - 0x40]
mov ebx, eax
mov esi, dword [ebp - 0x44]
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x4071f3
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4071e9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40750b
push edx
push ecx
call fcn.0040cf06
add esp, 8
mov eax, dword [ebp - 0x38]
inc edi
cmp edi, dword [ebp - 0x30]
jl 0x407110
mov ebx, dword [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x48]
cmp edi, eax
je 0x40722d
mov ecx, edi
call fcn.004077d0
mov eax, dword [ebp - 0x34]
mov dword [edi], ebx
xor ebx, ebx
mov dword [edi + 4], esi
xor esi, esi
mov dword [edi + 8], eax
mov dword [ebp - 0x34], ebx
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x40728a
lea eax, [ebp - 0x48]
push eax
push esi
push ebx
call fcn.00401410
mov ecx, dword [ebp - 0x34]
mov eax, 0x2aaaaaab
sub ecx, ebx
add esp, 0xc
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, ebx
shl ecx, 3
cmp ecx, 0x1000
jb 0x407280
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40750b
push ecx
push ebx
call fcn.0040cf06
add esp, 8
mov eax, dword [edi + 4]
mov ecx, eax
mov esi, dword [edi]
sub ecx, esi
mov dword [ebp - 0x38], eax
mov eax, 0x2aaaaaab
imul ecx
mov dword [ebp - 0x30], esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
jb 0x4074e6
mov eax, dword [ebp - 0x38]
xor ebx, ebx
mov dword [edi + 0x24], 0
mov edx, eax
mov edi, esi
xor esi, esi
cmp dword [ebp + 0xc], ebx
je 0x40731e
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x3c], eax
mov eax, edi
push eax
call fcn.00406c20
test eax, eax
jne 0x40731b
mov eax, dword [ebp - 0x2c]
mov ebx, 1
mov edx, dword [ebp - 0x38]
mov esi, ebx
lea ecx, [eax + 0xc]
mov dword [eax + 0x24], 1
mov eax, edi
cmp ecx, eax
je 0x40731e
cmp dword [eax + 0x14], 8
mov edx, eax
jb 0x407303
mov edx, dword [eax]
push dword [eax + 0x10]
push edx
call fcn.00402690
mov ecx, dword [ebp - 0x2c]
mov ebx, dword [ecx + 0x24]
mov esi, ebx
mov edx, dword [ecx + 4]
mov edi, dword [ecx]
jmp 0x40731e
mov edx, dword [ebp - 0x3c]
sub edx, edi
mov eax, 0x2aaaaaab
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jae 0x407388
lea eax, [ebx + ebx*2]
cmp dword [edi + eax*8 + 0x10], 2
lea eax, [edi + eax*8]
jb 0x407388
mov edx, dword [eax + 0x14]
mov ecx, eax
cmp edx, 8
jb 0x40734e
mov ecx, dword [eax]
cmp word [ecx], 0x2f
je 0x407363
mov ecx, eax
cmp edx, 8
jb 0x40735d
mov ecx, dword [eax]
cmp word [ecx], 0x2d
jne 0x407388
mov ecx, dword [ebp - 0x2c]
push eax
call fcn.00406c60
mov ecx, dword [ebp - 0x2c]
mov eax, 0x2aaaaaab
mov esi, dword [ecx + 0x24]
inc esi
mov dword [ecx + 0x24], esi
mov ebx, esi
mov edi, dword [ecx]
mov ecx, dword [ecx + 4]
sub ecx, edi
imul ecx
jmp 0x407327
test esi, esi
jne 0x4073ba
mov ecx, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x4c]
add ecx, 0x30
cmp ecx, edi
je 0x4074df
cmp dword [edi + 0x14], 8
jb 0x4073a5
mov edi, dword [edi]
mov esi, dword [ebp - 0x50]
push dword [esi]
push edi
call fcn.00402690
mov eax, 1
jmp 0x4074e8
lea eax, [esi + esi*2]
cmp dword [edi + eax*8 - 4], 8
lea ebx, [edi + eax*8]
lea edx, [ebx - 0x18]
jb 0x4073cd
mov edx, dword [ebx - 0x18]
mov edi, dword [ebp - 0x4c]
mov ecx, edi
cmp dword [edi + 0x14], 8
jb 0x4073da
mov ecx, dword [edi]
push dword [ebx - 8]
mov esi, dword [ebp - 0x50]
push edx
push 0
mov esi, dword [esi]
push esi
push ecx
call fcn.00405ba0
inc eax
add esp, 0x14
add eax, dword [ebx - 8]
cmp eax, esi
ja 0x4074df
sub esi, eax
mov dword [ebp - 0x14], 7
xor ecx, ecx
or ebx, 0xffffffff
cmp esi, 0xffffffff
mov word [ebp - 0x28], cx
cmovb ebx, esi
cmp dword [edi + 0x14], 8
jb 0x40741b
mov edi, dword [edi]
lea eax, [edi + eax*2]
mov dword [ebp - 0x3c], eax
cmp ebx, 7
ja 0x407443
lea esi, [ebx + ebx]
mov dword [ebp - 0x18], ebx
push esi
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0040eb50
add esp, 0xc
xor eax, eax
mov word [ebp + esi - 0x28], ax
jmp 0x40749a
cmp ebx, 0x7ffffffe
ja 0x407506
mov esi, ebx
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x407463
mov esi, 0x7ffffffe
jmp 0x40746d
mov eax, 0xa
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x28]
call fcn.004024b0
mov dword [ebp - 0x14], esi
mov edi, eax
lea esi, [ebx + ebx]
mov dword [ebp - 0x18], ebx
push esi
push dword [ebp - 0x3c]
push edi
call fcn.0040e5d0
add esp, 0xc
mov dword [ebp - 0x28], edi
xor eax, eax
mov word [edi + esi], ax
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
push eax
lea ecx, [ecx + 0x30]
call fcn.00401bb0
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4074df
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4074d5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40750b
push edx
push ecx
call fcn.0040cf06
add esp, 8
mov eax, 1
jmp 0x4074e8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040d173
mov esp, ebp
pop ebp
ret 8
call fcn.00402480
call fcn.00410b2a
int3