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

Disassembly:
sub esp, 0x4c
push ebx
mov ebx, dword [esp + 0x54]
push ebp
push esi
push edi
mov eax, dword [ebx + 0xd8]
mov ecx, dword [ebx + 0xac]
mov ebp, dword [ebx + 0xd4]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x48], eax
mov dword [esp + 0x34], ebp
test al, 1
jne 0x4cbe59
test byte [esp + 0x7c], 1
jne 0x4cbe59
mov dword [esp + 0x28], 1
jmp 0x4cbe5e
and dword [esp + 0x28], 0
mov eax, dword [esp + 0x74]
mov esi, dword [esp + 0x6c]
add eax, esi
mov edx, dword [ebx + 0x80]
cmp eax, edx
jle 0x4cbe7a
mov eax, edx
sub eax, esi
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x78]
mov edi, dword [esp + 0x70]
add eax, edi
mov esi, dword [ebx + 0x84]
cmp eax, esi
jle 0x4cbe96
mov eax, esi
sub eax, edi
mov dword [esp + 0x78], eax
cmp dword [esp + 0x74], 0
jle 0x4ccf2d
mov eax, dword [esp + 0x6c]
add eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x10]
js 0x4ccf2d
mov eax, dword [esp + 0x78]
add eax, edi
js 0x4ccf2d
mov eax, dword [esp + 0x6c]
cmp eax, edx
jge 0x4ccf2d
cmp edi, esi
jge 0x4ccf2d
test eax, eax
jns 0x4cbedd
mov edx, eax
neg edx
jmp 0x4cbedf
xor edx, edx
mov dword [esp + 0x3c], edx
test edi, edi
jns 0x4cbeed
mov esi, edi
neg esi
jmp 0x4cbeef
xor esi, esi
mov dword [esp + 0x14], esi
cmp esi, dword [esp + 0x78]
jge 0x4ccf2d
fld qword [0x4e0c18]
add eax, edx
fld dword [0x4e0c14]
fld1
mov dword [esp + 0x40], eax
imul eax, edx, 3
mov dword [esp + 0x24], 0xff
mov dword [esp + 0x44], eax
cmp dword [ebx + 0xe8], 0
je 0x4cbf36
mov eax, dword [ebx + 0x84]
sub eax, esi
sub eax, edi
dec eax
jmp 0x4cbf39
lea eax, [esi + edi]
mov edi, dword [ebx + 0xcc]
imul edi, eax
mov eax, dword [esp + 0x40]
imul eax, ebp
mov ebp, esi
imul ebp, dword [esp + 0x68]
mov dword [esp + 0x30], edx
add edi, eax
mov eax, dword [esp + 0x74]
add ebp, dword [esp + 0x44]
add edi, dword [ebx + 0xc8]
add ebp, dword [esp + 0x64]
cmp edx, eax
jge 0x4ccf0e
jmp 0x4cbf74
fxch st(1)
cmp dword [ebx + 0xe0], 0
je 0x4cbfb4
mov eax, dword [esp + 0x70]
fstp st(1)
add eax, esi
fstp st(1)
push eax
mov eax, dword [esp + 0x70]
fstp st(0)
add eax, edx
push eax
push ebx
call fcn.004cb9e0
fld qword [0x4e0c18]
mov ecx, eax
fld1
add esp, 0xc
fld dword [0x4e0c14]
fxch st(1)
mov eax, dword [esp + 0x74]
mov dword [esp + 0x10], ecx
cmp dword [ebx + 0xe4], 0
je 0x4cc0be
movzx ecx, byte [ebp + 1]
fstp st(1)
movzx edx, byte [ebp + 2]
fstp st(0)
add edx, ecx
mov eax, dword [esp + 0x10]
movzx ecx, byte [ebp]
add edx, ecx
sar eax, 0x18
mov dword [esp + 0x7c], edx
and eax, 0xff
fild dword [esp + 0x7c]
fstp dword [esp + 0x7c]
fdivr dword [esp + 0x7c]
fstp dword [esp + 0x7c]
fld dword [esp + 0x7c]
mov dword [esp + 0x7c], eax
fild dword [esp + 0x7c]
fstp dword [esp + 0x7c]
fmul dword [esp + 0x7c]
call fcn.00402170
mov ecx, dword [esp + 0x10]
mov edx, eax
shl edx, 0x18
and ecx, 0xffffff
or edx, ecx
cmp dword [ebx + 0xd4], 4
jne 0x4cc078
movzx ecx, byte [edi + 3]
movzx eax, byte [edi]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 2]
shl ecx, 8
or ecx, eax
mov eax, dword [esp + 0x70]
push ecx
add eax, esi
push edx
push eax
mov eax, dword [esp + 0x78]
add eax, dword [esp + 0x3c]
push eax
call dword [ebx + 0xb8]
mov ecx, eax
mov byte [edi + 2], al
sar ecx, 8
mov byte [edi + 1], cl
mov ecx, eax
sar ecx, 0x10
mov byte [edi], cl
sar eax, 0x18
jmp 0x4cc522
movzx ecx, byte [edi]
movzx eax, byte [edi + 1]
or ecx, 0xffffff00
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 2]
shl ecx, 8
or ecx, eax
mov eax, dword [esp + 0x70]
push ecx
add eax, esi
push edx
push eax
mov eax, dword [esp + 0x78]
add eax, dword [esp + 0x3c]
push eax
call dword [ebx + 0xb8]
mov ecx, eax
mov byte [edi + 2], al
sar ecx, 8
mov byte [edi + 1], cl
sar eax, 0x10
jmp 0x4cc631
mov edx, dword [esp + 0x48]
test dl, 2
je 0x4cc13c
movzx eax, byte [ebp + 1]
fstp st(0)
movzx ecx, byte [ebp + 2]
add ecx, eax
movzx eax, byte [ebp]
add ecx, eax
mov dword [esp + 0x7c], ecx
fild dword [esp + 0x7c]
mov ecx, dword [esp + 0x10]
fstp dword [esp + 0x7c]
fld dword [esp + 0x7c]
fdivrp st(2)
fxch st(1)
fstp dword [esp + 0x7c]
fcomp dword [esp + 0x7c]
fnstsw ax
test ah, 5
jp 0x4cc112
xor byte [edi + 2], cl
mov eax, ecx
sar eax, 8
xor byte [edi + 1], al
mov eax, ecx
sar eax, 0x10
jmp 0x4cc135
cmp dword [esp + 0x28], 0
je 0x4ccd32
mov al, byte [ebx + 0x104]
xor byte [edi + 2], al
mov al, byte [ebx + 0x108]
xor byte [edi + 1], al
mov al, byte [ebx + 0x10c]
xor byte [edi], al
jmp 0x4ccd32
test dword [ebx + 0xd8], 0x100
fstp st(1)
je 0x4cc472
mov edx, ecx
fstp st(0)
sar edx, 0x18
and edx, 0xff
cmp dword [esp + 0x28], 0
mov dword [esp + 0x2c], edx
mov dword [esp + 0x7c], edx
je 0x4cc454
mov esi, dword [ebx + 0x110]
mov dword [esp + 0x20], esi
cmp esi, 0xc0
jl 0x4cc2fe
movzx eax, byte [ebp + 2]
imul eax, edx
cdq
idiv dword [esp + 0x24]
mov dword [esp + 0x38], eax
test eax, eax
jne 0x4cc1a0
mov eax, dword [ebx + 0x104]
jmp 0x4cc1dd
test esi, esi
jne 0x4cc1a9
movzx eax, cl
jmp 0x4cc1dd
movzx ecx, cl
mov edx, 0xff
imul ecx, dword [esp + 0x38]
sub edx, eax
mov eax, dword [ebx + 0x104]
imul edx, esi
imul ecx, ecx, 0xff
imul eax, edx
add eax, ecx
imul ecx, dword [esp + 0x38], 0xff
add ecx, edx
cdq
idiv ecx
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x2c]
mov byte [edi + 2], al
movzx eax, byte [ebp + 1]
imul eax, esi
cdq
idiv dword [esp + 0x24]
mov dword [esp + 0x38], eax
test eax, eax
jne 0x4cc200
mov eax, dword [ebx + 0x108]
jmp 0x4cc252
cmp dword [ebx + 0x110], 0
jne 0x4cc217
mov eax, ecx
mov ecx, 0xff
sar eax, 8
and eax, ecx
jmp 0x4cc257
mov edx, 0xff
sub edx, eax
mov eax, ecx
imul edx, dword [ebx + 0x110]
mov ecx, dword [ebx + 0x108]
sar eax, 8
and eax, 0xff
imul eax, dword [esp + 0x38]
imul ecx, edx
imul eax, eax, 0xff
add eax, ecx
imul ecx, dword [esp + 0x38], 0xff
add ecx, edx
cdq
idiv ecx
mov ecx, 0xff
mov byte [edi + 1], al
movzx eax, byte [ebp]
imul eax, esi
cdq
idiv ecx
mov esi, eax
test esi, esi
jne 0x4cc272
mov eax, dword [ebx + 0x10c]
jmp 0x4cc2b6
mov eax, dword [ebx + 0x110]
test eax, eax
jne 0x4cc287
mov eax, dword [esp + 0x10]
sar eax, 0x10
and eax, ecx
jmp 0x4cc2b6
mov edx, ecx
sub edx, esi
imul edx, eax
mov eax, dword [esp + 0x10]
sar eax, 0x10
and eax, ecx
mov ecx, dword [ebx + 0x10c]
imul eax, esi
imul ecx, edx
imul eax, eax, 0xff
add eax, ecx
imul ecx, esi, 0xff
add ecx, edx
cdq
idiv ecx
mov byte [edi], al
movzx eax, byte [ebp + 2]
movzx ecx, byte [ebp]
add ecx, eax
movzx eax, byte [ebp + 1]
add ecx, eax
mov dword [esp + 0x38], ecx
fild dword [esp + 0x38]
fstp dword [esp + 0x38]
fdivr dword [esp + 0x38]
fild dword [esp + 0x7c]
fstp qword [esp + 0x54]
fmul qword [esp + 0x54]
call fcn.00402170
mov esi, 0xff
mov edx, esi
sub edx, eax
imul edx, dword [ebx + 0x110]
jmp 0x4ccd1c
movzx eax, byte [ebp + 1]
movzx ecx, byte [ebp + 2]
add ecx, eax
movzx eax, byte [ebp]
add ecx, eax
mov dword [esp + 0x38], ecx
fild dword [esp + 0x38]
fstp dword [esp + 0x38]
fdivr dword [esp + 0x38]
fild dword [esp + 0x7c]
fstp qword [esp + 0x54]
fmul qword [esp + 0x54]
call fcn.00402170
mov esi, eax
test esi, esi
jne 0x4cc33d
mov ecx, dword [ebx + 0x104]
jmp 0x4cc380
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x4cc34e
mov eax, dword [esp + 0x10]
movzx ecx, al
jmp 0x4cc384
mov ecx, dword [esp + 0x10]
mov edx, 0xff
movzx ecx, cl
sub edx, esi
imul edx, eax
mov eax, dword [ebx + 0x104]
imul ecx, esi
imul eax, edx
imul ecx, ecx, 0xff
add eax, ecx
imul ecx, esi, 0xff
add ecx, edx
cdq
idiv ecx
mov ecx, eax
mov eax, dword [esp + 0x10]
mov byte [edi + 2], cl
test esi, esi
jne 0x4cc393
mov eax, dword [ebx + 0x108]
jmp 0x4cc3d7
mov ecx, dword [ebx + 0x110]
sar eax, 8
test ecx, ecx
jne 0x4cc3a9
mov ecx, 0xff
and eax, ecx
jmp 0x4cc3dc
and eax, 0xff
mov edx, 0xff
sub edx, esi
imul eax, esi
imul edx, ecx
mov ecx, dword [ebx + 0x108]
imul eax, eax, 0xff
imul ecx, edx
add eax, ecx
imul ecx, esi, 0xff
add ecx, edx
cdq
idiv ecx
mov ecx, 0xff
mov byte [edi + 1], al
test esi, esi
jne 0x4cc3eb
mov eax, dword [ebx + 0x10c]
jmp 0x4cc42f
mov eax, dword [ebx + 0x110]
test eax, eax
jne 0x4cc400
mov eax, dword [esp + 0x10]
sar eax, 0x10
and eax, ecx
jmp 0x4cc42f
mov edx, ecx
sub edx, esi
imul edx, eax
mov eax, dword [esp + 0x10]
sar eax, 0x10
and eax, ecx
mov ecx, dword [ebx + 0x10c]
imul eax, esi
imul ecx, edx
imul eax, eax, 0xff
add eax, ecx
imul ecx, esi, 0xff
add ecx, edx
cdq
idiv ecx
mov byte [edi], al
mov eax, 0xff
sub eax, esi
imul ecx, esi, 0xff
imul eax, dword [ebx + 0x110]
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
jmp 0x4ccd27
mov eax, ecx
mov byte [edi + 2], cl
sar eax, 8
mov byte [edi + 1], al
mov eax, ecx
sar eax, 0x10
mov byte [edi], al
mov byte [edi + 3], dl
mov eax, dword [esp + 0x74]
jmp 0x4cceca
test dl, 8
je 0x4cc52a
cmp dword [esp + 0x34], 4
jne 0x4ccec8
movzx eax, byte [ebp + 1]
movzx ecx, byte [ebp + 2]
add ecx, eax
movzx eax, byte [ebp]
add ecx, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x7c], ecx
fild dword [esp + 0x7c]
sar eax, 0x18
and eax, 0xff
cmp dword [esp + 0x28], 0
fstp dword [esp + 0x7c]
fld dword [esp + 0x7c]
fdivrp st(2)
fxch st(1)
fstp dword [esp + 0x7c]
je 0x4cc4eb
fld dword [esp + 0x7c]
fld st(0)
mov dword [esp + 0x7c], eax
fsubp st(2)
fild dword [ebx + 0x110]
fstp qword [esp + 0x54]
fld qword [esp + 0x54]
fmulp st(2)
fild dword [esp + 0x7c]
fstp dword [esp + 0x7c]
fmul dword [esp + 0x7c]
jmp 0x4cc51b
mov dword [esp + 0x38], eax
fild dword [esp + 0x38]
fstp dword [esp + 0x38]
fld dword [esp + 0x38]
fld dword [esp + 0x7c]
movzx eax, byte [edi + 3]
fld st(0)
fmulp st(2)
mov dword [esp + 0x7c], eax
fsubp st(2)
fild dword [esp + 0x7c]
fstp qword [esp + 0x54]
fld qword [esp + 0x54]
fmulp st(2)
faddp st(1)
call fcn.004021a6
mov byte [edi + 3], al
jmp 0x4cc633
mov eax, edx
fstp st(0)
and eax, 0x10
mov dword [esp + 0x38], eax
jne 0x4cc63c
test dl, 0x20
jne 0x4cc63c
movzx edx, byte [ebp + 2]
mov eax, 0xff
sub eax, edx
fstp st(0)
cmp dword [esp + 0x28], 0
je 0x4cc5c1
imul eax, dword [ebx + 0x104]
movzx ecx, cl
imul ecx, edx
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
mov byte [edi + 2], al
mov eax, ecx
movzx edx, byte [ebp + 1]
mov ecx, dword [esp + 0x10]
sub eax, edx
imul eax, dword [ebx + 0x108]
sar ecx, 8
and ecx, 0xff
imul ecx, edx
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
mov byte [edi + 1], al
mov eax, ecx
mov ecx, dword [esp + 0x10]
movzx edx, byte [ebp]
sar ecx, 0x10
sub eax, edx
imul eax, dword [ebx + 0x10c]
and ecx, 0xff
imul ecx, edx
add eax, ecx
jmp 0x4cc629
movzx ecx, byte [edi + 2]
imul eax, ecx
mov ecx, dword [esp + 0x10]
movzx ecx, cl
imul ecx, edx
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
mov edx, 0xff
mov byte [edi + 2], al
mov eax, dword [esp + 0x10]
movzx ecx, byte [ebp + 1]
sar eax, 8
and eax, edx
sub edx, ecx
imul eax, ecx
movzx ecx, byte [edi + 1]
imul edx, ecx
mov ecx, 0xff
add eax, edx
cdq
idiv ecx
mov edx, 0xff
mov byte [edi + 1], al
mov eax, dword [esp + 0x10]
movzx ecx, byte [ebp]
sar eax, 0x10
and eax, edx
sub edx, ecx
imul eax, ecx
movzx ecx, byte [edi]
imul edx, ecx
add eax, edx
cdq
mov ecx, 0xff
idiv ecx
mov byte [edi], al
mov ecx, dword [esp + 0x10]
jmp 0x4ccd32
cmp dword [esp + 0x28], 0
je 0x4ccad2
mov esi, dword [ebx + 0x110]
cmp esi, 0xc0
jl 0x4cc7f5
movzx eax, byte [ebp + 2]
mov edx, ecx
sar edx, 0x18
and edx, 0xff
mov dword [esp + 0x54], eax
imul eax, edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x7c], edx
cdq
idiv dword [esp + 0x24]
mov dword [esp + 0x2c], eax
test eax, eax
jne 0x4cc68c
mov eax, dword [ebx + 0x104]
jmp 0x4cc6c9
test esi, esi
jne 0x4cc695
movzx eax, cl
jmp 0x4cc6c9
movzx ecx, cl
mov edx, 0xff
imul ecx, dword [esp + 0x2c]
sub edx, eax
mov eax, dword [ebx + 0x104]
imul edx, esi
imul ecx, ecx, 0xff
imul eax, edx
add eax, ecx
imul ecx, dword [esp + 0x2c], 0xff
add ecx, edx
cdq
idiv ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x18], eax
movzx eax, byte [ebp + 1]
mov dword [esp + 0x50], eax
imul eax, dword [esp + 0x20]
cdq
idiv dword [esp + 0x24]
mov dword [esp + 0x2c], eax
test eax, eax
jne 0x4cc6ef
mov ecx, dword [ebx + 0x108]
jmp 0x4cc6fc
test esi, esi
jne 0x4cc702
sar ecx, 8
and ecx, 0xff
mov dword [esp + 0x1c], ecx
jmp 0x4cc73d
mov edx, 0xff
sub edx, eax
mov eax, ecx
mov ecx, dword [ebx + 0x108]
sar eax, 8
and eax, 0xff
imul edx, esi
imul eax, dword [esp + 0x2c]
imul ecx, edx
imul eax, eax, 0xff
add eax, ecx
imul ecx, dword [esp + 0x2c], 0xff
add ecx, edx
cdq
idiv ecx
mov dword [esp + 0x1c], eax
movzx eax, byte [ebp]
mov ecx, 0xff
mov dword [esp + 0x4c], eax
imul eax, dword [esp + 0x20]
cdq
idiv ecx
mov ecx, eax
mov dword [esp + 0x2c], ecx
test ecx, ecx
jne 0x4cc764
mov eax, dword [ebx + 0x10c]
jmp 0x4cc79f
mov eax, dword [esp + 0x10]
sar eax, 0x10
and eax, 0xff
test esi, esi
je 0x4cc79f
imul eax, ecx
mov edx, 0xff
sub edx, ecx
mov ecx, dword [ebx + 0x10c]
imul edx, esi
imul eax, eax, 0xff
imul ecx, edx
add eax, ecx
imul ecx, dword [esp + 0x2c], 0xff
add ecx, edx
cdq
idiv ecx
mov ecx, dword [esp + 0x50]
add ecx, dword [esp + 0x4c]
add ecx, dword [esp + 0x54]
mov dword [esp + 0x54], ecx
fild dword [esp + 0x54]
mov dword [esp + 0x20], eax
fstp dword [esp + 0x54]
fdivr dword [esp + 0x54]
fild dword [esp + 0x7c]
fstp qword [esp + 0x54]
fmul qword [esp + 0x54]
call fcn.00402170
mov edx, 0xff
sub edx, eax
imul eax, eax, 0xff
imul edx, esi
mov esi, 0xff
add eax, edx
cdq
idiv esi
mov edx, eax
mov dword [esp + 0x2c], edx
jmp 0x4cc96b
movzx eax, byte [ebp + 1]
movzx ecx, byte [ebp + 2]
add ecx, eax
movzx eax, byte [ebp]
add ecx, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x7c], ecx
fild dword [esp + 0x7c]
sar eax, 0x18
and eax, 0xff
fstp dword [esp + 0x7c]
fld dword [esp + 0x7c]
mov dword [esp + 0x7c], eax
fild dword [esp + 0x7c]
fstp dword [esp + 0x7c]
fmul dword [esp + 0x7c]
fdivrp st(1)
call fcn.00402170
mov ecx, eax
mov dword [esp + 0x7c], ecx
test ecx, ecx
jne 0x4cc861
mov eax, dword [ebx + 0x104]
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0x108]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x10c]
jmp 0x4cc945
test esi, esi
jne 0x4cc872
mov eax, dword [esp + 0x10]
movzx edx, al
mov dword [esp + 0x18], edx
jmp 0x4cc8b2
mov eax, dword [ebx + 0x104]
mov edx, 0xff
sub edx, ecx
mov ecx, dword [esp + 0x10]
movzx ecx, cl
imul ecx, dword [esp + 0x7c]
imul edx, esi
imul ecx, ecx, 0xff
imul eax, edx
add eax, ecx
imul ecx, dword [esp + 0x7c], 0xff
add ecx, edx
cdq
idiv ecx
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
mov edx, 0xff
test esi, esi
jne 0x4cc8c8
mov ecx, eax
sar ecx, 8
and ecx, edx
mov dword [esp + 0x1c], ecx
jmp 0x4cc903
sar eax, 8
sub edx, ecx
and eax, 0xff
imul edx, esi
imul eax, ecx
mov ecx, dword [ebx + 0x108]
imul ecx, edx
imul eax, eax, 0xff
add eax, ecx
imul ecx, dword [esp + 0x7c], 0xff
add ecx, edx
cdq
idiv ecx
mov edx, 0xff
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
sar eax, 0x10
test esi, esi
jne 0x4cc912
mov ecx, dword [esp + 0x7c]
and eax, edx
jmp 0x4cc94a
sub edx, dword [esp + 0x7c]
and eax, 0xff
imul eax, dword [esp + 0x7c]
mov ecx, dword [ebx + 0x10c]
imul edx, esi
imul eax, eax, 0xff
imul ecx, edx
add eax, ecx
imul ecx, dword [esp + 0x7c], 0xff
add ecx, edx
cdq
idiv ecx
mov ecx, dword [esp + 0x7c]
mov edx, 0xff
mov dword [esp + 0x20], eax
mov eax, edx
sub eax, ecx
imul ecx, ecx, 0xff
imul eax, esi
mov esi, 0xff
add eax, ecx
cdq
idiv esi
mov edx, eax
mov dword [esp + 0x2c], eax
cmp dword [esp + 0x34], 3
jne 0x4cc9c1
movzx eax, byte [edi + 2]
mov ecx, esi
mov esi, dword [esp + 0x18]
sub ecx, edx
imul eax, ecx
imul esi, edx
add eax, esi
mov esi, 0xff
cdq
idiv esi
mov edx, dword [esp + 0x1c]
imul edx, dword [esp + 0x2c]
mov byte [edi + 2], al
movzx eax, byte [edi + 1]
imul eax, ecx
add eax, edx
cdq
idiv esi
mov byte [edi + 1], al
movzx eax, byte [edi]
imul eax, ecx
mov ecx, dword [esp + 0x20]
imul ecx, dword [esp + 0x2c]
add eax, ecx
mov ecx, esi
jmp 0x4ccb6b
movzx ecx, byte [edi + 3]
mov dword [esp + 0x7c], ecx
test edx, edx
jne 0x4cc9d3
movzx eax, byte [edi + 2]
jmp 0x4cca10
test ecx, ecx
jne 0x4cc9dd
mov eax, dword [esp + 0x18]
jmp 0x4cca10
movzx eax, byte [edi + 2]
sub esi, edx
imul eax, esi
imul esi, dword [esp + 0x7c]
imul eax, ecx
mov ecx, dword [esp + 0x18]
imul ecx, edx
imul ecx, ecx, 0xff
add eax, ecx
imul ecx, edx, 0xff
cdq
add esi, ecx
mov ecx, dword [esp + 0x7c]
idiv esi
mov edx, dword [esp + 0x2c]
mov byte [edi + 2], al
test edx, edx
jne 0x4cca1d
movzx eax, byte [edi + 1]
jmp 0x4cca5b
test ecx, ecx
jne 0x4cca27
mov eax, dword [esp + 0x1c]
jmp 0x4cca5b
movzx eax, byte [edi + 1]
mov esi, 0xff
sub esi, edx
imul eax, esi
imul esi, dword [esp + 0x7c]
imul eax, ecx
mov ecx, dword [esp + 0x1c]
imul ecx, edx
imul ecx, ecx, 0xff
add eax, ecx
imul ecx, edx, 0xff
cdq
add esi, ecx
idiv esi
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x7c]
mov byte [edi + 1], al
test edx, edx
jne 0x4cca6b
movzx eax, byte [edi]
jmp 0x4ccaac
test ecx, ecx
jne 0x4cca75
mov eax, dword [esp + 0x20]
jmp 0x4ccaac
movzx eax, byte [edi]
mov esi, 0xff
sub esi, edx
imul eax, esi
imul esi, dword [esp + 0x7c]
imul eax, ecx
mov ecx, dword [esp + 0x20]
imul ecx, edx
imul ecx, ecx, 0xff
add eax, ecx
imul ecx, edx, 0xff
cdq
add esi, ecx
mov ecx, dword [esp + 0x7c]
idiv esi
mov edx, dword [esp + 0x2c]
cmp dword [esp + 0x38], 0
mov byte [edi], al
je 0x4ccd2a
mov esi, 0xff
mov eax, esi
sub eax, edx
imul eax, ecx
imul ecx, edx, 0xff
add eax, ecx
jmp 0x4ccd24
cmp dword [esp + 0x34], 3
jne 0x4ccb75
movzx eax, byte [ebp + 2]
mov esi, ecx
sar esi, 0x18
mov ecx, 0xff
and esi, ecx
fstp st(0)
imul eax, esi
cdq
idiv ecx
mov edx, ecx
movzx ecx, byte [edi + 2]
sub edx, eax
imul edx, ecx
mov ecx, dword [esp + 0x10]
movzx ecx, cl
imul eax, ecx
mov ecx, 0xff
add eax, edx
cdq
idiv ecx
mov byte [edi + 2], al
movzx eax, byte [ebp + 1]
imul eax, esi
cdq
idiv ecx
mov edx, ecx
movzx ecx, byte [edi + 1]
sub edx, eax
imul edx, ecx
mov ecx, dword [esp + 0x10]
sar ecx, 8
and ecx, 0xff
imul eax, ecx
mov ecx, 0xff
add eax, edx
cdq
idiv ecx
mov byte [edi + 1], al
movzx eax, byte [ebp]
imul eax, esi
mov esi, dword [esp + 0x10]
sar esi, 0x10
and esi, ecx
cdq
idiv ecx
mov edx, ecx
imul esi, eax
sub edx, eax
movzx eax, byte [edi]
imul eax, edx
add eax, esi
cdq
idiv ecx
mov byte [edi], al
jmp 0x4ccd2a
mov al, byte [edi + 3]
mov byte [esp + 0x7c], al
cmp al, 0xc0
jb 0x4ccd3b
movzx esi, al
mov edx, ecx
movzx eax, byte [ebp + 2]
sar edx, 0x18
and edx, 0xff
mov dword [esp + 0x2c], esi
imul eax, edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x7c], edx
cdq
idiv dword [esp + 0x24]
mov dword [esp + 0x20], eax
test eax, eax
jne 0x4ccbb8
movzx eax, byte [edi + 2]
jmp 0x4ccbfe
test esi, esi
jne 0x4ccbc1
movzx eax, cl
jmp 0x4ccbfe
mov esi, 0xff
movzx ecx, cl
imul ecx, dword [esp + 0x20]
sub esi, eax
movzx eax, byte [edi + 2]
imul eax, esi
imul esi, dword [esp + 0x2c]
imul ecx, ecx, 0xff
imul eax, dword [esp + 0x2c]
add eax, ecx
imul ecx, dword [esp + 0x20], 0xff
cdq
add esi, ecx
mov ecx, dword [esp + 0x10]
idiv esi
mov esi, dword [esp + 0x2c]
mov byte [edi + 2], al
movzx eax, byte [ebp + 1]
imul eax, dword [esp + 0x1c]
cdq
idiv dword [esp + 0x24]
mov dword [esp + 0x20], eax
test eax, eax
jne 0x4ccc1d
movzx eax, byte [edi + 1]
jmp 0x4ccc65
test esi, esi
mov esi, 0xff
jne 0x4ccc2f
mov eax, ecx
sar eax, 8
and eax, esi
jmp 0x4ccc6a
sub esi, eax
sar ecx, 8
movzx eax, byte [edi + 1]
and ecx, 0xff
imul ecx, dword [esp + 0x20]
imul eax, esi
imul esi, dword [esp + 0x2c]
imul ecx, ecx, 0xff
imul eax, dword [esp + 0x2c]
add eax, ecx
imul ecx, dword [esp + 0x20], 0xff
cdq
add esi, ecx
idiv esi
mov esi, 0xff
mov byte [edi + 1], al
movzx eax, byte [ebp]
imul eax, dword [esp + 0x1c]
cdq
idiv esi
mov dword [esp + 0x20], eax
test eax, eax
jne 0x4ccc86
movzx eax, byte [edi]
jmp 0x4cccd1
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x10]
test edx, edx
jne 0x4ccc9b
mov eax, ecx
sar eax, 0x10
and eax, esi
jmp 0x4cccd5
sub esi, eax
sar ecx, 0x10
movzx eax, byte [edi]
and ecx, 0xff
imul ecx, dword [esp + 0x20]
imul eax, esi
imul esi, edx
imul ecx, ecx, 0xff
imul eax, edx
add eax, ecx
imul ecx, dword [esp + 0x20], 0xff
cdq
add esi, ecx
idiv esi
mov esi, 0xff
mov ecx, dword [esp + 0x10]
cmp dword [esp + 0x38], 0
mov byte [edi], al
je 0x4ccebf
movzx eax, byte [ebp + 2]
movzx ecx, byte [ebp]
add ecx, eax
movzx eax, byte [ebp + 1]
add ecx, eax
mov dword [esp + 0x54], ecx
fild dword [esp + 0x54]
fstp dword [esp + 0x54]
fdivr dword [esp + 0x54]
fild dword [esp + 0x7c]
fstp qword [esp + 0x54]
fmul qword [esp + 0x54]
call fcn.00402170
mov edx, esi
sub edx, eax
imul edx, dword [esp + 0x2c]
imul eax, eax, 0xff
add eax, edx
cdq
idiv esi
mov byte [edi + 3], al
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x74]
jmp 0x4ccecc
movzx eax, byte [ebp + 1]
mov esi, 0xff
movzx ecx, byte [ebp + 2]
add ecx, eax
movzx eax, byte [ebp]
add ecx, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x54], ecx
fild dword [esp + 0x54]
sar eax, 0x18
and eax, esi
fstp dword [esp + 0x54]
fld dword [esp + 0x54]
mov dword [esp + 0x54], eax
fild dword [esp + 0x54]
fstp dword [esp + 0x54]
fmul dword [esp + 0x54]
fdivrp st(1)
call fcn.00402170
mov edx, eax
movzx eax, byte [esp + 0x7c]
mov dword [esp + 0x20], edx
mov dword [esp + 0x7c], eax
test edx, edx
jne 0x4ccd9d
movzx ecx, byte [edi + 2]
mov dword [esp + 0x2c], ecx
jmp 0x4ccde6
mov ecx, dword [esp + 0x10]
test eax, eax
jne 0x4ccdae
movzx ebx, cl
mov dword [esp + 0x2c], ebx
jmp 0x4ccdea
movzx eax, byte [edi + 2]
sub esi, edx
imul eax, esi
imul esi, dword [esp + 0x7c]
movzx ecx, cl
imul ecx, edx
imul eax, dword [esp + 0x7c]
imul ecx, ecx, 0xff
add eax, ecx
imul ecx, edx, 0xff
cdq
add esi, ecx
idiv esi
mov edx, dword [esp + 0x20]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x2c]
mov byte [edi + 2], bl
mov ebx, 0xff
test edx, edx
jne 0x4cce00
movzx eax, byte [edi + 1]
jmp 0x4cce41
test eax, eax
jne 0x4cce0d
mov eax, ecx
sar eax, 8
and eax, ebx
jmp 0x4cce41
movzx eax, byte [edi + 1]
mov esi, ebx
sar ecx, 8
sub esi, edx
imul eax, esi
and ecx, ebx
imul esi, dword [esp + 0x7c]
imul ecx, edx
imul eax, dword [esp + 0x7c]
imul ecx, ecx, 0xff
add eax, ecx
imul ecx, edx, 0xff
cdq
add esi, ecx
idiv esi
mov edx, dword [esp + 0x20]
mov byte [edi + 1], al
test edx, edx
jne 0x4cce4d
movzx eax, byte [edi]
jmp 0x4cce97
mov ecx, dword [esp + 0x7c]
test ecx, ecx
jne 0x4cce62
mov ecx, dword [esp + 0x10]
mov eax, ecx
sar eax, 0x10
and eax, ebx
jmp 0x4cce9b
movzx eax, byte [edi]
mov esi, ebx
sub esi, edx
imul eax, esi
imul esi, dword [esp + 0x7c]
imul eax, ecx
mov ecx, dword [esp + 0x10]
sar ecx, 0x10
and ecx, ebx
imul ecx, edx
imul ecx, ecx, 0xff
add eax, ecx
imul ecx, edx, 0xff
cdq
add esi, ecx
idiv esi
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
cmp dword [esp + 0x38], 0
mov ebx, dword [esp + 0x60]
mov byte [edi], al
je 0x4ccd2e
mov esi, 0xff
mov eax, esi
sub eax, edx
imul eax, dword [esp + 0x7c]
jmp 0x4ccac5
mov esi, dword [esp + 0x14]
jmp 0x4cc469
fstp st(1)
fstp st(0)
mov edx, dword [esp + 0x30]
add ebp, 3
add edi, dword [ebx + 0xd4]
inc edx
fld qword [0x4e0c18]
fld1
fld dword [0x4e0c14]
mov dword [esp + 0x30], edx
cmp edx, eax
jl 0x4cbf72
mov edx, dword [esp + 0x3c]
fstp st(0)
fstp st(1)
fstp st(0)
fld qword [0x4e0c18]
fld1
fld dword [0x4e0c14]
fxch st(1)
mov ebp, dword [ebx + 0xd4]
inc esi
mov edi, dword [esp + 0x70]
mov dword [esp + 0x14], esi
cmp esi, dword [esp + 0x78]
jl 0x4cbf20
fstp st(1)
fstp st(1)
fstp st(0)
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret 0x20