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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 8]
cmp eax, dword [ecx + 8]
jbe 0x4d4c2c
sub esp, 0x88
mov eax, dword [esp + 0xa8]
test eax, 1
je 0x4d4615
mov ecx, dword [esp + 0x8c]
mov dword [esp], ecx
mov ecx, dword [esp + 0x90]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x94]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x98]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x9c]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0xa0]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0xa4]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0xac]
mov dword [esp + 0x20], eax
call fcn.004d4000
add esp, 0x88
ret
mov ecx, dword [0x7080c8]
cmp eax, ecx
jl 0x4d45ae
cmp eax, 2
jl 0x4d45ae
mov ecx, eax
sar eax, 1
mov edx, dword [esp + 0x9c]
cmp eax, edx
ja 0x4d4c25
sub edx, eax
mov ebx, dword [esp + 0xa0]
mov ebp, ebx
sub ebx, eax
mov dword [esp + 0x3c], ebx
mov esi, eax
shl eax, 2
neg ebx
sar ebx, 0x1f
and ebx, eax
mov edi, dword [esp + 0x98]
add ebx, edi
cmp esi, ecx
ja 0x4d4c1e
mov dword [esp + 0x68], esi
mov dword [esp + 0x38], edx
mov dword [esp + 0x64], eax
mov dword [esp + 0x78], ebx
mov eax, dword [esp + 0x8c]
mov dword [esp], eax
mov ecx, dword [esp + 0x90]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x94]
mov dword [esp + 8], edx
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], ebp
mov ebx, dword [esp + 0xa4]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], esi
mov ebp, dword [esp + 0xac]
mov dword [esp + 0x20], ebp
call fcn.004d4580
mov eax, dword [esp + 0xa8]
mov ecx, dword [esp + 0x68]
mov edx, eax
sub eax, ecx
mov ebx, dword [esp + 0xac]
sub ebx, ecx
mov esi, ebx
neg ebx
sar ebx, 0x1f
mov edi, dword [esp + 0x64]
and ebx, edi
mov edi, dword [esp + 0xa4]
add ebx, edi
mov ebp, dword [esp + 0x90]
cmp edx, ebp
ja 0x4d4c17
mov dword [esp + 0x30], eax
mov dword [esp + 0x60], esi
mov dword [esp + 0x70], ebx
mov ecx, dword [esp + 0x94]
sub ecx, edx
mov dword [esp + 0x5c], ecx
shl edx, 2
mov dword [esp + 0x58], edx
neg ecx
sar ecx, 0x1f
and ecx, edx
mov edx, dword [esp + 0x8c]
add ecx, edx
mov dword [esp], ecx
mov ecx, dword [esp + 0xa8]
sub ebp, ecx
mov dword [esp + 4], ebp
mov ebp, dword [esp + 0x5c]
mov dword [esp + 8], ebp
mov ebp, dword [esp + 0x78]
mov dword [esp + 0xc], ebp
mov ebp, dword [esp + 0x38]
mov dword [esp + 0x10], ebp
mov ebp, dword [esp + 0x3c]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], esi
call fcn.004d4580
mov eax, dword [esp + 0xa8]
mov ecx, eax
shl eax, 1
mov edx, dword [esp + 0x68]
lea ebx, [edx + ecx*2]
cmp eax, ebx
ja 0x4d4c10
mov ebp, dword [esp + 0x94]
cmp ebx, ebp
ja 0x4d4c10
mov dword [esp + 0x5c], eax
mov dword [esp + 0x54], ebx
sub ebp, eax
mov dword [esp + 0x34], ebp
shl ecx, 3
mov edi, ebp
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and ecx, ebp
mov ebp, dword [esp + 0x8c]
add ecx, ebp
mov dword [esp + 0x74], ecx
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], edi
mov eax, dword [esp + 0x78]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x98]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x20], eax
call fcn.004db4f0
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x4d4b8e
mov eax, 1
mov ecx, dword [esp + 0xa8]
lea edx, [ecx + ecx*2]
mov ebx, dword [esp + 0x54]
cmp ebx, edx
ja 0x4d4c09
mov ebp, dword [esp + 0x94]
cmp edx, ebp
ja 0x4d4c09
mov dword [esp + 0x54], edx
mov dword [esp + 0x40], eax
sub ebp, ebx
mov dword [esp + 0x2c], ebp
mov ecx, ebx
shl ebx, 2
mov esi, ebp
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and ebx, ebp
mov ebp, dword [esp + 0x8c]
add ebx, ebp
mov dword [esp + 0x6c], ebx
mov dword [esp], ebx
sub edx, ecx
mov dword [esp + 0x28], edx
mov dword [esp + 4], edx
mov dword [esp + 8], esi
mov ecx, dword [esp + 0xa4]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x10], ecx
mov esi, dword [esp + 0xac]
mov dword [esp + 0x14], esi
mov esi, dword [esp + 0x70]
mov dword [esp + 0x18], esi
mov esi, dword [esp + 0x30]
mov dword [esp + 0x1c], esi
mov esi, dword [esp + 0x60]
mov dword [esp + 0x20], esi
call fcn.004db4f0
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x4d4b31
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x90]
cmp ecx, edx
ja 0x4d4c02
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x94]
sub eax, ecx
mov dword [esp + 0x50], eax
mov ebp, ecx
shl ecx, 2
mov esi, eax
neg eax
sar eax, 0x1f
and ecx, eax
mov eax, dword [esp + 0x8c]
add ecx, eax
mov dword [esp + 0x80], ecx
mov dword [esp], ecx
sub edx, ebp
mov dword [esp + 0x4c], edx
mov dword [esp + 4], edx
mov dword [esp + 8], esi
mov ebp, dword [esp + 0x74]
mov dword [esp + 0xc], ebp
mov ebp, dword [esp + 0x68]
mov dword [esp + 0x10], ebp
mov esi, dword [esp + 0x34]
mov dword [esp + 0x14], esi
mov esi, dword [esp + 0x6c]
mov dword [esp + 0x18], esi
mov esi, dword [esp + 0x28]
mov dword [esp + 0x1c], esi
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x20], esi
call fcn.004d4580
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x90]
cmp eax, ecx
ja 0x4d4bfb
sub ecx, eax
mov ebx, dword [esp + 0x94]
mov ebp, ebx
sub ebx, eax
mov dword [esp + 0x48], ebx
mov esi, dword [esp + 0xa8]
shl esi, 4
neg ebx
sar ebx, 0x1f
and esi, ebx
mov ebx, dword [esp + 0x8c]
add esi, ebx
mov eax, dword [esp + 0x5c]
cmp eax, ebp
ja 0x4d4bf4
mov dword [esp + 0x44], ecx
cmp ecx, eax
jle 0x4d4b2a
mov dword [esp + 0x7c], esi
mov dword [esp], esi
mov dword [esp + 4], ebx
shl eax, 2
mov dword [esp + 8], eax
call fcn.0044c5e0
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x90]
cmp eax, ecx
ja 0x4d4bed
mov edx, dword [esp + 0x94]
sub edx, eax
mov dword [esp + 0x68], edx
mov ebx, edx
neg edx
sar edx, 0x1f
mov ebp, dword [esp + 0x64]
and edx, ebp
mov ebp, dword [esp + 0x8c]
add edx, ebp
mov dword [esp + 0x84], edx
mov dword [esp], edx
sub ecx, eax
mov dword [esp + 0x64], ecx
mov dword [esp + 4], ecx
mov dword [esp + 8], ebx
mov eax, dword [esp + 0x7c]
mov dword [esp + 0xc], eax
mov ebp, dword [esp + 0x44]
mov dword [esp + 0x10], ebp
mov esi, dword [esp + 0x48]
mov dword [esp + 0x14], esi
mov edi, dword [esp + 0xa8]
mov dword [esp + 0x18], edi
call fcn.004d43a0
mov eax, dword [esp + 0xa8]
mov ecx, dword [esp + 0x44]
cmp eax, ecx
ja 0x4d4be6
mov edx, dword [esp + 0x84]
mov dword [esp], edx
mov ebx, dword [esp + 0x64]
mov dword [esp + 4], ebx
mov ebp, dword [esp + 0x68]
mov dword [esp + 8], ebp
mov esi, dword [esp + 0x48]
sub esi, eax
mov edi, esi
xchg esi, ebx
neg ebx
xchg esi, ebx
sar esi, 0x1f
mov ebp, dword [esp + 0x58]
and esi, ebp
mov ebp, dword [esp + 0x7c]
add ebp, esi
mov dword [esp + 0xc], ebp
sub ecx, eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], eax
call fcn.004d43a0
mov eax, dword [esp + 0x40]
test eax, eax
jle 0x4d4ae3
mov eax, dword [esp + 0x84]
mov dword [esp], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xa8]
mov dword [esp + 0x18], eax
call fcn.004d43a0
add esp, 0x88
ret
mov eax, dword [esp + 0x84]
mov dword [esp], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xa8]
mov dword [esp + 0x18], eax
call fcn.004d4490
jmp 0x4d4adc
mov eax, ecx
jmp 0x4d49a1
mov eax, dword [esp + 0x6c]
mov dword [esp], eax
mov ecx, dword [esp + 0x28]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x2c]
mov dword [esp + 8], edx
mov ebx, dword [esp + 0x70]
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x60]
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0xa4]
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x68]
mov dword [esp + 0x1c], ebx
mov ebp, dword [esp + 0xac]
mov dword [esp + 0x20], ebp
call fcn.004db4f0
mov eax, dword [esp + 0x40]
neg eax
jmp 0x4d48c3
mov eax, dword [esp + 0x74]
mov dword [esp], eax
mov ecx, dword [esp + 0x68]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x34]
mov dword [esp + 8], edx
mov ebx, dword [esp + 0x98]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ecx
mov ebx, dword [esp + 0xa0]
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x78]
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x38]
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x20], ebx
call fcn.004db4f0
mov eax, 0xffffffff
jmp 0x4d4815
call fcn.00425870
ud2
call fcn.00425870
ud2
call fcn.00425870
ud2
call fcn.00425870
ud2
call fcn.00425870
ud2
call fcn.00425870
ud2
call fcn.00425870
ud2
call fcn.00425870
ud2
call fcn.00425870
ud2
call fcn.00425870
ud2
call fcn.0044a470
jmp fcn.004d4580