Function at 0x10007970
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x334
mov eax, dword [0x1001d080]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1001f2b4], eax
je 0x100079a4
mov eax, 0x10dd
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10008c28
mov esp, ebp
pop ebp
ret
push edi
xor edi, edi
cmp dword [0x1001f2b8], edi
je 0x100079ce
call dword [sym.imp.KERNEL32.dll_DebugBreak]
call fcn.10007870
mov eax, dword [0x1001f2b8]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10008c28
mov esp, ebp
pop ebp
ret
push ebx
push esi
mov esi, dword [0x1001f2c4]
cmp esi, edi
je 0x10007bd2
mov edi, edi
cmp dword [esi + 4], edi
je 0x10007a92
mov edx, dword [esi + 0x10]
xor ebx, ebx
cmp byte [edx + 0x17], bl
jbe 0x10007a62
mov eax, dword [esi + 0xc]
add eax, ebx
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x54], ecx
lea ecx, [ebp - 0x330]
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x330], edi
jne 0x10007a1e
lea eax, [ebp - 0x44]
cmp edx, edi
jne 0x10007a2e
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10007a49
movzx edi, byte [edx]
push edx
mov edx, dword [edi*8 + 0x100195d4]
lea edi, [edi*8 + 0x100195d0]
push eax
push edi
lea ecx, [ebp - 0x60]
call edx
xor edi, edi
mov edx, eax
cmp dword [ebp - 0x330], edi
jne 0x10007a62
mov ecx, dword [esi + 0x10]
sub eax, ecx
mov ebx, eax
movzx eax, byte [ecx + 0x17]
cmp ebx, eax
jl 0x100079f3
mov ecx, dword [esi + 0x10]
movzx edx, byte [ecx + 0x17]
cmp ebx, edx
je 0x10007a85
mov eax, dword [esi + 8]
mov dword [0x1001f2b8], 0xd
mov dword [0x1001f2bc], eax
call dword [sym.imp.KERNEL32.dll_DebugBreak]
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0xc]
mov dword [ecx], edx
jmp 0x10007bc8
mov eax, dword [esi + 0x10]
movzx ecx, byte [eax + 0x17]
mov edx, dword [eax + 0x1c]
push ecx
mov ecx, dword [eax + 0x18]
push edx
push ecx
push eax
push str.detours:_pbTramp__p__pbRemain_p__pbDetour_p__cbTarget_d_n
call fcn.100071c0
mov eax, dword [esi + 0xc]
movzx edx, byte [eax + 0xb]
movzx ecx, byte [eax + 0xa]
push edx
movzx edx, byte [eax + 9]
push ecx
movzx ecx, byte [eax + 8]
push edx
movzx edx, byte [eax + 7]
push ecx
movzx ecx, byte [eax + 6]
push edx
movzx edx, byte [eax + 5]
push ecx
movzx ecx, byte [eax + 4]
push edx
movzx edx, byte [eax + 3]
push ecx
movzx ecx, byte [eax + 2]
push edx
movzx edx, byte [eax + 1]
push ecx
movzx ecx, byte [eax]
push edx
push ecx
push eax
push str.detours:_pbTarget_p:__02x__02x__02x__02x__02x__02x__02x__02x__02x__02x__02x__02x__before__n
call fcn.100071c0
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 0xc]
mov ecx, dword [edx + 0x1c]
lea edx, [eax + 5]
sub ecx, edx
mov byte [eax], 0xe9
mov dword [eax + 1], ecx
mov ecx, dword [esi + 0x10]
mov ecx, dword [ecx + 0x18]
add eax, 5
add esp, 0x4c
cmp eax, ecx
jae 0x10007b2b
sub ecx, eax
push ecx
push 0xcc
push eax
call fcn.1000da00
add esp, 0xc
mov edx, dword [esi + 8]
mov eax, dword [esi + 0x10]
mov dword [edx], eax
mov eax, dword [esi + 0xc]
movzx ecx, byte [eax + 0xb]
movzx edx, byte [eax + 0xa]
push ecx
movzx ecx, byte [eax + 9]
push edx
movzx edx, byte [eax + 8]
push ecx
movzx ecx, byte [eax + 7]
push edx
movzx edx, byte [eax + 6]
push ecx
movzx ecx, byte [eax + 5]
push edx
movzx edx, byte [eax + 4]
push ecx
movzx ecx, byte [eax + 3]
push edx
movzx edx, byte [eax + 2]
push ecx
movzx ecx, byte [eax + 1]
push edx
movzx edx, byte [eax]
push ecx
push edx
push eax
push str.detours:_pbTarget_p:__02x__02x__02x__02x__02x__02x__02x__02x__02x__02x__02x__02x__after__n
call fcn.100071c0
mov eax, dword [esi + 0x10]
movzx ecx, byte [eax + 0xb]
movzx edx, byte [eax + 0xa]
push ecx
movzx ecx, byte [eax + 9]
push edx
movzx edx, byte [eax + 8]
push ecx
movzx ecx, byte [eax + 7]
push edx
movzx edx, byte [eax + 6]
push ecx
movzx ecx, byte [eax + 5]
push edx
movzx edx, byte [eax + 4]
push ecx
movzx ecx, byte [eax + 3]
push edx
movzx edx, byte [eax + 2]
push ecx
movzx ecx, byte [eax + 1]
push edx
movzx edx, byte [eax]
push ecx
push edx
push eax
push str.detours:_pbTramp__p:__02x__02x__02x__02x__02x__02x__02x__02x__02x__02x__02x__02x_n
call fcn.100071c0
add esp, 0x70
mov esi, dword [esi]
cmp esi, edi
jne 0x100079e0
mov ebx, dword [0x1001f2c0]
cmp ebx, edi
je 0x10007c80
mov edi, dword [sym.imp.KERNEL32.dll_SetThreadContext]
mov ecx, dword [ebx + 4]
lea eax, [ebp - 0x32c]
push eax
push ecx
mov dword [ebp - 0x32c], 0x10001
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x10007c74
mov esi, dword [0x1001f2c4]
test esi, esi
je 0x10007c74
mov eax, dword [ebp - 0x274]
cmp dword [esi + 4], 0
je 0x10007c36
mov ecx, dword [esi + 0x10]
cmp eax, ecx
jb 0x10007c6e
lea edx, [ecx + 4]
cmp eax, edx
jae 0x10007c6e
sub eax, ecx
mov dword [ebp - 0x274], eax
add eax, dword [esi + 0xc]
jmp 0x10007c55
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jb 0x10007c6e
mov edx, dword [esi + 0x10]
movzx edx, byte [edx + 0x17]
add edx, ecx
cmp eax, edx
jae 0x10007c6e
sub eax, ecx
mov dword [ebp - 0x274], eax
add eax, dword [esi + 0x10]
mov ecx, dword [ebx + 4]
mov dword [ebp - 0x274], eax
lea eax, [ebp - 0x32c]
push eax
push ecx
call edi
mov eax, dword [ebp - 0x274]
mov esi, dword [esi]
test esi, esi
jne 0x10007c15
mov ebx, dword [ebx]
test ebx, ebx
jne 0x10007be6
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, dword [0x1001f2c4]
cmp esi, edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ebp - 0x330], eax
je 0x10007d1c
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 0x14]
lea edx, [ebp - 0x334]
push edx
movzx edx, byte [ecx + 0x17]
push eax
mov eax, dword [esi + 0xc]
push edx
push eax
call edi
mov ecx, dword [esi + 0x10]
movzx edx, byte [ecx + 0x17]
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp - 0x330]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
xor ecx, ecx
cmp dword [esi + 4], ecx
je 0x10007d0b
mov eax, dword [esi + 0x10]
cmp eax, ecx
je 0x10007d0b
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov edx, eax
mov dword [eax + 0x1c], ecx
and edx, 0xffff0000
mov ebx, dword [edx + 8]
mov dword [eax + 0x18], ebx
mov dword [edx + 8], eax
mov dword [esi + 0x10], ecx
mov ebx, dword [esi]
push esi
call fcn.10008c37
add esp, 4
mov esi, ebx
test ebx, ebx
jne 0x10007ca0
mov esi, dword [0x1001f2a8]
xor ebx, ebx
mov dword [0x1001f2c4], ebx
cmp esi, ebx
je 0x10007d48
mov edi, edi
lea edx, [ebp - 0x330]
push edx
push 0x20
push 0x10000
push esi
call edi
mov esi, dword [esi + 4]
cmp esi, ebx
jne 0x10007d30
mov esi, dword [0x1001f2c0]
cmp esi, ebx
je 0x10007d6f
mov edi, dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [esi + 4]
push eax
call edi
mov ebx, dword [esi]
push esi
call fcn.10008c37
add esp, 4
mov esi, ebx
test ebx, ebx
jne 0x10007d58
mov ecx, dword [ebp - 4]
mov eax, dword [0x1001f2b8]
pop esi
mov dword [0x1001f2c0], ebx
mov dword [0x1001f2b4], ebx
pop ebx
xor ecx, ebp
pop edi
call fcn.10008c28
mov esp, ebp
pop ebp
ret