Function at 0x4b72e0
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
push edi
lea edi, [ebp - 0x48]
mov ecx, 0x12
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov ecx, 0x563062
call fcn.004d007c
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004b7730
add esp, 0xc
mov dword [ebp - 0x20], 0
cmp dword [0x561e80], 0
jne 0x4b733c
cmp dword [0x561e7c], 0
je 0x4b733c
mov eax, dword [0x561e7c]
mov dword [0x561e80], eax
cmp dword [0x561e80], 0
je 0x4b73b5
mov eax, dword [0x561e80]
cmp dword [eax + 8], 0
je 0x4b73b5
mov eax, dword [0x561e80]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 8]
jb 0x4b73b5
mov eax, dword [0x561e80]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x14]
ja 0x4b73b5
mov eax, dword [0x561e80]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 8]
jb 0x4b7385
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x14]
jbe 0x4b738c
xor eax, eax
jmp 0x4b74ed
mov eax, dword [0x561e80]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x40]
mov dword [eax + 8], edx
push 0x48
push 0xcc
mov eax, dword [ebp - 0x20]
push eax
call fcn.004d1bb0
add esp, 0xc
mov eax, dword [ebp - 0x20]
jmp 0x4b74ed
mov eax, dword [0x561e7c]
mov dword [0x561e80], eax
jmp 0x4b73cf
mov eax, dword [0x561e80]
mov ecx, dword [eax + 4]
mov dword [0x561e80], ecx
cmp dword [0x561e80], 0
je 0x4b740d
cmp dword [0x561e80], 0
je 0x4b740b
mov eax, dword [0x561e80]
cmp dword [eax + 8], 0
je 0x4b740b
mov eax, dword [0x561e80]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 8]
jb 0x4b740b
mov eax, dword [0x561e80]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x14]
ja 0x4b740b
jmp 0x4b736a
jmp 0x4b73c1
mov eax, dword [ebp + 8]
and eax, 0xffff
mov ecx, dword [ebp + 8]
sub ecx, eax
mov dword [ebp + 8], ecx
mov dword [ebp - 0x2c], 0
cmp dword [ebp - 0x2c], 0
jne 0x4b743d
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.004b6fa0
add esp, 8
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x4b7456
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004b70e0
add esp, 8
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x4b74eb
mov eax, dword [ebp - 0x2c]
mov dword [0x561e80], eax
mov eax, dword [0x561e80]
mov dword [eax], 0x52727464
mov eax, dword [0x561e80]
mov dword [eax + 8], 0
mov eax, dword [0x561e80]
mov ecx, dword [0x561e7c]
mov dword [eax + 4], ecx
mov eax, dword [0x561e80]
mov dword [0x561e7c], eax
mov dword [ebp - 0x38], 0
mov eax, dword [0x561e80]
add eax, 0x48
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x44], 0x38c
jmp 0x4b74bb
mov eax, dword [ebp - 0x44]
sub eax, 1
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 1
jle 0x4b74db
imul eax, dword [ebp - 0x44], 0x48
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x38]
mov dword [ecx + eax + 0x40], edx
imul eax, dword [ebp - 0x44], 0x48
add eax, dword [ebp - 0x20]
mov dword [ebp - 0x38], eax
jmp 0x4b74b2
mov eax, dword [0x561e80]
mov ecx, dword [ebp - 0x38]
mov dword [eax + 8], ecx
jmp 0x4b736a
xor eax, eax
push edx
mov ecx, ebp
push eax
lea edx, [0x4b7514]
call fcn.004d0005
pop eax
pop edx
pop edi
pop esi
pop ebx
add esp, 0x108
cmp ebp, esp
call fcn.004d0059
mov esp, ebp
pop ebp
ret