Function at 0x4133d0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
mov eax, dword [0x47ea94]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
push 0
push 0
push 0
push 0
push str.DetourTransactionCommitEx
lea ecx, [ebp - 0x2e8]
call fcn.00407b80
cmp dword [ebp + 8], 0
je 0x41340e
mov eax, dword [ebp + 8]
mov ecx, dword [0x47f138]
mov dword [eax], ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x47f130], eax
je 0x41343c
mov dword [ebp - 0x2f4], 0x10dd
lea ecx, [ebp - 0x2e8]
call fcn.00407aa0
mov eax, dword [ebp - 0x2f4]
jmp 0x4138cf
cmp dword [0x47f134], 0
je 0x41346c
call fcn.00413210
mov edx, dword [0x47f134]
mov dword [ebp - 0x2f8], edx
lea ecx, [ebp - 0x2e8]
call fcn.00407aa0
mov eax, dword [ebp - 0x2f8]
jmp 0x4138cf
mov eax, dword [0x47f140]
mov dword [ebp - 0x2d4], eax
jmp 0x413487
mov ecx, dword [ebp - 0x2d4]
mov edx, dword [ecx]
mov dword [ebp - 0x2d4], edx
cmp dword [ebp - 0x2d4], 0
je 0x4135cd
mov eax, dword [ebp - 0x2d4]
cmp dword [eax + 4], 0
je 0x41356d
mov ecx, dword [ebp - 0x2d4]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0x2e4], edx
mov dword [ebp - 0x2e0], 0
mov eax, dword [ebp - 0x2d4]
mov ecx, dword [eax + 0x10]
movzx edx, byte [ecx + 0x17]
cmp dword [ebp - 0x2e0], edx
jge 0x413529
mov dword [ebp - 0x2ec], 0
lea eax, [ebp - 0x2ec]
push eax
push 0
mov ecx, dword [ebp - 0x2e4]
push ecx
mov edx, dword [ebp - 0x2d4]
mov eax, dword [edx + 0xc]
add eax, dword [ebp - 0x2e0]
push eax
call fcn.00414cb0
mov dword [ebp - 0x2e4], eax
cmp dword [ebp - 0x2ec], 0
je 0x413512
jmp 0x413529
mov ecx, dword [ebp - 0x2d4]
mov edx, dword [ebp - 0x2e4]
sub edx, dword [ecx + 0x10]
mov dword [ebp - 0x2e0], edx
jmp 0x4134bd
mov eax, dword [ebp - 0x2d4]
mov ecx, dword [eax + 0x10]
movzx edx, byte [ecx + 0x17]
cmp dword [ebp - 0x2e0], edx
je 0x413557
mov dword [0x47f134], 0xd
mov eax, dword [ebp - 0x2d4]
mov ecx, dword [eax + 8]
mov dword [0x47f138], ecx
mov edx, dword [ebp - 0x2d4]
mov eax, dword [edx + 8]
mov ecx, dword [ebp - 0x2d4]
mov edx, dword [ecx + 0xc]
mov dword [eax], edx
jmp 0x4135c8
mov eax, dword [ebp - 0x2d4]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx + 0x1c]
push edx
mov eax, dword [ebp - 0x2d4]
mov ecx, dword [eax + 0xc]
push ecx
call fcn.00414a60
add esp, 8
mov dword [ebp - 0x2f0], eax
mov edx, dword [ebp - 0x2d4]
mov eax, dword [edx + 0x10]
mov ecx, dword [eax + 0x18]
push ecx
mov edx, dword [ebp - 0x2f0]
push edx
call fcn.00414a10
add esp, 8
mov dword [ebp - 0x2f0], eax
mov eax, dword [ebp - 0x2d4]
mov ecx, dword [eax + 0x10]
mov edx, dword [ebp - 0x2d4]
mov eax, dword [edx + 8]
mov dword [eax], ecx
jmp 0x413479
mov ecx, dword [0x47f13c]
mov dword [ebp - 0x2dc], ecx
jmp 0x4135e9
mov edx, dword [ebp - 0x2dc]
mov eax, dword [edx]
mov dword [ebp - 0x2dc], eax
cmp dword [ebp - 0x2dc], 0
je 0x413736
mov dword [ebp - 0x2d0], 0x10001
lea ecx, [ebp - 0x2d0]
push ecx
mov edx, dword [ebp - 0x2dc]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x413731
mov ecx, dword [0x47f140]
mov dword [ebp - 0x2d8], ecx
jmp 0x41363b
mov edx, dword [ebp - 0x2d8]
mov eax, dword [edx]
mov dword [ebp - 0x2d8], eax
cmp dword [ebp - 0x2d8], 0
je 0x413731
mov ecx, dword [ebp - 0x2d8]
cmp dword [ecx + 4], 0
je 0x4136bc
mov edx, dword [ebp - 0x2d8]
mov eax, dword [ebp - 0x218]
cmp eax, dword [edx + 0x10]
jb 0x4136ba
mov ecx, dword [ebp - 0x2d8]
mov edx, dword [ecx + 0x10]
add edx, 4
cmp dword [ebp - 0x218], edx
jae 0x4136ba
mov eax, dword [ebp - 0x2d8]
mov ecx, dword [ebp - 0x218]
sub ecx, dword [eax + 0x10]
mov dword [ebp - 0x218], ecx
mov edx, dword [ebp - 0x2d8]
mov eax, dword [ebp - 0x218]
add eax, dword [edx + 0xc]
mov dword [ebp - 0x218], eax
lea ecx, [ebp - 0x2d0]
push ecx
mov edx, dword [ebp - 0x2dc]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
jmp 0x41372c
mov ecx, dword [ebp - 0x2d8]
mov edx, dword [ebp - 0x218]
cmp edx, dword [ecx + 0xc]
jb 0x41372c
mov eax, dword [ebp - 0x2d8]
mov ecx, dword [eax + 0x10]
movzx edx, byte [ecx + 0x17]
mov eax, dword [ebp - 0x2d8]
add edx, dword [eax + 0xc]
cmp dword [ebp - 0x218], edx
jae 0x41372c
mov ecx, dword [ebp - 0x2d8]
mov edx, dword [ebp - 0x218]
sub edx, dword [ecx + 0xc]
mov dword [ebp - 0x218], edx
mov eax, dword [ebp - 0x2d8]
mov ecx, dword [ebp - 0x218]
add ecx, dword [eax + 0x10]
mov dword [ebp - 0x218], ecx
lea edx, [ebp - 0x2d0]
push edx
mov eax, dword [ebp - 0x2dc]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
jmp 0x41362d
jmp 0x4135db
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 0x2fc], eax
mov edx, dword [0x47f140]
mov dword [ebp - 0x2d4], edx
cmp dword [ebp - 0x2d4], 0
je 0x413822
lea eax, [ebp - 0x314]
push eax
mov ecx, dword [ebp - 0x2d4]
mov edx, dword [ecx + 0x14]
push edx
mov eax, dword [ebp - 0x2d4]
mov ecx, dword [eax + 0x10]
movzx edx, byte [ecx + 0x17]
push edx
mov eax, dword [ebp - 0x2d4]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [ebp - 0x2d4]
mov eax, dword [edx + 0x10]
movzx ecx, byte [eax + 0x17]
push ecx
mov edx, dword [ebp - 0x2d4]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp - 0x2fc]
push ecx
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov edx, dword [ebp - 0x2d4]
cmp dword [edx + 4], 0
je 0x4137e6
mov eax, dword [ebp - 0x2d4]
cmp dword [eax + 0x10], 0
je 0x4137e6
mov ecx, dword [ebp - 0x2d4]
mov edx, dword [ecx + 0x10]
push edx
call fcn.004146d0
add esp, 4
mov eax, dword [ebp - 0x2d4]
mov dword [eax + 0x10], 0
mov ecx, dword [ebp - 0x2d4]
mov edx, dword [ecx]
mov dword [ebp - 0x304], edx
mov eax, dword [ebp - 0x2d4]
mov dword [ebp - 0x300], eax
push 0x18
mov ecx, dword [ebp - 0x300]
push ecx
call fcn.0045be8d
add esp, 8
mov edx, dword [ebp - 0x304]
mov dword [ebp - 0x2d4], edx
jmp 0x41374e
mov dword [0x47f140], 0
call fcn.00414290
mov eax, dword [0x47f13c]
mov dword [ebp - 0x2dc], eax
cmp dword [ebp - 0x2dc], 0
je 0x41388e
mov ecx, dword [ebp - 0x2dc]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [ebp - 0x2dc]
mov ecx, dword [eax]
mov dword [ebp - 0x30c], ecx
mov edx, dword [ebp - 0x2dc]
mov dword [ebp - 0x308], edx
push 8
mov eax, dword [ebp - 0x308]
push eax
call fcn.0045be8d
add esp, 8
mov ecx, dword [ebp - 0x30c]
mov dword [ebp - 0x2dc], ecx
jmp 0x41383c
mov dword [0x47f13c], 0
mov dword [0x47f130], 0
cmp dword [ebp + 8], 0
je 0x4138b2
mov edx, dword [ebp + 8]
mov eax, dword [0x47f138]
mov dword [edx], eax
mov ecx, dword [0x47f134]
mov dword [ebp - 0x310], ecx
lea ecx, [ebp - 0x2e8]
call fcn.00407aa0
mov eax, dword [ebp - 0x310]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045be1b
mov esp, ebp
pop ebp
ret 4