Function at 0x40d7a0
Capabilities:
Accept command line arguments
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x481fa0
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x4a81fc]
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
push str.SetProcessDpiAwarenessContext
mov dword [ebp - 0x28], 0
push str.USER32
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x2c], 0x4985c8
mov dword [ebp - 0x28], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4abe28], eax
test eax, eax
je 0x40d80f
push 0xfffffffffffffffc
call eax
test eax, eax
jne 0x40d814
call fcn.00420be0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
call fcn.004214a0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edx, eax
mov dword [ebp - 0x3c], vtable.CefStringBase_struct_CefStringTraitsUTF16_.0
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x34], 0
test edx, edx
je 0x40d8bf
mov ecx, edx
mov dword [ebp - 0x4c], 0
xor eax, eax
mov dword [ebp - 0x48], 7
mov word [ebp - 0x5c], ax
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d860
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x5c]
call fcn.00410190
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x3c]
call fcn.0040ec40
mov edx, dword [ebp - 0x48]
cmp edx, 8
jb 0x40d8bf
mov ecx, dword [ebp - 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40d8b5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dddf
push edx
push ecx
call fcn.0044b829
add esp, 8
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x3c]
push edx
mov eax, dword [ecx]
call dword [eax + 0x10]
mov eax, dword [ebp - 0x38]
mov ebx, dword [sym.imp.libcef.dll_cef_string_utf16_clear]
mov dword [ebp - 0x3c], vtable.CefStringBase_struct_CefStringTraitsUTF16_.0
test eax, eax
je 0x40d8f8
cmp byte [ebp - 0x34], 0
je 0x40d8f8
push eax
call ebx
add esp, 4
push 0xc
push dword [ebp - 0x38]
call fcn.0044b829
add esp, 8
mov eax, dword [ebp - 0x14]
xor esi, esi
push ecx
mov ecx, esp
mov dword [ecx], eax
test eax, eax
je 0x40d915
mov ecx, dword [eax + 4]
add eax, 4
mov ecx, dword [ecx + 4]
add ecx, eax
mov eax, dword [ecx]
call dword [eax]
call fcn.00412990
mov edi, eax
add esp, 4
cmp edi, 1
je 0x40da1b
lea ecx, [edi - 2]
cmp ecx, 2
ja 0x40da14
push 0x14
call fcn.0044b7f9
mov esi, eax
add esp, 4
mov dword [esi + 4], 0x498720
mov dword [esi + 0x10], vtable.CefBaseRefCounted.0
mov eax, dword [esi + 4]
mov dword [esi], vtable.CefApp.1.0
mov eax, dword [eax + 4]
mov dword [eax + esi + 4], vtable.CefApp.0
mov eax, dword [esi + 4]
mov dword [esi], vtable.LivehimeCefApp.1.0
mov eax, dword [eax + 4]
mov dword [eax + esi + 4], vtable.LivehimeCefApp.0
mov eax, dword [esi + 4]
mov dword [esi], vtable.LivehimeCefAppOther.1.0
mov eax, dword [eax + 4]
mov dword [eax + esi + 4], vtable.LivehimeCefAppOther.0
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0xc]
mov dword [ecx + esi], eax
mov dword [esi + 8], 0
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
add ecx, 4
add ecx, esi
mov eax, dword [ecx]
call dword [eax]
cmp edi, 3
jne 0x40daf7
lea ecx, [ebp - 0x5c]
call fcn.0040d350
cmp dword [eax + 0x14], 8
jb 0x40d9c5
mov eax, dword [eax]
push eax
push str.ComSpec
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov edx, dword [ebp - 0x48]
cmp edx, 8
jb 0x40daf7
mov ecx, dword [ebp - 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40da05
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dde4
push edx
push ecx
call fcn.0044b829
add esp, 8
jmp 0x40daf7
xor edi, edi
jmp 0x40dd86
push 0x24
call fcn.0044b7f9
mov esi, eax
add esp, 4
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 4], 0x498af8
mov dword [esi + 0xc], 0x498728
mov dword [esi + 0x20], vtable.CefBaseRefCounted.0
mov eax, dword [esi + 4]
mov dword [esi], vtable.CefApp.1.0
mov eax, dword [eax + 4]
mov dword [eax + esi + 4], vtable.CefApp.0
mov eax, dword [esi + 4]
mov dword [esi], vtable.LivehimeCefApp.1.0
mov eax, dword [eax + 4]
mov dword [eax + esi + 4], vtable.LivehimeCefApp.0
mov eax, dword [esi + 0xc]
mov dword [esi + 8], vtable.CefRenderProcessHandler.1.0
mov eax, dword [eax + 4]
mov dword [eax + esi + 0xc], vtable.CefRenderProcessHandler.0
mov eax, dword [esi + 4]
mov dword [esi], vtable.LivehimeCefAppRender.2.0
mov dword [esi + 8], vtable.LivehimeCefAppRender.1.0
mov eax, dword [eax + 4]
mov dword [eax + esi + 4], vtable.LivehimeCefAppRender.0
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x1c]
mov dword [ecx + esi], eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.00415830
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x10]
mov dword [esi + 0x18], 0
call fcn.00413ee0
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
add ecx, 4
add ecx, esi
mov eax, dword [ecx]
call dword [eax]
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
push str.bililive_browser_process_id
lea ecx, [ebp - 0x3c]
movq qword [ebp - 0x20], xmm0
call fcn.00405b80
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x3c]
push edx
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ecx]
call dword [eax + 0x30]
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x3c], vtable.CefStringBase_struct_CefStringTraitsUTF16_.0
test eax, eax
je 0x40db4a
cmp byte [ebp - 0x34], 0
je 0x40db4a
push eax
call ebx
add esp, 4
push 0xc
push dword [ebp - 0x38]
call fcn.0044b829
add esp, 8
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40db5b
cmp dword [eax + 4], 0
je 0x40db5b
xor al, al
jmp 0x40db5d
mov al, 1
test al, al
jne 0x40dc8b
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x4abe2c], eax
test eax, eax
je 0x40dc8b
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x44], eax
test edx, edx
je 0x40db94
mov edx, dword [edx]
jmp 0x40db96
xor edx, edx
mov ecx, edx
mov dword [ebp - 0x4c], 0
xor eax, eax
mov dword [ebp - 0x48], 7
mov word [ebp - 0x5c], ax
lea edi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40dbb0
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x5c]
call fcn.00410190
call fcn.0046b92c
cmp dword [ebp - 0x48], 8
lea edi, [ebp - 0x5c]
mov dword [ebp - 0x40], eax
cmovae edi, dword [ebp - 0x5c]
mov dword [eax], 0
lea eax, [ebp - 0x30]
push 0xa
push eax
push edi
call fcn.0046b45f
add esp, 0xc
mov ecx, eax
cmp edi, dword [ebp - 0x30]
je 0x40dde9
mov eax, dword [ebp - 0x40]
cmp dword [eax], 0x22
je 0x40ddf3
lea eax, [ebp - 0x44]
mov dword [ebp - 0x40], ecx
push eax
lea eax, [ebp - 0x40]
push eax
push ecx
lea ecx, [ebp - 0x38]
call fcn.0040ef90
cmp dword [0x4abe4c], 0
mov ecx, eax
jne 0x40ddfd
mov eax, dword [ecx]
mov dword [0x4abe48], eax
mov eax, dword [ecx + 4]
mov dword [0x4abe4c], eax
mov dword [ecx], 0
mov dword [ecx + 4], 0
cmp dword [ebp - 0x34], 0
jne 0x40de02
mov edx, dword [ebp - 0x48]
cmp edx, 8
jb 0x40dc8b
mov ecx, dword [ebp - 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40dc81
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40de07
push edx
push ecx
call fcn.0044b829
add esp, 8
push 0
push ecx
mov eax, esp
mov dword [eax], esi
test esi, esi
je 0x40dca5
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
add ecx, 4
add ecx, esi
mov eax, dword [ecx]
call dword [eax]
lea eax, [ebp - 0x2c]
push eax
call fcn.00420bf0
mov edi, eax
add esp, 0xc
mov eax, dword [0x4abe2c]
test eax, eax
je 0x40dd54
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [0x4abe4c]
test eax, eax
setne cl
test eax, eax
je 0x40dd48
test cl, cl
jne 0x40dce8
push 1
call fcn.004498b7
mov eax, dword [0x4abe4c]
add esp, 4
test eax, eax
jne 0x40dcf6
push 1
call fcn.004498b7
add esp, 4
call sub.KERNEL32.dll_GetCurrentThreadId
mov ecx, dword [0x4abe4c]
cmp ecx, eax
jne 0x40dd15
push 5
call fcn.004498b7
mov ecx, dword [0x4abe4c]
add esp, 4
push 0
push ecx
push dword [0x4abe48]
call fcn.0044994c
add esp, 0xc
test eax, eax
je 0x40dd34
push 2
call fcn.004498b7
add esp, 4
mov dword [0x4abe48], 0
mov dword [0x4abe4c], 0
push dword [0x4abe2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], vtable.CefStringBase_struct_CefStringTraitsUTF16_.0
test eax, eax
je 0x40dd86
cmp byte [ebp - 0x18], 0
je 0x40dd7b
push eax
call ebx
add esp, 4
push 0xc
push dword [ebp - 0x1c]
call fcn.0044b829
add esp, 8
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x18], 0
mov dword [ebp - 4], 0
test esi, esi
je 0x40dda1
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
add ecx, 4
add ecx, esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x40ddbf
mov edx, dword [ecx + 4]
add ecx, 4
mov edx, dword [edx + 4]
add ecx, edx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
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.0044b7e8
mov esp, ebp
pop ebp
ret 0x10
call fcn.00466586
call fcn.00466586
push str.invalid_stoul_argument
call fcn.0044979d
push str.stoul_argument_out_of_range
call fcn.004497dd
call fcn.0046638e
call fcn.0046638e
call fcn.00466586
int3