Function at 0x100075c0
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d8
mov eax, dword [0x10059040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call esi
cmp dword [0x1005b174], eax
je 0x100075f8
mov eax, 0x10dd
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10029593
mov esp, ebp
pop ebp
ret
cmp dword [0x1005b170], 0
push ebx
push edi
je 0x100076be
call esi
cmp dword [0x1005b174], eax
jne 0x100079d3
mov edi, dword [0x1005b188]
test edi, edi
je 0x1000767e
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0xc]
push eax
mov eax, dword [edi + 0x10]
push dword [edi + 0x14]
movzx eax, byte [eax + 0x36]
push eax
push dword [edi + 0xc]
call ebx
cmp dword [edi + 4], 0
jne 0x1000766b
mov esi, dword [edi + 0x10]
test esi, esi
je 0x1000766b
push 0x48
push 0
push esi
call fcn.1002b2b0
mov ecx, esi
add esp, 0xc
and ecx, 0xffff0000
mov eax, dword [ecx + 8]
mov dword [esi + 0x40], eax
mov dword [ecx + 8], esi
mov dword [edi + 0x10], 0
mov esi, dword [edi]
push 0x18
push edi
call fcn.100299a5
add esp, 8
mov edi, esi
test esi, esi
jne 0x10007625
mov dword [0x1005b188], 0
call fcn.100073d0
mov edi, dword [0x1005b184]
test edi, edi
je 0x100079bf
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [edi + 4]
call ebx
mov esi, dword [edi]
push 8
push edi
call fcn.100299a5
add esp, 8
mov edi, esi
test esi, esi
jne 0x100076a1
jmp 0x100079bf
mov esi, dword [0x1005b188]
mov dword [ebp - 0xc], 0
test esi, esi
je 0x10007737
nop
cmp dword [esi + 4], 0
mov ecx, dword [esi + 0x10]
je 0x100076f2
movzx eax, byte [ecx + 0x36]
push eax
lea eax, [ecx + 0x20]
push eax
push dword [esi + 0xc]
call fcn.1002ad30
mov eax, dword [esi + 0xc]
add esp, 0xc
jmp 0x1000772c
mov edx, dword [esi + 0xc]
xor edi, edi
mov ecx, dword [ecx + 0x44]
lea eax, [edx + 5]
mov byte [edx], 0xe9
sub ecx, eax
mov dword [edx + 1], ecx
add edx, 5
mov eax, dword [esi + 0x10]
mov ecx, dword [eax + 0x40]
sub ecx, edx
cmp edx, dword [eax + 0x40]
cmova ecx, edi
test ecx, ecx
je 0x10007729
push ecx
push 0xcc
push edx
call fcn.1002b2b0
add esp, 0xc
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 8]
mov dword [ecx], eax
mov esi, dword [esi]
test esi, esi
jne 0x100076d0
mov edi, dword [0x1005b184]
mov dword [ebp - 8], edi
test edi, edi
je 0x10007843
nop dword [eax + eax]
lea eax, [ebp - 0x2d8]
mov dword [ebp - 0x2d8], 0x10001
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x10007836
mov esi, dword [0x1005b188]
test esi, esi
je 0x10007836
mov ebx, dword [ebp - 0x220]
cmp dword [esi + 4], 0
je 0x100077ec
mov ecx, dword [esi + 0x10]
cmp ebx, ecx
jb 0x1000782c
lea eax, [ecx + 4]
cmp ebx, eax
jae 0x1000782c
xor eax, eax
lea edi, [ecx + 0x38]
mov ch, byte [eax + edi]
mov dl, bl
sub dl, byte [esi + 0x10]
mov cl, ch
shr cl, 3
cmp cl, dl
je 0x100077c2
inc eax
cmp eax, 8
jb 0x100077a7
xor ch, ch
jmp 0x100077c5
and ch, 7
movzx eax, ch
add eax, dword [esi + 0xc]
mov edi, dword [ebp - 8]
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x2d8]
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
mov ebx, dword [ebp - 0x220]
jmp 0x1000782c
mov ecx, dword [esi + 0xc]
cmp ebx, ecx
jb 0x1000782c
mov edi, dword [esi + 0x10]
movzx eax, byte [edi + 0x36]
add eax, ecx
cmp ebx, eax
jae 0x10007829
xor edx, edx
mov ah, byte [edx + edi + 0x38]
mov cl, bl
sub cl, byte [esi + 0xc]
mov al, ah
and al, 7
cmp al, cl
je 0x1000781f
inc edx
cmp edx, 8
jb 0x10007802
xor eax, eax
mov eax, edi
jmp 0x100077cb
movzx eax, ah
shr eax, 3
add eax, edi
jmp 0x100077cb
mov edi, dword [ebp - 8]
mov esi, dword [esi]
test esi, esi
jne 0x10007786
mov edi, dword [edi]
mov dword [ebp - 8], edi
test edi, edi
jne 0x10007750
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edi, dword [0x1005b188]
mov ebx, eax
test edi, edi
je 0x100078d6
nop dword [eax]
lea eax, [ebp - 8]
push eax
mov eax, dword [edi + 0x10]
push dword [edi + 0x14]
movzx eax, byte [eax + 0x36]
push eax
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [edi + 0x10]
movzx eax, byte [eax + 0x36]
push eax
push dword [edi + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
cmp dword [edi + 4], 0
je 0x100078c3
mov esi, dword [edi + 0x10]
test esi, esi
je 0x100078c3
push 0x48
push 0
push esi
call fcn.1002b2b0
mov ecx, esi
mov dword [ebp - 0xc], 1
add esp, 0xc
and ecx, 0xffff0000
mov eax, dword [ecx + 8]
mov dword [esi + 0x40], eax
mov dword [ecx + 8], esi
mov dword [edi + 0x10], 0
mov esi, dword [edi]
push 0x18
push edi
call fcn.100299a5
add esp, 8
mov edi, esi
test esi, esi
jne 0x10007860
cmp dword [ebp - 0xc], 0
mov dword [0x1005b188], 0
je 0x1000795d
cmp dword [0x1005b0e4], 0
jne 0x1000795d
mov ecx, dword [0x1005b180]
mov edi, 0x1005b180
test ecx, ecx
je 0x1000795d
cmp dword [ecx], 0x52727464
je 0x1000790f
lea edi, [ecx + 4]
jmp 0x10007957
lea ebx, [ecx + 0x10000]
xor esi, esi
lea edx, [ecx + 0x88]
nop dword [eax]
mov eax, dword [edx]
test eax, eax
je 0x1000792e
cmp eax, ecx
jb 0x1000790a
cmp eax, ebx
jae 0x1000790a
inc esi
add edx, 0x48
cmp esi, 0x38d
jb 0x10007920
mov eax, dword [ecx + 4]
push 0x8000
push 0
push ecx
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [0x1005b178], 0
mov ecx, dword [edi]
test ecx, ecx
jne 0x10007902
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, dword [0x1005b180]
mov edi, eax
test esi, esi
je 0x10007997
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0xc]
push eax
push 0x20
push 0x10000
push esi
call ebx
push 0x10000
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov esi, dword [esi + 4]
test esi, esi
jne 0x10007975
mov edi, dword [0x1005b184]
test edi, edi
je 0x100079bf
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [edi + 4]
call ebx
mov esi, dword [edi]
push 8
push edi
call fcn.100299a5
add esp, 8
mov edi, esi
test esi, esi
jne 0x100079a7
mov dword [0x1005b184], 0
mov dword [0x1005b174], 0
mov ecx, dword [ebp - 4]
mov eax, dword [0x1005b170]
xor ecx, ebp
pop edi
pop ebx
pop esi
call fcn.10029593
mov esp, ebp
pop ebp
ret