Function at 0x4185f0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x48116d
push eax
mov eax, 0x10cc
mov dword fs:[0], esp
call fcn.00436190
push ebx
push esi
push edi
push str.Begin_HijackHandle_n
push 1
call fcn.00428a80
mov ebx, dword [ebp + 8]
xor eax, eax
cmp dword [ebx + 0x620], eax
sete al
lea eax, [eax*2 + 0x438]
push eax
push dword [ebx + 0x618]
lea eax, [ebp - 0x48]
push eax
call fcn.004155c0
add esp, 0x14
mov edi, dword [ebp - 0x48]
mov eax, dword [ebp - 0x44]
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x38], eax
cmp edi, eax
jne 0x418707
mov ebx, dword [ebp + 0xc]
push 0x208
push 0
lea edi, [ebx + 4]
mov dword [ebx], 0
push edi
mov dword [ebx + 0x414], 0x204
call sub.VCRUNTIME140.dll_memset
push 0x208
add ebx, 0x20c
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
push 0x5c
push str.E:Dworkinjector_srshope_externlGH_Injector_LibraryInjection.cpp
call sub.VCRUNTIME140.dll_wcsrchr
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
add esp, 0x20
add eax, 2
push eax
call esi
add eax, eax
push eax
push 0x5c
push str.E:Dworkinjector_srshope_externlGH_Injector_LibraryInjection.cpp
call sub.VCRUNTIME140.dll_wcsrchr
add esp, 8
add eax, 2
push eax
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push str.HijackHandle
call esi
add eax, eax
push eax
push str.HijackHandle
push ebx
call sub.VCRUNTIME140.dll_memcpy
push str.No_compatible_handle_found_n
push 1
call fcn.00428a80
mov esi, dword [ebp + 0xc]
sub esp, 0x404
mov edi, esp
push 0x21
jmp 0x4191b6
push 0x638
lea eax, [ebp - 0x688]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebx + 0x628]
lea ecx, [ebp - 0x688]
add esp, 0xc
mov dword [ebp - 0x60], eax
mov al, byte [ebx + 0x634]
mov esi, 0x4ad018
cmp dword [0x4ad02c], 7
mov edx, 0x208
mov byte [ebp - 0x54], al
mov eax, ecx
cmova esi, dword [0x4ad018]
mov dword [ebp - 0x6c], 1
sub esi, eax
mov dword [ebp - 0x68], 0
nop
lea eax, [edx + 0x7ffffdf6]
test eax, eax
je 0x41877e
movzx eax, word [esi + ecx]
test ax, ax
je 0x41877e
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x418760
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
test edx, edx
mov word [eax], cx
mov eax, 0x8007007a
cmovne eax, ecx
jne 0x41883b
mov ebx, dword [ebp + 0xc]
push 0x208
push ecx
lea edi, [ebx + 4]
mov dword [ebx], eax
push edi
mov dword [ebx + 0x414], 0x214
call sub.VCRUNTIME140.dll_memset
push 0x208
add ebx, 0x20c
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
push 0x5c
push str.E:Dworkinjector_srshope_externlGH_Injector_LibraryInjection.cpp
call sub.VCRUNTIME140.dll_wcsrchr
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
add esp, 0x20
add eax, 2
push eax
call esi
add eax, eax
push eax
push 0x5c
push str.E:Dworkinjector_srshope_externlGH_Injector_LibraryInjection.cpp
call sub.VCRUNTIME140.dll_wcsrchr
add esp, 8
add eax, 2
push eax
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push str.HijackHandle
call esi
add eax, eax
push eax
push str.HijackHandle
push ebx
call sub.VCRUNTIME140.dll_memcpy
mov esi, dword [ebp + 0xc]
push dword [esi]
push str.StringCbCopyW_failed:__08X_n
push 1
call fcn.00428a80
sub esp, 0x400
mov edi, esp
push 4
jmp 0x4191b6
mov ecx, 0x208
lea eax, [ebp - 0x688]
cmp word [eax], 0
je 0x418854
add eax, 2
sub ecx, 1
jne 0x418846
mov edx, 0x208
mov dword [ebp - 0x1c], 0
mov eax, edx
mov esi, ecx
sub eax, ecx
neg esi
sbb esi, esi
and esi, eax
test ecx, ecx
mov eax, 0x80070057
cmovne eax, dword [ebp - 0x1c]
je 0x4188c5
lea ecx, [ebp - 0x688]
lea ecx, [ecx + esi*2]
sub edx, esi
je 0x4188ae
mov edi, str.GH_Injector___x86.dll
mov eax, accept
sub edi, ecx
test eax, eax
je 0x4188ab
movzx esi, word [edi + ecx]
test si, si
je 0x4188ab
mov word [ecx], si
dec eax
add ecx, 2
sub edx, 1
jne 0x418892
mov edi, dword [ebp - 0x18]
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
test edx, edx
mov word [eax], cx
mov eax, 0x8007007a
cmovne eax, ecx
test eax, eax
jns 0x41895d
mov ebx, dword [ebp + 0xc]
push 0x208
push 0
lea edi, [ebx + 4]
mov dword [ebx], eax
push edi
mov dword [ebx + 0x414], 0x21e
call sub.VCRUNTIME140.dll_memset
push 0x208
add ebx, 0x20c
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
push 0x5c
push str.E:Dworkinjector_srshope_externlGH_Injector_LibraryInjection.cpp
call sub.VCRUNTIME140.dll_wcsrchr
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
add esp, 0x20
add eax, 2
push eax
call esi
add eax, eax
push eax
push 0x5c
push str.E:Dworkinjector_srshope_externlGH_Injector_LibraryInjection.cpp
call sub.VCRUNTIME140.dll_wcsrchr
add esp, 8
add eax, 2
push eax
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push str.HijackHandle
call esi
add eax, eax
push eax
push str.HijackHandle
push ebx
call sub.VCRUNTIME140.dll_memcpy
mov esi, dword [ebp + 0xc]
push dword [esi]
push str.StringCbCatW_failed:__08X_n
jmp 0x418825
mov ecx, dword [ebx + 0x624]
mov eax, ecx
mov dword [ebp - 0x3c], ecx
test cl, 0x20
je 0x418976
xor eax, 0x20
mov dword [ebx + 0x624], eax
test al, 0x10
je 0x418983
xor eax, 0x10
mov dword [ebx + 0x624], eax
xor eax, eax
mov dword [ebp - 0x14], eax
nop dword [eax + eax]
push dword [edi]
push 0
push 0x43a
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
jne 0x418a55
mov dword [ebp - 0x14], 7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp + 0xc]
push 0x208
push 0
lea esi, [ebx + 4]
mov dword [ebx], eax
push esi
mov dword [ebx + 0x414], 0x238
call sub.VCRUNTIME140.dll_memset
push 0x208
lea edi, [ebx + 0x20c]
push 0
push edi
call sub.VCRUNTIME140.dll_memset
push 0x5c
push str.E:Dworkinjector_srshope_externlGH_Injector_LibraryInjection.cpp
call sub.VCRUNTIME140.dll_wcsrchr
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
add esp, 0x20
add eax, 2
push eax
call ebx
add eax, eax
push eax
push 0x5c
push str.E:Dworkinjector_srshope_externlGH_Injector_LibraryInjection.cpp
call sub.VCRUNTIME140.dll_wcsrchr
add esp, 8
add eax, 2
push eax
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push str.HijackHandle
call ebx
add eax, eax
push eax
push str.HijackHandle
push edi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x18]
push dword [eax]
push str.Failed_to_attach_to_process__06X_n
push 1
call fcn.00428a80
add esp, 0x18
mov ebx, 7
jmp 0x41915a
push dword [edi]
push str.Attached_to_process__06X_n
push 1
call fcn.00428a80
push ebx
call fcn.004306c0
add esp, 0x10
test al, al
je 0x4190b1
push ebx
call fcn.00430720
add esp, 4
test al, al
je 0x4190b1
push dword [0x7ab5fc]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [edi]
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x688]
push eax
call sym.HOPE_Loader.exe_InjectW
push dword [0x7ab5fc]
mov esi, eax
mov dword [ebp - 0x2c], esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
test esi, esi
jne 0x418fff
cmp dword [ebp - 0x58], esi
je 0x418fff
push str.Injection_module_loaded_into_hijack_process_n
push 1
call fcn.00428a80
mov edi, dword [ebp - 0x58]
add esp, 8
mov eax, sym.HOPE_Loader.exe_InjectW
mov dword [ebp - 0x24], edi
sub eax, dword [0x7ab4e0]
add eax, edi
push 0x40
push 0x3000
push 0x638
push esi
push ebx
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
jne 0x418bcb
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], 0x24
call eax
mov edi, dword [ebp + 0xc]
push 0x208
push 0
lea esi, [edi + 4]
mov dword [edi], eax
push esi
mov dword [edi + 0x414], 0x269
call sub.VCRUNTIME140.dll_memset
push 0x208
add edi, 0x20c
push 0
push edi
call sub.VCRUNTIME140.dll_memset
push 0x5c
push str.E:Dworkinjector_srshope_externlGH_Injector_LibraryInjection.cpp
call sub.VCRUNTIME140.dll_wcsrchr
add esp, 0x20
add eax, 2
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
push 0x5c
push str.E:Dworkinjector_srshope_externlGH_Injector_LibraryInjection.cpp
call sub.VCRUNTIME140.dll_wcsrchr
add esp, 8
add eax, 2
push eax
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push str.HijackHandle
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
push str.HijackHandle
push edi
call sub.VCRUNTIME140.dll_memcpy
mov edi, dword [ebp + 0xc]
push dword [edi]
push str.VirtualAllocEx_failed:__08X_n
push 1
call fcn.00428a80
push 1
push dword [ebp - 0x24]
push ebx
call fcn.00413e10
add esp, 0x24
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 0x24
jmp 0x41915d
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x18]
push 0
push 0x638
push ecx
movzx eax, word [eax + 4]
push esi
push ebx
mov dword [ecx + 0x62c], eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x418cc8
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], 0x25
call eax
mov edi, dword [ebp + 0xc]
push 0x208
push 0
lea esi, [edi + 4]
mov dword [edi], eax
push esi
mov dword [edi + 0x414], 0x278
call sub.VCRUNTIME140.dll_memset
push 0x208
add edi, 0x20c
push 0
push edi
call sub.VCRUNTIME140.dll_memset
push 0x5c
push str.E:Dworkinjector_srshope_externlGH_Injector_LibraryInjection.cpp
call sub.VCRUNTIME140.dll_wcsrchr
add esp, 0x20
add eax, 2
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
push 0x5c
push str.E:Dworkinjector_srshope_externlGH_Injector_LibraryInjection.cpp
call sub.VCRUNTIME140.dll_wcsrchr
add esp, 8
add eax, 2
push eax
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push str.HijackHandle
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
push str.HijackHandle
push edi
call sub.VCRUNTIME140.dll_memcpy
mov edi, dword [ebp + 0xc]
push dword [edi]
push str.WriteProcessMemory_failed:__08X_n
push 1
call fcn.00428a80
add esp, 0x18
push 0x8000
push 0
push dword [ebp - 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push 1
push dword [ebp - 0x24]
push ebx
call fcn.00413e10
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 0x25
jmp 0x41915d
mov eax, dword [ebp - 0x18]
movzx eax, word [eax + 4]
push eax
push str.Handle_value:__04X_n
push 1
call fcn.00428a80
mov ecx, dword [ebp + 8]
push str.Injection_data_written_to_hijack_process_n
push 1
mov dword [ecx + 0x62c], 0
call fcn.00428a80
mov eax, edi
mov byte [ebp - 0xd], 0
sub eax, dword [0x7ab4e0]
add esp, 0x14
add eax, sym.HOPE_Loader.exe_g_LibraryState
mov dword [ebp - 0x34], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x1c], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
sub eax, dword [ebp - 0x30]
sbb edx, dword [ebp - 0x1c]
jne 0x418dc4
jb 0x418d37
cmp eax, 0xfa
jae 0x418dc4
push 0
push 1
lea eax, [ebp - 0xd]
push eax
push dword [ebp - 0x34]
push ebx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x418dc4
cmp byte [ebp - 0xd], 0
jne 0x418e03
push 0xa
push dword [0x7ab4e8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x418d80
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
sub eax, dword [ebp - 0x30]
sbb edx, dword [ebp - 0x1c]
jne 0x418dc4
cmp eax, 0xfa
jb 0x418d37
jmp 0x418dc4
push str.Interrupt__n
push 1
call fcn.00428a80
add esp, 8
mov dword [ebp - 0x14], 0x45
push dword [0x7ab4ec]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x8000
push 0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push 1
push edi
push ebx
call fcn.00413e10
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0xd], 0
jne 0x418e03
push str.Hijack_library_timed_out_n
push 1
call fcn.00428a80
add esp, 8
push 0x8000
push 0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push 1
push edi
push ebx
call fcn.00413e10
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x14]
jmp 0x41915a
push str.Hijack_library_is_ready_n
push 1
call fcn.00428a80
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x28], 0
push dword [eax + 0x628]
lea eax, [ebp - 0x28]
push eax
push 0
push 0
push esi
push dword [ebp - 0x2c]
push ebx
call fcn.0042b430
push 0x638
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0xcc0]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x34
lea eax, [ebp - 0xcc0]
push 0
push 0x638
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov eax, dword [ebp - 0x20]
cmp eax, 0x10100009
je 0x418f08
cmp eax, 0x10000004
jne 0x418e98
push dword [0x7ab4e8]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [0x7ab4ec]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, str.Interrupt__Attempting_to_interrupt_hijack_injection_n
jmp 0x418e9d
mov eax, str.Hijack_injection_timed_out_n
push eax
push 1
call fcn.00428a80
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x10d8]
sub eax, dword [0x7ab4e0]
push ecx
push 0xc8
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push ecx
push 0
push 0
add eax, sym.HOPE_Loader.exe_InterruptInjectionEx
push 0xc8
push eax
push ebx
call fcn.0042b430
add esp, 0x28
test eax, eax
je 0x418ef3
push eax
push str.Attempt_to_interrupt_hijack_injection_failed:__08X_n
push 1
call fcn.00428a80
add esp, 0xc
jmp 0x418f08
cmp dword [ebp - 0x20], 1
je 0x418f08
push str.Failed_to_interrupt_hijack_injection_n
push 1
call fcn.00428a80
add esp, 8
push 0x8000
push 0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push 0
push dword [ebp - 0x24]
push ebx
call fcn.00413e10
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 0x14], ebx
test ebx, ebx
je 0x418f4b
push ebx
push str.StartRoutine_failed:__08X_n
push 1
call fcn.00428a80
add esp, 0xc
jmp 0x41915d
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x418f60
mov ecx, dword [ebp - 0x690]
test ecx, ecx
jne 0x419172
push 0x208
lea esi, [edi + 4]
mov dword [edi], eax
push 0
mov ebx, 0x27
mov dword [edi + 0x414], 0x2eb
push esi
mov dword [ebp - 0x14], ebx
call sub.VCRUNTIME140.dll_memset
push 0x208
add edi, 0x20c
push 0
push edi
call sub.VCRUNTIME140.dll_memset
push 0x5c
push str.E:Dworkinjector_srshope_externlGH_Injector_LibraryInjection.cpp
call sub.VCRUNTIME140.dll_wcsrchr
add esp, 0x20
add eax, 2
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
push 0x5c
push str.E:Dworkinjector_srshope_externlGH_Injector_LibraryInjection.cpp
call sub.VCRUNTIME140.dll_wcsrchr
add esp, 8
add eax, 2
push eax
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push str.HijackHandle
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
push str.HijackHandle
push edi
call sub.VCRUNTIME140.dll_memcpy
push dword [ebp - 0x28]
push str.Hijack_injection_failed:__08X_n
push 1
call fcn.00428a80
add esp, 0x18
jmp 0x41915a
mov edi, dword [ebp + 0xc]
push 0x208
push 0
mov dword [ebp - 0x14], 0x23
mov dword [edi], esi
lea esi, [edi + 4]
push esi
mov dword [edi + 0x414], 0x257
call sub.VCRUNTIME140.dll_memset
push 0x208
add edi, 0x20c
push 0
push edi
call sub.VCRUNTIME140.dll_memset
push 0x5c
push str.E:Dworkinjector_srshope_externlGH_Injector_LibraryInjection.cpp
call sub.VCRUNTIME140.dll_wcsrchr
add esp, 0x20
add eax, 2
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
push 0x5c
push str.E:Dworkinjector_srshope_externlGH_Injector_LibraryInjection.cpp
call sub.VCRUNTIME140.dll_wcsrchr
add esp, 8
add eax, 2
push eax
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push str.HijackHandle
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
push str.HijackHandle
push edi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x18]
push dword [ebp - 0x2c]
push dword [eax]
push str.Failed_to_load_injection_module_into_process__06X:__08X_n
push 1
call fcn.00428a80
add esp, 0x1c
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 0x23
jmp 0x41915a
mov edi, dword [ebp + 0xc]
push 0x208
push 0
mov dword [ebp - 0x14], 0x22
lea esi, [edi + 4]
mov dword [edi], 0
push esi
mov dword [edi + 0x414], 0x244
call sub.VCRUNTIME140.dll_memset
push 0x208
add edi, 0x20c
push 0
push edi
call sub.VCRUNTIME140.dll_memset
push 0x5c
push str.E:Dworkinjector_srshope_externlGH_Injector_LibraryInjection.cpp
call sub.VCRUNTIME140.dll_wcsrchr
add esp, 0x20
add eax, 2
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
push 0x5c
push str.E:Dworkinjector_srshope_externlGH_Injector_LibraryInjection.cpp
call sub.VCRUNTIME140.dll_wcsrchr
add esp, 8
add eax, 2
push eax
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push str.HijackHandle
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
push str.HijackHandle
push edi
call sub.VCRUNTIME140.dll_memcpy
push str.Process_isnt_elevated_or_native_n
push 1
call fcn.00428a80
add esp, 0x14
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 0x22
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp - 0x18]
add eax, 0xc
mov dword [ebp - 0x18], eax
cmp eax, dword [ebp - 0x38]
je 0x419193
mov edi, eax
jmp 0x418990
push ecx
push str.Hijack_injection_succeeded_nImagebase___p_n
push 1
call fcn.00428a80
mov ecx, dword [ebp + 8]
add esp, 0xc
mov eax, dword [ebp - 0x690]
xor ebx, ebx
mov dword [ecx + 0x630], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x3c]
push str.End_HijackHandle_n
push 1
mov dword [eax + 0x624], ecx
call fcn.00428a80
sub esp, 0x410
mov esi, edi
mov edi, esp
push ebx
mov eax, dword [ebp + 8]
mov ecx, 0x106
push 1
push eax
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.00419230
mov esi, dword [ebp - 0x48]
add esp, 0x428
mov edi, eax
test esi, esi
je 0x41921d
mov ecx, dword [ebp - 0x40]
mov eax, 0x2aaaaaab
sub ecx, esi
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 2
cmp ecx, 0x1000
jb 0x419213
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x419213
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push esi
call fcn.0043591e
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret