Function at 0x407d50
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4132b8
mov eax, dword fs:[0]
push eax
mov eax, 0x1030
call fcn.00412860
push ebx
push esi
push edi
mov eax, dword [0x451028]
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 0x407d97
mov edx, str._null_
call fcn.00409890
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.00407680
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.00406560
add eax, 0x10
mov dword [ebp - 0x14], eax
lea ebx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00405f90
mov ebx, eax
call fcn.00406020
mov eax, dword [ebp - 0x14]
xor ebx, ebx
cmp dword [eax - 0xc], ebx
jne 0x407e24
mov byte [ebp - 4], bl
jmp 0x40804b
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 0x407e48
xor eax, eax
jmp 0x407e5f
mov eax, ecx
lea edi, [eax + 2]
lea ecx, [ecx]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x407e50
sub eax, edi
sar eax, 1
push ecx
push esi
mov ebx, eax
call fcn.004064b0
mov ebx, esi
call fcn.00405f90
mov ebx, eax
call fcn.00406020
mov edi, 1
cmp dword [ebp - 0x18], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x2c], edi
jle 0x408031
mov ecx, dword [ebp - 0x28]
mov ecx, dword [ecx + edi*4]
lea eax, [ebp - 0x10]
push eax
call fcn.00405850
lea ebx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00405f90
mov ebx, eax
call fcn.00406020
cmp dword [ebp - 0x24], 0
jne 0x407edf
mov esi, dword [ebp + 8]
add esi, 0x220
lea ebx, [ebp - 0x10]
call fcn.004087e0
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 0x408011
mov esi, dword [ebp - 0x10]
mov ecx, 0x416db8
mov eax, esi
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x407f16
test dx, dx
je 0x407f12
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x407f16
add eax, 4
add ecx, 4
test dx, dx
jne 0x407ef0
xor eax, eax
jmp 0x407f1b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
je 0x407f37
mov dword [ebp - 0x24], 0
mov byte [ebp - 4], 1
lea eax, [esi - 0x10]
jmp 0x408004
mov edx, dword [0x456eec]
mov eax, dword [edx + 0xc]
mov ecx, 0x456eec
call eax
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 3
mov edx, dword [0x456eec]
mov eax, dword [edx + 0xc]
mov ecx, 0x456eec
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.004080c0
add esp, 8
test eax, eax
je 0x407fa3
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
add ecx, 0x214
call fcn.004086b0
mov edi, eax
lea eax, [ebp - 0x20]
call fcn.004060e0
mov edi, dword [ebp - 0x2c]
jmp 0x407fb4
mov esi, dword [ebp + 8]
add esi, 0x220
lea ebx, [ebp - 0x10]
call fcn.004087e0
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 0x407fd7
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 0x407ffa
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 0x40801d
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 0x407e8a
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 0x408067
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.00407680
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