Function at 0x407fb0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x419508
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x42b070]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov eax, dword [0x42b070]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x58], 0
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0x2c], esi
mov byte [esp + 0x58], 1
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea edx, [esp + 0x3c]
mov ecx, eax
call fcn.00407150
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
sub eax, ecx
and eax, 0xfffffffc
or edi, 0xffffffff
cmp eax, 8
je 0x408051
or ebx, edi
jmp 0x4081cf
mov dword [esp + 0x18], vtable.CTISafeReportSharingMemory_struct_tagXReportExceptionContext_.0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov byte [esp + 0x58], 2
push dword [ecx + 4]
lea ecx, [esp + 0x1c]
call fcn.00408400
mov ebx, dword [esp + 0x20]
test al, al
je 0x4081a9
cmp dword [ebx + 4], 0
je 0x4081a9
lea eax, [ebx + 0x14]
mov dword [esp + 0x38], eax
lea eax, [ebx + 0x1bc8]
mov dword [esp + 0x34], eax
mov edx, dword [ebx]
push ecx
lea eax, [ebx + 0x5b0]
push eax
push dword [ebx + 0x10]
push dword [ebx + 0xc]
test edx, edx
jne 0x4080bd
lea edx, [esp + 0x44]
xor cl, cl
jmp 0x4080bf
mov cl, 1
call fcn.00402700
mov eax, dword [section..data]
add esp, 0x10
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
lea eax, [ebx + 0x9c0]
push eax
mov byte [esp + 0x5c], 3
mov edx, dword [ebx + 4]
lea eax, [ebx + 0x2e4]
push eax
push dword [ebx + 0x2e0]
lea eax, [ebx + 0x14]
push eax
push dword [ebx + 0x10]
lea ecx, [esp + 0x3c]
push dword [ebx + 0xc]
push dword [ebx + 8]
call fcn.004027f0
add esp, 0x1c
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x5c], 4
call fcn.00402dd0
mov byte [esp + 0x58], 3
mov edx, dword [esp + 0x28]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x408141
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
push ecx
mov ecx, eax
mov edi, esp
mov dword [esp + 0x18], eax
call fcn.00403100
mov ecx, dword [esp + 0x20]
add eax, 0x10
mov dword [edi], eax
sub esp, 0xc
mov eax, esp
push ecx
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x38]
mov dword [eax], vtable.CTISafeReportSharingMemory_struct_tagXReportExceptionContext_.0
mov dword [eax + 8], ebx
call fcn.00407c60
mov edx, dword [esp + 0x28]
or edi, 0xffffffff
add esp, 0x14
mov dword [esp + 0x10], 0
mov byte [esp + 0x58], 2
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4081b1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4081b1
mov dword [esp + 0x10], 0xffffffff
test ebx, ebx
je 0x4081bc
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4081cb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [esp + 0x10]
add esi, 0xfffffff0
mov byte [esp + 0x58], 0
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x4081eb
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
lea ecx, [esp + 0x3c]
mov dword [esp + 0x58], 0xffffffff
call fcn.004084a0
mov eax, ebx
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.004171a6
mov esp, ebp
pop ebp
ret