Function at 0x405f20
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x410b58
mov eax, dword fs:[0]
push eax
mov eax, 0x1030
call fcn.00410390
push ebx
push esi
push edi
mov eax, dword [0x44f028]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edx, dword [esi]
xor edi, edi
cmp edx, edi
mov dword [ebp - 0x3c], edi
lea eax, [ebp - 0x103c]
jne 0x405f67
mov edx, str._null_
call fcn.004079b0
mov eax, dword [ebp - 0x3c]
lea ecx, [ebp - 0x103c]
mov edx, ecx
push edx
push str.base::CommandLine::ParseFromString
mov dword [ebp - 0x34], ecx
push str._s__s__
push str.function_
mov ecx, 5
mov word [ebp + eax*2 - 0x103c], di
mov dword [ebp - 0x38], str.base::CommandLine::ParseFromString
mov dword [ebp - 0x30], str.function_
call fcn.00405e50
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], edi
mov eax, dword [esi]
sub eax, 0x10
call fcn.00405070
add eax, 0x10
mov dword [ebp - 0x14], eax
lea ebx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00404b70
mov ebx, eax
call fcn.00404c00
mov eax, dword [ebp - 0x14]
xor ebx, ebx
cmp dword [eax - 0xc], ebx
jne 0x405ff4
mov byte [ebp - 4], bl
jmp 0x40621b
lea edx, [ebp - 0x18]
push edx
push eax
mov dword [ebp - 0x18], ebx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, dword [ebp + 8]
mov ecx, dword [eax]
add esi, 0x210
cmp ecx, ebx
mov dword [ebp - 0x28], eax
jne 0x406018
xor eax, eax
jmp 0x40602f
mov eax, ecx
lea edi, [eax + 2]
lea ecx, [ecx]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x406020
sub eax, edi
sar eax, 1
push ecx
push esi
mov ebx, eax
call fcn.00404fd0
mov ebx, esi
call fcn.00404b70
mov ebx, eax
call fcn.00404c00
mov edi, 1
cmp dword [ebp - 0x18], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x2c], edi
jle 0x406201
mov ecx, dword [ebp - 0x28]
mov ecx, dword [ecx + edi*4]
lea eax, [ebp - 0x10]
push eax
call fcn.00404400
lea ebx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00404b70
mov ebx, eax
call fcn.00404c00
cmp dword [ebp - 0x24], 0
jne 0x4060af
mov esi, dword [ebp + 8]
add esi, 0x220
lea ebx, [ebp - 0x10]
call fcn.00406960
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x4061e1
mov esi, dword [ebp - 0x10]
mov ecx, 0x4146d8
mov eax, esi
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4060e6
test dx, dx
je 0x4060e2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4060e6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4060c0
xor eax, eax
jmp 0x4060eb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
je 0x406107
mov dword [ebp - 0x24], 0
mov byte [ebp - 4], 1
lea eax, [esi - 0x10]
jmp 0x4061d4
mov edx, dword [0x454e70]
mov eax, dword [edx + 0xc]
mov ecx, 0x454e70
call eax
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 3
mov edx, dword [0x454e70]
mov eax, dword [edx + 0xc]
mov ecx, 0x454e70
call eax
add eax, 0x10
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x1c]
push edx
lea ebx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.00406290
add esp, 8
test eax, eax
je 0x406173
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
add ecx, 0x214
call fcn.00406830
mov edi, eax
lea eax, [ebp - 0x20]
call fcn.00404d50
mov edi, dword [ebp - 0x2c]
jmp 0x406184
mov esi, dword [ebp + 8]
add esi, 0x220
lea ebx, [ebp - 0x10]
call fcn.00406960
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4061a7
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 - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4061ca
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 - 0x10]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4061ed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add edi, 1
cmp edi, dword [ebp - 0x18]
mov dword [ebp - 0x2c], edi
jl 0x40605a
mov edi, 1
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [ebp + 8]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
mov dword [edx + 0x20c], edi
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406237
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 - 0x103c]
push ecx
push str.base::CommandLine::ParseFromString
push str.__s__s_
push str.function_
mov ecx, 5
call fcn.00405e50
add esp, 0x10
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