Function at 0x46c530
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4896ad
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x4bf380]
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 esi, ecx
mov dword [ebp - 0x18], esi
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cmp ebx, edi
jne 0x46c5d1
push eax
sub esp, 0xc
mov ebx, esp
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp + 8]
sar eax, 3
test eax, eax
je 0x46c5c7
push eax
mov ecx, ebx
call fcn.00404c10
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
sub esi, eax
mov edi, dword [ebx]
push esi
push eax
push edi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
sar esi, 3
lea eax, [edi + esi*8]
mov esi, dword [ebp - 0x18]
mov dword [ebx + 4], eax
push 0x404b70
lea eax, [ebp - 0x30]
jmp 0x46c64d
sub edi, 8
cmp ebx, edi
je 0x46c5f3
mov edx, dword [ebx]
mov esi, dword [ebx + 4]
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov dword [ebx], eax
mov dword [ebx + 4], ecx
add ebx, 8
mov dword [edi], edx
mov dword [edi + 4], esi
cmp ebx, edi
jne 0x46c5d1
push dword [ebp - 0x14]
sub esp, 0xc
mov ebx, esp
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp + 8]
sar eax, 3
test eax, eax
je 0x46c642
push eax
mov ecx, ebx
call fcn.00404c10
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
sub esi, eax
mov edi, dword [ebx]
push esi
push eax
push edi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
sar esi, 3
lea eax, [edi + esi*8]
mov dword [ebx + 4], eax
mov esi, dword [ebp - 0x18]
lea eax, [ebp - 0x3c]
push 0x404b90
push eax
mov ecx, esi
call fcn.00404ca0
push 0
push 0
push 0
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [ebp - 0x24], xmm0
mov ebx, dword [ebp - 0x24]
push ebx
push 0
push 0
push dword [esi]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov edi, eax
test edi, edi
je 0x46c711
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push 4
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x20]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push 0x8000
push 0
push ebx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 8]
test edx, edx
je 0x46c6f0
mov ecx, dword [ebp + 0x10]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffff8
cmp ecx, 0x1000
jb 0x46c6e6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x46c6e6
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0048600d
add esp, 8
mov eax, dword [ebp - 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.00485c99
mov esp, ebp
pop ebp
ret 0x10
push str.h_thread_failed_to_start.
lea ecx, [ebp - 0x24]
call fcn.00404b20
push 0x495fb8
lea eax, [ebp - 0x24]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3