Function at 0x4d7dc0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x48]
cmp eax, dword [ecx + 8]
jbe 0x4d8163
sub esp, 0xc8
lea eax, [0x50db20]
mov dword [esp], eax
call fcn.0040d050
mov eax, dword [esp + 4]
mov dword [esp + 0x84], eax
mov dword [esp], eax
lea ecx, [0x520308]
mov dword [esp + 4], ecx
mov dword [esp + 8], 7
call fcn.00456e00
mov eax, dword [esp + 0xcc]
mov dword [esp], eax
mov eax, dword [esp + 0xd0]
mov dword [esp + 4], eax
call fcn.0048fe60
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call fcn.0048fde0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x54], eax
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], eax
call fcn.0048f130
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x54]
and edx, 0x1f
cmp edx, 0x17
je 0x4d8147
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], ecx
mov edx, dword [ecx + 0x50]
mov dword [esp], eax
call edx
mov eax, dword [esp + 4]
cmp eax, 0x19
jne 0x4d812a
lea eax, [esp + 8]
mov dword [esp + 0x90], eax
xor ecx, ecx
xor edx, edx
xor ebx, ebx
xor ebp, ebp
jmp 0x4d7ebe
mov eax, dword [esp + 0x3c]
inc eax
mov edx, esi
mov ebx, ecx
mov ecx, eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x8c], edx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebp
mov eax, dword [esp + 0x78]
mov esi, dword [eax + 0x64]
mov edi, dword [esp + 0x7c]
mov dword [esp], edi
call esi
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x3c]
cmp ecx, eax
jge 0x4d7fd8
mov eax, dword [esp + 0x78]
mov edx, dword [eax + 0x2c]
mov dword [esp + 4], ecx
mov ebx, dword [esp + 0x7c]
mov dword [esp], ebx
call edx
lea edi, [esp + 0x94]
mov esi, dword [esp + 0x90]
call fcn.0044a5ae
mov eax, dword [esp + 0x40]
lea ecx, [eax + 1]
mov edx, dword [esp + 0x94]
mov ebx, dword [esp + 0x98]
mov ebp, dword [esp + 0x44]
cmp ecx, ebp
jg 0x4d7f85
mov esi, dword [esp + 0x8c]
lea edi, [esi + eax*8 + 4]
mov dword [edi], ebx
lea eax, [esi + eax*8]
mov ebx, dword [0x5d3b70]
test ebx, ebx
jne 0x4d7f56
mov dword [eax], edx
jmp 0x4d7eb3
mov dword [esp + 0x80], esi
mov dword [esp + 0x50], ecx
mov dword [esp + 0x4c], ebp
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.0040d8c0
mov ecx, dword [esp + 0x50]
mov ebp, dword [esp + 0x4c]
mov esi, dword [esp + 0x80]
jmp 0x4d7eb3
mov dword [esp + 0x88], edx
mov dword [esp + 0x48], ebx
lea edx, [0x500ac0]
mov dword [esp], edx
mov ebx, dword [esp + 0x8c]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], ecx
call fcn.00436d70
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
lea ecx, [eax + 1]
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x88]
mov ebx, dword [esp + 0x48]
jmp 0x4d7f3c
mov eax, dword [esp + 0x8c]
mov dword [esp], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 8], eax
lea eax, [0x51fa4c]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 2
call fcn.004a3b50
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x84]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.00456e00
mov eax, dword [esp + 0x84]
mov dword [esp], eax
lea ecx, [0x51ffb6]
mov dword [esp + 4], ecx
mov dword [esp + 8], 6
call fcn.00456e00
mov eax, dword [esp + 0x78]
mov eax, dword [eax + 0x60]
mov ecx, dword [esp + 0x7c]
mov dword [esp], ecx
call eax
mov eax, dword [esp + 0x84]
mov dword [esp], eax
call fcn.00456e00
lea eax, [esp + 0x58]
mov dword [esp], eax
lea eax, [0x51fa14]
mov dword [esp + 4], eax
mov dword [esp + 8], 1
mov eax, dword [esp + 0xd4]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xd8]
mov dword [esp + 0x10], eax
call fcn.00439c20
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov eax, dword [esp + 0x84]
mov dword [esp], eax
call fcn.00456e00
mov eax, dword [esp + 0x84]
test eax, eax
je 0x4d811d
mov ecx, dword [eax + 0xc]
mov edx, dword [eax]
mov ebx, dword [eax + 4]
mov eax, dword [eax + 8]
cmp ecx, ebx
ja 0x4d815c
mov dword [esp], 0
sub eax, ecx
mov ebp, eax
neg eax
sar eax, 0x1f
and eax, ecx
add eax, edx
mov dword [esp + 4], eax
sub ebx, ecx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ebp
call fcn.00439da0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0xdc], eax
mov dword [esp + 0xe0], ecx
add esp, 0xc8
ret
lea eax, [0x51fea2]
mov ecx, 5
jmp 0x4d8108
mov dword [esp + 0xdc], 0
mov dword [esp + 0xe0], 0
add esp, 0xc8
ret
mov ecx, dword [ecx + 0x28]
mov dword [esp], eax
call ecx
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
jmp 0x4d7e81
call fcn.004243c0
ud2
call fcn.004486e0
jmp fcn.004d7dc0