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

Disassembly:
mov ecx, dword [0x5efcb0]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x1c]
cmp eax, dword [ecx + 8]
jbe 0x4d88da
sub esp, 0x9c
mov byte [esp + 0x27], 1
mov byte [esp + 0x26], 1
jmp 0x4d830a
jmp 0x4d830c
mov eax, dword [esp + 0xb4]
sub eax, dword [esp + 0xb0]
mov dword [esp + 0x3c], eax
cmp eax, 0xc
jle 0x4d8325
jmp 0x4d837d
mov eax, dword [esp + 0xa0]
test byte [eax], al
mov eax, dword [eax]
mov dword [esp + 0x98], eax
mov ecx, dword [esp + 0xb0]
mov edx, dword [esp + 0xb4]
mov ebx, dword [esp + 0xa4]
mov ebp, dword [esp + 0xa8]
mov esi, dword [esp + 0xac]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
call fcn.004daa70
add esp, 0x9c
ret
mov eax, dword [esp + 0xb8]
test eax, eax
je 0x4d838a
jmp 0x4d83e3
mov eax, dword [esp + 0xa0]
test byte [eax], al
mov eax, dword [eax + 4]
mov dword [esp + 0x94], eax
mov ecx, dword [esp + 0xb0]
mov edx, dword [esp + 0xb4]
mov ebx, dword [esp + 0xa4]
mov ebp, dword [esp + 0xa8]
mov esi, dword [esp + 0xac]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
call fcn.004da5b0
add esp, 0x9c
ret
movzx eax, byte [esp + 0x27]
test al, al
jne 0x4d83ee
jmp 0x4d83f0
jmp 0x4d844b
mov eax, dword [esp + 0xa0]
test byte [eax], al
mov eax, dword [eax + 8]
mov dword [esp + 0x90], eax
mov ecx, dword [esp + 0xb0]
mov edx, dword [esp + 0xb4]
mov ebx, dword [esp + 0xa4]
mov ebp, dword [esp + 0xa8]
mov esi, dword [esp + 0xac]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
call fcn.004da3e0
dec dword [esp + 0xb8]
jmp 0x4d844b
mov eax, dword [esp + 0xa0]
test byte [eax], al
mov eax, dword [eax + 0xc]
mov dword [esp + 0x8c], eax
mov ecx, dword [esp + 0xb0]
mov edx, dword [esp + 0xb4]
mov ebx, dword [esp + 0xa4]
mov ebp, dword [esp + 0xa8]
mov esi, dword [esp + 0xac]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
call fcn.004d9ec0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x58], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x44], eax
cmp eax, 2
je 0x4d84c4
jmp 0x4d8539
mov eax, dword [esp + 0xa0]
test byte [eax], al
mov eax, dword [eax + 0x10]
mov dword [esp + 0x88], eax
mov ecx, dword [esp + 0xb0]
mov edx, dword [esp + 0xb4]
mov ebx, dword [esp + 0xa4]
mov ebp, dword [esp + 0xa8]
mov esi, dword [esp + 0xac]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
call fcn.004d9d80
mov eax, dword [esp + 0xb4]
mov ecx, dword [esp + 0x30]
sub ecx, dword [esp + 0xb0]
sub eax, ecx
dec eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x44], 1
jmp 0x4d853b
jmp 0x4d853b
movzx edx, byte [esp + 0x27]
mov byte [esp + 0x29], dl
test dl, dl
jne 0x4d854a
jmp 0x4d8555
movzx edx, byte [esp + 0x26]
mov byte [esp + 0x29], dl
jmp 0x4d8557
jmp 0x4d8557
movzx edx, byte [esp + 0x29]
mov byte [esp + 0x2a], dl
test dl, dl
jne 0x4d8566
jmp 0x4d8574
cmp dword [esp + 0x44], 1
sete dl
mov byte [esp + 0x2a], dl
jmp 0x4d8576
jmp 0x4d8576
movzx edx, byte [esp + 0x2a]
test dl, dl
jne 0x4d8581
jmp 0x4d85eb
mov eax, dword [esp + 0xa0]
test byte [eax], al
mov eax, dword [eax + 0x14]
mov dword [esp + 0x84], eax
mov ecx, dword [esp + 0xb0]
mov edx, dword [esp + 0xb4]
mov ebx, dword [esp + 0xa4]
mov ebp, dword [esp + 0xa8]
mov esi, dword [esp + 0xac]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
call fcn.004d9710
movzx eax, byte [esp + 0x18]
mov byte [esp + 0x29], al
test al, al
jne 0x4d85e2
jmp 0x4d85e9
add esp, 0x9c
ret
jmp 0x4d85ed
jmp 0x4d85ed
mov edx, dword [esp + 0xb0]
test edx, edx
setg dl
mov byte [esp + 0x29], dl
jg 0x4d8604
jmp 0x4d86ad
mov edx, dword [esp + 0xa0]
test byte [edx], al
mov edx, dword [edx + 0x18]
mov dword [esp + 0x80], edx
mov ecx, dword [esp + 0xa8]
mov edx, dword [esp + 0xa4]
mov ebx, dword [esp + 0xb0]
lea eax, [ebx - 1]
cmp ecx, eax
ja 0x4d8638
jmp 0x4d88d4
lea edx, [edx + ebx*8 - 8]
mov ebx, dword [edx]
mov edx, dword [edx + 4]
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], edx
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0xa8]
mov edx, dword [esp + 0xa4]
cmp ecx, eax
ja 0x4d8664
jmp 0x4d88cf
lea eax, [edx + eax*8]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], eax
mov edx, dword [esp + 0x78]
mov ebx, dword [esp + 0x7c]
mov ebp, dword [esp + 0x80]
mov dword [esp], ebp
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
call fcn.004d95c0
movzx eax, byte [esp + 0x14]
mov byte [esp + 0x2a], al
xor eax, 1
mov byte [esp + 0x29], al
jmp 0x4d86af
jmp 0x4d86af
movzx eax, byte [esp + 0x29]
test al, al
jne 0x4d86ba
jmp 0x4d8725
mov eax, dword [esp + 0xa0]
test byte [eax], al
mov eax, dword [eax + 0x1c]
mov dword [esp + 0x6c], eax
mov ecx, dword [esp + 0xb0]
mov edx, dword [esp + 0xb4]
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0xa4]
mov esi, dword [esp + 0xa8]
mov edi, dword [esp + 0xac]
mov dword [esp], eax
mov dword [esp + 4], ebp
mov dword [esp + 8], esi
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ebx
call fcn.004d9210
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x38], eax
mov dword [esp + 0xb0], eax
jmp 0x4d88ca
mov eax, dword [esp + 0xa0]
test byte [eax], al
mov eax, dword [eax + 0x20]
mov dword [esp + 0x68], eax
mov ecx, dword [esp + 0xb0]
mov edx, dword [esp + 0xb4]
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0xa4]
mov esi, dword [esp + 0xa8]
mov edi, dword [esp + 0xac]
mov dword [esp], eax
mov dword [esp + 4], ebp
mov dword [esp + 8], esi
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ebx
call fcn.004d88f0
mov eax, dword [esp + 0x1c]
movzx ecx, byte [esp + 0x20]
mov dword [esp + 0x50], eax
mov byte [esp + 0x29], cl
mov eax, dword [esp + 0x50]
mov dword [esp + 0x54], eax
movzx eax, byte [esp + 0x29]
mov byte [esp + 0x2b], al
mov eax, dword [esp + 0x54]
mov dword [esp + 0x34], eax
movzx ecx, byte [esp + 0x2b]
mov byte [esp + 0x28], cl
mov byte [esp + 0x26], cl
mov ecx, dword [esp + 0x34]
sub ecx, dword [esp + 0xb0]
mov dword [esp + 0x40], ecx
mov edx, dword [esp + 0xb4]
sub edx, eax
mov dword [esp + 0x2c], edx
mov eax, dword [esp + 0x3c]
mov ebx, eax
sar eax, 0x1f
shr eax, 0x1d
add eax, ebx
sar eax, 3
mov dword [esp + 0x48], eax
cmp ecx, edx
jl 0x4d87ea
jmp 0x4d8858
cmp ecx, eax
setge al
mov byte [esp + 0x27], al
mov eax, dword [esp + 0xa0]
test byte [eax], al
mov eax, dword [eax + 0x24]
mov dword [esp + 0x64], eax
mov ecx, dword [esp + 0xb0]
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0xb8]
mov ebp, dword [esp + 0xa4]
mov esi, dword [esp + 0xa8]
mov edi, dword [esp + 0xac]
mov dword [esp], eax
mov dword [esp + 4], ebp
mov dword [esp + 8], esi
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ebx
call fcn.004d82e0
mov eax, dword [esp + 0x34]
inc eax
mov dword [esp + 0xb0], eax
jmp 0x4d88c8
cmp eax, edx
setle al
mov byte [esp + 0x27], al
mov eax, dword [esp + 0xa0]
test byte [eax], al
mov eax, dword [eax + 0x24]
mov dword [esp + 0x60], eax
mov ecx, dword [esp + 0xb4]
mov edx, dword [esp + 0xb8]
mov ebx, dword [esp + 0xa4]
mov ebp, dword [esp + 0xa8]
mov esi, dword [esp + 0xac]
mov edi, dword [esp + 0x34]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], esi
lea eax, [edi + 1]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
call fcn.004d82e0
mov eax, dword [esp + 0x34]
mov dword [esp + 0xb4], eax
jmp 0x4d88c8
jmp 0x4d88ca
jmp 0x4d830a
call fcn.00475830
call fcn.00475830
nop
call fcn.004743b0
jmp fcn.004d82e0