Function at 0x10030ad0
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
cmp dword [ebp + 8], 0x7ff80000
jbe 0x10030aec
mov eax, dword [ebp + 8]
sub eax, 0x7ff80000
mov dword [ebp - 0x1c], eax
jmp 0x10030af3
mov dword [ebp - 0x1c], 0x10000
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x10], ecx
cmp dword [ebp + 8], 0x80000000
jae 0x10030b10
mov edx, dword [ebp + 8]
add edx, 0x7ff80000
mov dword [ebp - 0x20], edx
jmp 0x10030b17
mov dword [ebp - 0x20], 0xfff80000
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], 0
cmp dword [0x1018e830], 0
jne 0x10030b42
cmp dword [0x1018e838], 0
je 0x10030b42
mov ecx, dword [0x1018e838]
mov dword [0x1018e830], ecx
cmp dword [0x1018e830], 0
je 0x10030bbf
mov edx, dword [0x1018e830]
cmp dword [edx + 8], 0
je 0x10030bbf
mov eax, dword [0x1018e830]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x10030bbf
mov edx, dword [0x1018e830]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x14]
ja 0x10030bbf
mov ecx, dword [0x1018e830]
mov edx, dword [ecx + 8]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jb 0x10030b8e
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0x14]
jbe 0x10030b95
xor eax, eax
jmp 0x10030e3b
mov edx, dword [0x1018e830]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x38]
mov dword [edx + 8], ecx
push 0x40
push 0xcc
mov edx, dword [ebp - 8]
push edx
call fcn.1004d410
add esp, 0xc
mov eax, dword [ebp - 8]
jmp 0x10030e3b
mov eax, dword [0x1018e838]
mov dword [0x1018e830], eax
jmp 0x10030bda
mov ecx, dword [0x1018e830]
mov edx, dword [ecx + 4]
mov dword [0x1018e830], edx
cmp dword [0x1018e830], 0
je 0x10030c19
cmp dword [0x1018e830], 0
je 0x10030c17
mov eax, dword [0x1018e830]
cmp dword [eax + 8], 0
je 0x10030c17
mov ecx, dword [0x1018e830]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0x10]
jb 0x10030c17
mov eax, dword [0x1018e830]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x14]
ja 0x10030c17
jmp 0x10030b72
jmp 0x10030bcb
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 - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jbe 0x10030d67
cmp dword [ebp - 4], 0x70000000
jb 0x10030c55
cmp dword [ebp - 4], 0x80000000
ja 0x10030c55
mov dword [ebp - 4], 0x6fff0000
xor eax, eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
push 0x1c
lea ecx, [ebp - 0x60]
push ecx
mov edx, dword [ebp - 4]
push edx
call 0x102c1414
mov ecx, dword [0x1018e830]
mov dword [ecx], 0x52727464
mov edx, dword [0x1018e830]
mov dword [edx + 8], 0
mov eax, dword [0x1018e830]
mov ecx, dword [0x1018e838]
mov dword [eax + 4], ecx
mov edx, dword [0x1018e830]
mov dword [0x1018e838], edx
mov dword [ebp - 0x18], 0
mov eax, dword [0x1018e830]
add eax, 0x40
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0x3fe
jmp 0x10030d1e
mov ecx, dword [ebp - 0xc]
sub ecx, 1
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 1
jle 0x10030d42
mov edx, dword [ebp - 0xc]
shl edx, 6
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x18]
mov dword [eax + edx + 0x38], ecx
mov edx, dword [ebp - 0xc]
shl edx, 6
add edx, dword [ebp - 8]
mov dword [ebp - 0x18], edx
jmp 0x10030d15
mov eax, dword [0x1018e830]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 8], ecx
jmp 0x10030b72
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x14]
jae 0x10030e39
cmp dword [ebp - 4], 0x70000000
jb 0x10030d92
cmp dword [ebp - 4], 0x80000000
ja 0x10030d92
mov dword [ebp - 4], 0x80010000
xor edx, edx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], edx
push 0x1c
lea eax, [ebp - 0x44]
push eax
mov ecx, dword [ebp - 4]
push ecx
push eax
call 0x1034515b
test eax, eax
jne 0x10030dbf
jmp 0x10030e39
cmp dword [ebp - 0x34], 0x10000
jne 0x10030e2b
cmp dword [ebp - 0x38], 0x10000
jb 0x10030e2b
mov edx, dword [ebp - 4]
and edx, 0xffff
mov dword [ebp - 0x24], edx
je 0x10030e02
mov eax, 0x10000
sub eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x38]
sub ecx, dword [ebp - 0x28]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x44]
add edx, dword [ebp - 0x28]
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x44]
mov dword [ebp - 4], eax
push 0x40
push 0x3000
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
push edi
call 0x1023a975
mov dword [0x1018e830], eax
cmp dword [0x1018e830], 0
je 0x10030e2b
jmp 0x10030cc7
mov edx, dword [ebp - 0x44]
add edx, dword [ebp - 0x38]
mov dword [ebp - 4], edx
jmp 0x10030d6d
xor eax, eax
mov esp, ebp
pop ebp
ret