Function at 0x401226
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41927b
mov eax, dword fs:[0]
push eax
mov eax, 0x1048
call fcn.00413390
mov eax, dword [0x426084]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
and dword [ebp - 0x14], 0
mov edi, ecx
mov edx, dword [edi]
lea esi, [ebp - 0x1014]
test edx, edx
jne 0x40126e
mov edx, str._null_
call fcn.004088b2
mov ecx, dword [ebp - 0x14]
xor eax, eax
mov word [ebp + ecx*2 - 0x1014], ax
lea ecx, [ebp - 0x1014]
push ecx
mov esi, str.base::CommandLine::ParseFromString
lea eax, [ebp - 0x1014]
push esi
mov dword [ebp - 0x1050], eax
mov eax, str.function_
push str._s__s__
push eax
push 5
mov dword [ebp - 0x1054], esi
mov dword [ebp - 0x104c], eax
call fcn.00408f0a
add esp, 0x14
call dword [sym.imp.bdcommon.dll_GetLogController]
test eax, eax
je 0x4012cb
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.00407e32
add eax, 0x10
mov dword [ebp - 0x102c], eax
lea eax, [ebp - 0x102c]
mov byte [ebp - 4], 1
call fcn.00407337
mov edi, dword [ebp - 0x102c]
cmp dword [edi - 0xc], 0
jne 0x401327
lea eax, [edi - 0x10]
call fcn.00408965
or dword [ebp - 4], 0xffffffff
call dword [sym.imp.bdcommon.dll_GetLogController]
test eax, eax
je 0x40131a
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x24]
lea eax, [ebp - 0x1014]
push eax
push esi
jmp 0x401529
and dword [ebp - 0x1030], 0
lea eax, [ebp - 0x1030]
push eax
push edi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
push dword [eax]
lea esi, [ebx + 0x210]
push esi
mov dword [ebp - 0x1038], eax
call fcn.0040723e
mov eax, esi
call fcn.00407337
xor esi, esi
inc esi
mov dword [ebp - 0x1034], esi
mov dword [ebp - 0x1028], esi
cmp dword [ebp - 0x1030], esi
jle 0x4014ee
mov ecx, dword [ebp - 0x1028]
lea eax, [ebp - 0x1018]
push eax
mov eax, dword [ebp - 0x1038]
mov edi, dword [eax + ecx*4]
call fcn.00407156
lea eax, [ebp - 0x1018]
mov byte [ebp - 4], 2
call fcn.00407337
cmp dword [ebp - 0x1034], 0
jne 0x4013bb
lea esi, [ebx + 0x224]
lea ecx, [ebp - 0x1018]
call fcn.004077a4
jmp 0x4014bb
mov edi, 0x41c420
push edi
lea eax, [ebp - 0x1018]
push eax
call fcn.0040728d
test eax, eax
jne 0x4013ee
and dword [ebp - 0x1034], eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1018]
add eax, 0xfffffff0
call fcn.00408965
jmp 0x4014d0
mov eax, dword [0x426040]
mov esi, 0x426040
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x101c], eax
mov byte [ebp - 4], 3
mov eax, dword [0x426040]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1024], eax
lea esi, [ebp - 0x101c]
mov byte [ebp - 4], 4
call fcn.00407613
lea esi, [ebp - 0x1024]
call fcn.00407613
lea eax, [ebp - 0x1020]
push eax
call fcn.00407156
mov byte [ebp - 4], 5
cmp dword [ebp - 0x1020], 0
je 0x40147c
mov eax, dword [ebp - 0x1018]
cmp dword [eax - 0xc], 0
jl 0x40147c
push dword [ebp - 0x1020]
push eax
call fcn.0040a2a1
pop ecx
pop ecx
test eax, eax
je 0x40147c
sub eax, dword [ebp - 0x1018]
sar eax, 1
je 0x401556
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x1020]
add eax, 0xfffffff0
call fcn.00408965
lea esi, [ebx + 0x224]
lea ecx, [ebp - 0x1018]
call fcn.004077a4
mov eax, dword [ebp - 0x1024]
add eax, 0xfffffff0
call fcn.00408965
mov eax, dword [ebp - 0x101c]
add eax, 0xfffffff0
call fcn.00408965
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1018]
add eax, 0xfffffff0
call fcn.00408965
xor esi, esi
inc esi
inc dword [ebp - 0x1028]
mov eax, dword [ebp - 0x1028]
cmp eax, dword [ebp - 0x1030]
jl 0x401372
mov edi, dword [ebp - 0x102c]
push dword [ebp - 0x1038]
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [edi - 0x10]
mov dword [ebx + 0x20c], esi
call fcn.00408965
or dword [ebp - 4], 0xffffffff
call dword [sym.imp.bdcommon.dll_GetLogController]
test eax, eax
je 0x40151d
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x24]
lea eax, [ebp - 0x1014]
push eax
push str.base::CommandLine::ParseFromString
push str.__s__s_
push str.function_
push 5
call fcn.00408f0a
add esp, 0x14
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040937a
leave
ret
mov eax, dword [ebp - 0x1020]
mov edi, dword [eax - 0xc]
push 0x41c41c
mov ecx, edi
lea esi, [ebp - 0x1018]
call fcn.004072db
mov esi, eax
mov edx, edi
cmp esi, 0xffffffff
jne 0x4015a7
lea eax, [ebp - 0x1044]
push eax
lea eax, [ebp - 0x1018]
call fcn.004073d8
lea edi, [ebp - 0x101c]
mov byte [ebp - 4], 6
call fcn.004071fd
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x1044]
jmp 0x40160c
lea eax, [ebp - 0x1040]
mov ecx, esi
push eax
sub ecx, edi
lea eax, [ebp - 0x1018]
call fcn.004073f6
lea edi, [ebp - 0x101c]
mov byte [ebp - 4], 7
call fcn.004071fd
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x1040]
add eax, 0xfffffff0
call fcn.00408965
lea eax, [ebp - 0x103c]
push eax
lea edx, [esi + 1]
lea eax, [ebp - 0x1018]
call fcn.004073d8
lea edi, [ebp - 0x1024]
mov byte [ebp - 4], 8
call fcn.004071fd
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x103c]
add eax, 0xfffffff0
call fcn.00408965
lea eax, [ebp - 0x101c]
call fcn.0040730e
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x1020]
add eax, 0xfffffff0
call fcn.00408965
lea eax, [ebx + 0x214]
push eax
lea ecx, [ebp - 0x101c]
call fcn.00407655
mov edi, eax
lea eax, [ebp - 0x1024]
call fcn.004071fd
jmp 0x40149f