Function at 0x406b20
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x411ee7
mov eax, dword fs:[0]
push eax
mov eax, 0x103c
call fcn.00411690
mov eax, dword [0x450028]
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 esi, edx
mov edx, dword [esi]
xor ebx, ebx
cmp edx, ebx
mov edi, ecx
mov dword [ebp - 0x1038], edi
mov dword [ebp - 0x18], ebx
lea eax, [ebp - 0x1018]
jne 0x406b72
mov edx, 0x415c5c
call fcn.00408730
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x1018]
mov edx, ecx
push edx
push 0x415bd8
mov dword [ebp - 0x1044], ecx
push 0x415c34
push 0x415bc0
mov ecx, 5
mov word [ebp + eax*2 - 0x1018], bx
mov dword [ebp - 0x1048], 0x415bd8
mov dword [ebp - 0x1040], 0x415bc0
call fcn.00406a00
add esp, 0x10
call dword [sym.imp.bdlog.dll_GetLogController]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x20]
call eax
mov dword [ebp - 4], ebx
mov eax, dword [esi]
sub eax, 0x10
call fcn.004058b0
add eax, 0x10
mov dword [ebp - 0x1020], eax
lea ebx, [ebp - 0x1020]
mov byte [ebp - 4], 1
call fcn.00405300
mov ebx, eax
call fcn.00405390
mov eax, dword [ebp - 0x1020]
xor ebx, ebx
cmp dword [eax - 0xc], ebx
jne 0x406c21
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x406e91
lea edx, [ebp - 0x1024]
push edx
push eax
mov dword [ebp - 0x1024], ebx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ecx, dword [eax]
cmp ecx, ebx
mov dword [ebp - 0x103c], eax
lea esi, [edi + 0x210]
jne 0x406c4b
xor eax, eax
jmp 0x406c65
mov eax, ecx
lea edi, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x406c50
sub eax, edi
mov edi, dword [ebp - 0x1038]
sar eax, 1
push ecx
push esi
mov ebx, eax
call fcn.00405800
mov ebx, esi
call fcn.00405300
mov ebx, eax
call fcn.00405390
mov esi, 1
cmp dword [ebp - 0x1024], esi
mov dword [ebp - 0x1034], esi
mov dword [ebp - 0x1030], esi
jle 0x406e64
mov edx, dword [ebp - 0x1030]
mov ecx, dword [ebp - 0x103c]
mov ecx, dword [ecx + edx*4]
lea eax, [ebp - 0x101c]
push eax
call fcn.00404ac0
lea ebx, [ebp - 0x101c]
mov byte [ebp - 4], 2
call fcn.00405300
mov ebx, eax
call fcn.00405390
cmp dword [ebp - 0x1034], 0
jne 0x406ce9
lea esi, [edi + 0x220]
lea ebx, [ebp - 0x101c]
call fcn.00407680
jmp 0x406e1e
mov esi, dword [ebp - 0x101c]
mov ecx, 0x415bb8
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x406d1c
test dx, dx
je 0x406d18
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x406d1c
add eax, 4
add ecx, 4
test dx, dx
jne 0x406cf6
xor eax, eax
jmp 0x406d21
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
je 0x406d40
mov dword [ebp - 0x1034], 0
mov byte [ebp - 4], 1
lea eax, [esi - 0x10]
jmp 0x406e2b
mov edx, dword [0x455ebc]
mov eax, dword [edx + 0xc]
mov ecx, 0x455ebc
call eax
add eax, 0x10
mov dword [ebp - 0x102c], eax
mov byte [ebp - 4], 3
mov edx, dword [0x455ebc]
mov eax, dword [edx + 0xc]
mov ecx, 0x455ebc
call eax
add eax, 0x10
mov dword [ebp - 0x1028], eax
lea ecx, [ebp - 0x1028]
push ecx
lea edx, [ebp - 0x102c]
push edx
lea ebx, [ebp - 0x101c]
mov byte [ebp - 4], 4
call fcn.00406f00
add esp, 8
test eax, eax
je 0x406dc1
lea eax, [ebp - 0x102c]
push eax
lea ecx, [edi + 0x214]
call fcn.00407550
mov edi, eax
lea eax, [ebp - 0x1028]
call fcn.00405430
mov edi, dword [ebp - 0x1038]
jmp 0x406dd2
lea esi, [edi + 0x220]
lea ebx, [ebp - 0x101c]
call fcn.00407680
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1028]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406df8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x102c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406e1e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x101c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406e44
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x1030]
add eax, 1
cmp eax, dword [ebp - 0x1024]
mov dword [ebp - 0x1030], eax
jl 0x406c99
mov esi, 1
mov ecx, dword [ebp - 0x103c]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x1020]
add eax, 0xfffffff0
mov dword [edi + 0x20c], esi
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406e9d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.bdlog.dll_GetLogController]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x24]
call eax
lea ecx, [ebp - 0x1018]
push ecx
push 0x415bd8
push 0x415c48
push 0x415bc0
mov ecx, 5
call fcn.00406a00
add esp, 0x10
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.00410b3e
mov esp, ebp
pop ebp
ret