Function at 0x745ece
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
cmp dword [ebp + 8], 0x7ff80000
jbe 0x745eea
mov eax, dword [ebp + 8]
sub eax, 0x7ff80000
mov dword [ebp - 0x54], eax
jmp 0x745ef1
mov dword [ebp - 0x54], 0x10000
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0xc], ecx
cmp dword [ebp + 8], 0x80000000
jae 0x745f0e
mov edx, dword [ebp + 8]
add edx, 0x7ff80000
mov dword [ebp - 0x58], edx
jmp 0x745f15
mov dword [ebp - 0x58], 0xfff80000
mov eax, dword [ebp - 0x58]
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 0
cmp dword [0x10099308], 0
jne 0x745f40
cmp dword [0x10099304], 0
je 0x745f40
mov ecx, dword [0x10099304]
mov dword [0x10099308], ecx
cmp dword [0x10099308], 0
je 0x745fbd
mov edx, dword [0x10099308]
cmp dword [edx + 8], 0
je 0x745fbd
mov eax, dword [0x10099308]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0xc]
jb 0x745fbd
mov edx, dword [0x10099308]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 4]
ja 0x745fbd
mov ecx, dword [0x10099308]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
jb 0x745f8c
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp - 4]
jbe 0x745f93
xor eax, eax
jmp 0x7461e9
mov edx, dword [0x10099308]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x18]
mov dword [edx + 8], ecx
push 0x20
push 0xcc
mov edx, dword [ebp - 0x10]
push edx
call fcn.0074be72
add esp, 0xc
mov eax, dword [ebp - 0x10]
jmp 0x7461e9
mov eax, dword [0x10099304]
mov dword [0x10099308], eax
jmp 0x745fd8
mov ecx, dword [0x10099308]
mov edx, dword [ecx + 4]
mov dword [0x10099308], edx
cmp dword [0x10099308], 0
je 0x746017
cmp dword [0x10099308], 0
je 0x746015
mov eax, dword [0x10099308]
cmp dword [eax + 8], 0
je 0x746015
mov ecx, dword [0x10099308]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
jb 0x746015
mov eax, dword [0x10099308]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 4]
ja 0x746015
jmp 0x745f70
jmp 0x745fc9
mov edx, dword [ebp + 8]
and edx, 0xffff
mov eax, dword [ebp + 8]
sub eax, edx
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0x80000000
jbe 0x74603e
mov dword [ebp - 8], 0x80000000
mov edx, dword [ebp + 8]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
jbe 0x746164
cmp dword [ebp - 8], 0x70000000
jb 0x746069
cmp dword [ebp - 8], 0x80000000
ja 0x746069
mov dword [ebp - 8], 0x6fff0000
push 0x1c
lea ecx, [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [0x100590cc]
test eax, eax
jne 0x746082
jmp 0x746164
cmp dword [ebp - 0x1c], 0x10000
jne 0x746154
cmp dword [ebp - 0x20], 0x10000
jb 0x746154
push 0x40
push 0x3000
push 0x10000
mov eax, dword [ebp - 8]
push eax
call dword [0x1005911c]
mov dword [0x10099308], eax
cmp dword [0x10099308], 0
je 0x746152
mov ecx, dword [0x10099308]
mov dword [ecx], 0x52727464
mov edx, dword [0x10099308]
mov dword [edx + 8], 0
mov eax, dword [0x10099308]
mov ecx, dword [0x10099304]
mov dword [eax + 4], ecx
mov edx, dword [0x10099308]
mov dword [0x10099304], edx
mov dword [ebp - 0x34], 0
mov eax, dword [0x10099308]
add eax, 0x20
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x30], 0x7fe
jmp 0x74611b
mov ecx, dword [ebp - 0x30]
sub ecx, 1
mov dword [ebp - 0x30], ecx
cmp dword [ebp - 0x30], 1
jle 0x746141
mov edx, dword [ebp - 0x30]
shl edx, 5
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x34]
mov dword [eax + edx + 0x18], ecx
mov edx, dword [ebp - 0x30]
shl edx, 5
mov eax, dword [ebp - 0x10]
add eax, edx
mov dword [ebp - 0x34], eax
jmp 0x746112
mov ecx, dword [0x10099308]
mov edx, dword [ebp - 0x34]
mov dword [ecx + 8], edx
jmp 0x745f70
jmp 0x746164
mov eax, dword [ebp - 0x28]
sub eax, 0x10000
mov dword [ebp - 8], eax
jmp 0x746044
mov ecx, dword [ebp + 8]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
cmp edx, dword [ebp - 4]
jae 0x7461e7
cmp dword [ebp - 8], 0x70000000
jb 0x74618b
cmp dword [ebp - 8], 0x80000000
ja 0x74618b
mov dword [ebp - 8], 0x80010000
push 0x1c
lea eax, [ebp - 0x50]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [0x100590cc]
test eax, eax
jne 0x7461a1
jmp 0x7461e7
cmp dword [ebp - 0x40], 0x10000
jne 0x7461dc
cmp dword [ebp - 0x44], 0x10000
jb 0x7461dc
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 8]
push edx
call dword [0x1005911c]
mov dword [0x10099308], eax
cmp dword [0x10099308], 0
je 0x7461dc
jmp 0x7460c4
mov eax, dword [ebp - 0x50]
add eax, dword [ebp - 0x44]
mov dword [ebp - 8], eax
jmp 0x74616a
xor eax, eax
mov esp, ebp
pop ebp
ret