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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov ebx, dword [esp + 0x70]
mov edi, dword [esp + 0x74]
mov eax, dword [ebx + 0x58]
cmp eax, 1
jle 0x4cd742
lea ecx, [ebx + 0x1e0]
mov dword [esp + 0x20], ecx
lea esi, [esp + 0x48]
mov ebp, ecx
jmp 0x4cd53b
mov eax, ebx
call fcn.004c8e30
cmp eax, 0xfffffffe
je 0x4cd730
test eax, eax
jle 0x4cd720
mov eax, dword [ebx + 0x58]
cmp eax, 4
jne 0x4cd520
mov dword [esp + 4], esi
mov dword [esp], ebp
call fcn.004d22e0
cmp eax, 0
je 0x4cd520
mov ebp, eax
jle 0x4cd720
mov eax, dword [ebx + 4]
test eax, eax
je 0x4cd73a
cmp dword [ebx + 0x58], 2
jle 0x4cd73a
mov eax, dword [ebx + 0x60]
shl eax, 5
add eax, dword [ebx + 0x48]
mov eax, dword [eax + 4]
mov dword [esp + 0x34], eax
mov edx, dword [esp + 0x80]
imul edx, eax
mov dword [esp + 0x38], edx
mov eax, dword [esp + 0x78]
cdq
idiv dword [esp + 0x38]
cmp eax, ebp
jge 0x4cd5a3
test eax, eax
jle 0x4cd742
mov ebp, eax
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x4cd5d5
mov eax, dword [esp + 0x90]
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebp
mov ecx, dword [esp + 0x34]
mov dword [esp + 4], ecx
mov eax, dword [esp + 0x48]
mov dword [esp], eax
mov eax, dword [esp + 0x8c]
call eax
cmp dword [esp + 0x80], 1
je 0x4cd749
mov eax, dword [esp + 0x84]
test eax, eax
je 0x4cd8cd
cmp dword [esp + 0x7c], 0
je 0x4cd80a
mov dword [esp + 0x1c], 0
fnstcw word [esp + 0x44]
mov dx, word [esp + 0x44]
and dx, 0xf3ff
mov word [esp + 0x46], dx
fldcw word [esp + 0x46]
mov edx, dword [esp + 0x44]
mov word [esp + 0x30], dx
mov ecx, dword [esp + 0x34]
add ecx, ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x24], 0
fld dword [0x793a90]
mov dword [esp + 0x28], ebp
mov dword [esp + 0x3c], ebx
lea esi, [esi]
lea edi, [edi]
mov ebp, dword [esp + 0x34]
test ebp, ebp
jle 0x4cd6b4
mov ebp, dword [esp + 0x24]
shl ebp, 2
mov esi, dword [esp + 0x2c]
add esi, edi
xor eax, eax
mov ebx, dword [esp + 0x48]
nop
lea esi, [esi]
mov edx, dword [ebx + eax]
fld dword [edx + ebp]
fmul st(1)
fist dword [esp + 0x4c]
fstp st(0)
mov edx, dword [esp + 0x4c]
cmp edx, 0xffff8000
jge 0x4cd68f
mov edx, 0xffff8000
cmp edx, 0x7fff
jle 0x4cd69c
mov edx, 0x7fff
add edx, dword [esp + 0x1c]
mov ecx, edx
sar ecx, 8
mov byte [edi], cl
mov byte [edi + 1], dl
add edi, 2
add eax, 4
cmp esi, edi
jne 0x4cd670
inc dword [esp + 0x24]
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x24], eax
jl 0x4cd650
fstp st(0)
mov ebp, eax
mov ebx, dword [esp + 0x3c]
mov edx, dword [esp + 0x30]
mov word [esp + 0x46], dx
fldcw word [esp + 0x46]
mov dword [esp + 4], ebp
mov ecx, dword [esp + 0x20]
mov dword [esp], ecx
call fcn.004d2370
mov eax, dword [ebx + 0x48]
mov dword [esp], eax
call fcn.004ce2e0
mov edx, ebp
mov cl, al
shl edx, cl
mov eax, edx
cdq
add dword [ebx + 0x50], eax
adc dword [ebx + 0x54], edx
mov esi, dword [esp + 0x88]
test esi, esi
je 0x4cd718
mov eax, dword [ebx + 0x60]
mov ecx, dword [esp + 0x88]
mov dword [ecx], eax
mov eax, dword [esp + 0x38]
imul eax, ebp
nop
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
xor eax, eax
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebx + 0x48]
jmp 0x4cd577
mov eax, 0xffffff7d
jmp 0x4cd720
cmp dword [esp + 0x84], 1
sbb eax, eax
and eax, 0xffffff80
fnstcw word [esp + 0x44]
mov dx, word [esp + 0x44]
and dx, 0xf3ff
mov word [esp + 0x46], dx
fldcw word [esp + 0x46]
mov edx, dword [esp + 0x44]
mov word [esp + 0x28], dx
mov dword [esp + 0x1c], 0
fld dword [0x793a8c]
mov dword [esp + 0x24], ebp
mov ebp, eax
mov dword [esp + 0x2c], ebx
nop
mov eax, dword [esp + 0x34]
test eax, eax
jle 0x4cd7e2
mov esi, dword [esp + 0x1c]
shl esi, 2
mov ebx, dword [esp + 0x34]
add ebx, edi
xor edx, edx
mov ecx, dword [esp + 0x48]
nop
lea esi, [esi]
mov eax, dword [ecx + edx]
fld dword [eax + esi]
fmul st(1)
fist dword [esp + 0x4c]
fstp st(0)
mov eax, dword [esp + 0x4c]
cmp eax, 0xffffff80
jge 0x4cd7cc
mov eax, 0xffffff80
cmp eax, 0x7f
jle 0x4cd7d6
mov eax, 0x7f
add eax, ebp
mov byte [edi], al
inc edi
add edx, 4
cmp edi, ebx
jne 0x4cd7b0
inc dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x1c], eax
jl 0x4cd790
fstp st(0)
mov ebp, eax
mov ebx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov word [esp + 0x40], dx
fldcw word [esp + 0x40]
jmp 0x4cd6d7
fnstcw word [esp + 0x44]
mov dx, word [esp + 0x44]
and dx, 0xf3ff
mov word [esp + 0x46], dx
fldcw word [esp + 0x46]
mov ecx, dword [esp + 0x44]
mov word [esp + 0x2c], cx
mov eax, dword [esp + 0x34]
test eax, eax
jle 0x4cd8bb
mov esi, dword [esp + 0x34]
add esi, esi
mov dword [esp + 0x1c], edi
mov edx, edi
add edx, esi
mov dword [esp + 0x24], edx
xor eax, eax
mov edi, dword [esp + 0x48]
fld dword [0x793a90]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x28], edi
mov edi, eax
nop
mov ecx, dword [esp + 0x28]
mov ebx, dword [ecx + edi]
mov ecx, dword [esp + 0x1c]
xor eax, eax
lea esi, [esi]
fld dword [ebx + eax*4]
fmul st(1)
fist dword [esp + 0x4c]
fstp st(0)
mov edx, dword [esp + 0x4c]
cmp edx, 0xffff8000
jge 0x4cd88c
mov edx, 0xffff8000
cmp edx, 0x7fff
jle 0x4cd899
mov edx, 0x7fff
mov word [ecx], dx
add ecx, esi
inc eax
cmp eax, ebp
jl 0x4cd870
add edi, 4
add dword [esp + 0x1c], 2
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x1c], eax
jne 0x4cd860
fstp st(0)
mov ebx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
mov word [esp + 0x42], ax
fldcw word [esp + 0x42]
jmp 0x4cd6d7
cmp dword [esp + 0x7c], 0
je 0x4cd8f0
mov dword [esp + 0x1c], 0x8000
jmp 0x4cd605
fnstcw word [esp + 0x44]
mov dx, word [esp + 0x44]
and dx, 0xf3ff
mov word [esp + 0x46], dx
fldcw word [esp + 0x46]
mov edx, dword [esp + 0x44]
mov word [esp + 0x2c], dx
mov eax, dword [esp + 0x34]
test eax, eax
jle 0x4cd9ad
mov esi, dword [esp + 0x34]
add esi, esi
mov eax, edi
lea edx, [edi + esi]
mov dword [esp + 0x24], edx
mov dword [esp + 0x1c], 0
mov edi, dword [esp + 0x48]
fld dword [0x793a90]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x28], edi
mov edi, eax
mov esi, esi
lea edi, [edi]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
mov ebx, dword [eax + ecx]
mov ecx, edi
xor eax, eax
nop
fld dword [ebx + eax*4]
fmul st(1)
fist dword [esp + 0x4c]
fstp st(0)
mov edx, dword [esp + 0x4c]
cmp edx, 0xffff8000
jge 0x4cd97c
mov edx, 0xffff8000
cmp edx, 0x7fff
jle 0x4cd989
mov edx, 0x7fff
sub edx, 0x8000
mov word [ecx], dx
add ecx, esi
inc eax
cmp eax, ebp
jl 0x4cd960
add dword [esp + 0x1c], 4
add edi, 2
cmp edi, dword [esp + 0x24]
jne 0x4cd950
fstp st(0)
mov ebx, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov word [esp + 0x44], cx
fldcw word [esp + 0x44]
jmp 0x4cd6d7