Function at 0x40129e
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41bd91
mov eax, dword fs:[0]
push eax
mov eax, 0x1040
call fcn.00416a00
mov eax, dword [0x439034]
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 eax, dword [ebp + 8]
and dword [ebp - 0x18], 0
mov edi, ecx
mov dword [ebp - 0x1020], eax
mov eax, dword [edi]
test eax, eax
jne 0x4012f7
mov eax, str._null_
lea edx, [ebp - 0x1018]
call fcn.00409c6a
jmp 0x401303
push eax
lea esi, [ebp - 0x1018]
call fcn.00409c44
mov eax, dword [ebp - 0x18]
and word [ebp + eax*2 - 0x1018], 0
lea eax, [ebp - 0x1018]
push eax
mov ebx, str.base::CommandLine::ParseFromString
push ebx
mov esi, str.function_
push str._s__s__
push esi
push 5
mov dword [ebp - 0x1048], ebx
mov dword [ebp - 0x1044], eax
mov dword [ebp - 0x1040], esi
call fcn.0040a382
add esp, 0x14
call dword [sym.imp.bdcommon.dll_GetLogController]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x20]
and dword [ebp - 4], 0
mov eax, dword [edi]
sub eax, 0x10
call fcn.00408989
add eax, 0x10
mov dword [ebp - 0x1024], eax
lea eax, [ebp - 0x1024]
mov byte [ebp - 4], 1
call fcn.00407c93
mov edi, dword [ebp - 0x1024]
cmp dword [edi - 0xc], 0
je 0x40156b
and dword [ebp - 0x1034], 0
lea eax, [ebp - 0x1034]
push eax
push edi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ecx, dword [ebp - 0x1020]
push dword [eax]
add ecx, 0x210
push ecx
mov dword [ebp - 0x1038], eax
call fcn.00407bc1
mov eax, dword [ebp - 0x1020]
add eax, 0x210
call fcn.00407c93
xor eax, eax
inc eax
cmp dword [ebp - 0x1034], eax
mov dword [ebp - 0x103c], eax
mov dword [ebp - 0x1028], eax
jle 0x40154f
mov eax, dword [ebp - 0x1038]
mov ecx, dword [ebp - 0x1028]
push dword [eax + ecx*4]
lea eax, [ebp - 0x101c]
push eax
call fcn.00407af6
lea eax, [ebp - 0x101c]
mov byte [ebp - 4], 2
call fcn.00407c93
cmp dword [ebp - 0x103c], 0
lea eax, [ebp - 0x101c]
jne 0x401442
mov edi, dword [ebp - 0x1020]
push eax
add edi, 0x220
call fcn.0040806e
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x101c]
add eax, 0xfffffff0
call fcn.00409f6e
jmp 0x401531
push 0x41edcc
push eax
call fcn.00407c10
test eax, eax
jne 0x40146e
and dword [ebp - 0x103c], eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x101c]
add eax, 0xfffffff0
call fcn.00409f6e
jmp 0x401537
mov eax, dword [0x43a4ec]
mov edi, 0x43a4ec
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x102c], eax
mov byte [ebp - 4], 3
mov eax, dword [0x43a4ec]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1030], eax
lea eax, [ebp - 0x1030]
push eax
lea eax, [ebp - 0x102c]
push eax
lea ebx, [ebp - 0x101c]
mov byte [ebp - 4], 4
call fcn.004015b8
test eax, eax
pop ecx
pop ecx
je 0x4014e6
mov eax, dword [ebp - 0x1020]
add eax, 0x214
push eax
lea ecx, [ebp - 0x102c]
call fcn.00407f5e
mov edi, eax
lea eax, [ebp - 0x1030]
call fcn.00407b80
jmp 0x4014fe
mov edi, dword [ebp - 0x1020]
lea eax, [ebp - 0x101c]
push eax
add edi, 0x220
call fcn.0040806e
mov eax, dword [ebp - 0x1030]
add eax, 0xfffffff0
call fcn.00409f6e
mov eax, dword [ebp - 0x102c]
add eax, 0xfffffff0
call fcn.00409f6e
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x101c]
add eax, 0xfffffff0
call fcn.00409f6e
mov ebx, str.base::CommandLine::ParseFromString
mov edi, dword [ebp - 0x1024]
inc dword [ebp - 0x1028]
mov eax, dword [ebp - 0x1028]
cmp eax, dword [ebp - 0x1034]
jl 0x4013e0
push dword [ebp - 0x1038]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x1020]
mov dword [eax + 0x20c], 1
lea eax, [edi - 0x10]
call fcn.00409f6e
or dword [ebp - 4], 0xffffffff
call dword [sym.imp.bdcommon.dll_GetLogController]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x24]
lea eax, [ebp - 0x1018]
push eax
push ebx
push str.__s__s_
push esi
push 5
call fcn.0040a382
add esp, 0x14
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.0040aab8
leave
ret 4