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

Disassembly:
sub esp, 0x28c
mov eax, dword [0x500030]
xor eax, esp
mov dword [esp + 0x284], eax
push ebx
fld dword [esp + 0x298]
push ebp
fadd qword [0x4fd830]
mov ebp, dword [esp + 0x298]
push esi
push edi
mov edi, ecx
mov eax, dword [edi]
mov ebx, dword [eax + 4]
mov esi, dword [esp + 0x2c0]
imul ebx, ebp
add ebx, dword [eax + 0x18]
mov eax, dword [0x5042a4]
mov ecx, dword [eax]
mov eax, dword [ecx + 4]
imul eax, dword [0x5042a8]
add eax, dword [ecx + 0x18]
mov ecx, dword [ebx + 0x2c]
sub esp, 8
mov dword [esp + 0x94], edi
mov dword [esp + 0x90], eax
fstp qword [esp]
mov dword [esp + 0x8c], ecx
call sub.MSVCR90.dll_floor
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
call fcn.004dc850
fld dword [esp + 0x2b0]
fadd qword [0x4fd830]
mov dword [esp + 0x6c], eax
fstp qword [esp]
call sub.MSVCR90.dll_floor
fstp dword [esp + 0x18]
add esp, 8
fld dword [esp + 0x10]
call fcn.004dc850
lea edx, [esp + 0x90]
mov dword [esp + 0x30], eax
mov dword [esp + 0x7c], edx
cmp esi, 0x100
jne 0x497dd6
mov eax, dword [esp + 0x2c4]
test eax, eax
jne 0x497d71
fld dword [esp + 0x2bc]
sub esp, 0x1c
fstp dword [esp + 0x18]
fld dword [esp + 0x2d4]
fstp dword [esp + 0x14]
fld dword [esp + 0x2d0]
fstp dword [esp + 0x10]
fld dword [esp + 0x2cc]
fstp dword [esp + 0xc]
fld dword [esp + 0x2c8]
fstp dword [esp + 8]
fld dword [esp + 0x2c4]
fstp dword [esp + 4]
fld dword [esp + 0x2c0]
fstp dword [esp]
push ebp
push edi
call fcn.004833e0
add esp, 0x24
jmp 0x498828
cmp eax, 0x100
jne 0x497deb
fld dword [esp + 0x2bc]
sub esp, 0x1c
fstp dword [esp + 0x18]
fld dword [esp + 0x2d4]
fstp dword [esp + 0x14]
fld dword [esp + 0x2d0]
fstp dword [esp + 0x10]
fld dword [esp + 0x2cc]
fstp dword [esp + 0xc]
fld dword [esp + 0x2c8]
fstp dword [esp + 8]
fld dword [esp + 0x2c4]
fstp dword [esp + 4]
fld dword [esp + 0x2c0]
fstp dword [esp]
push ebp
push edi
call fcn.004965b0
add esp, 0x24
jmp 0x498828
test esi, esi
jne 0x497deb
cmp dword [esp + 0x2c4], 0x100
je 0x498828
fld dword [esp + 0x2b0]
fld st(0)
fld qword [0x4fd848]
fmul st(1), st(0)
fxch st(1)
call fcn.004dc850
fld qword [0x4fd878]
mov esi, eax
mov dword [esp + 0x70], eax
test esi, esi
jge 0x497e29
fld dword [esp + 0x2ac]
neg esi
fadd st(1)
mov dword [esp + 0x70], esi
fstp dword [esp + 0x2ac]
fld dword [esp + 0x2b4]
fld st(0)
fmulp st(3)
fxch st(2)
call fcn.004dc850
mov dword [esp + 0x74], eax
test eax, eax
jge 0x497e59
fadd dword [esp + 0x2ac]
neg eax
mov dword [esp + 0x74], eax
fstp dword [esp + 0x2ac]
jmp 0x497e5b
fstp st(0)
test esi, esi
je 0x499349
test eax, eax
je 0x499349
fldz
fld dword [esp + 0x2ac]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jp 0x497eaf
fld qword [0x4fd870]
fdivr st(1)
call fcn.004dc850
imul eax, eax, 0xfffffe98
mov ecx, 0x168
sub ecx, eax
mov dword [esp + 0x10], ecx
fiadd dword [esp + 0x10]
fstp dword [esp + 0x2ac]
fld dword [esp + 0x2ac]
fmul qword [0x4fd9a0]
call fcn.004dc850
cdq
mov ecx, 0xb40
idiv ecx
mov esi, edx
test esi, esi
jne 0x497eff
fmul dword [esp + 0x2bc]
mov edx, dword [esp + 0x2c4]
mov eax, dword [esp + 0x2c0]
push edx
fstp dword [esp + 0x14]
push eax
fld dword [esp + 0x18]
sub esp, 0x10
fstp dword [esp + 0xc]
fmul dword [esp + 0x2d0]
fstp dword [esp + 0x28]
fld dword [esp + 0x28]
jmp 0x497f40
cmp esi, 0x5a0
jne 0x497f68
mov ecx, dword [esp + 0x2c4]
fchs
fmul dword [esp + 0x2bc]
mov edx, dword [esp + 0x2c0]
push ecx
push edx
fstp dword [esp + 0x18]
sub esp, 0x10
fld dword [esp + 0x28]
fstp dword [esp + 0xc]
fchs
fmul dword [esp + 0x2d0]
fstp dword [esp + 0x28]
fld dword [esp + 0x28]
fstp dword [esp + 8]
fld dword [esp + 0x2c0]
fstp dword [esp + 4]
fld dword [esp + 0x2bc]
fstp dword [esp]
push ebp
push edi
call fcn.00465d60
add esp, 0x20
jmp 0x498828
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 0xc]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], ecx
lea eax, [esi + 0x2d0]
cdq
mov ecx, 0xb40
idiv ecx
mov ecx, dword [0x50423c]
mov eax, 0xb60b60b7
mov edi, dword [ebx]
mov ebp, dword [ebx + 4]
mov dword [esp + 0x68], edi
mov dword [esp + 0x60], ebp
mov edx, dword [ecx + edx*4]
mov dword [esp + 0x10], edx
imul esi
fild dword [esp + 0x10]
fstp dword [esp + 0x78]
fld dword [esp + 0x78]
fld qword [0x4fd998]
fmul st(1), st(0)
fxch st(1)
add edx, esi
sar edx, 0xb
fstp dword [esp + 0x20]
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0xb40
mov edx, esi
sub edx, eax
mov eax, dword [ecx + edx*4]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x10]
shl eax, 0x10
cdq
fild dword [esp + 0x4c]
idiv dword [esp + 0x70]
fstp dword [esp + 0x58]
fmul dword [esp + 0x58]
fstp dword [esp + 0x2c]
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fld dword [esp + 0x2b8]
fld st(0)
fdivp st(2)
fxch st(1)
call fcn.004dc850
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x4c]
shl eax, 0x10
cdq
idiv dword [esp + 0x74]
mov dword [esp + 0x10], eax
fidivr dword [esp + 0x10]
call fcn.004dc850
cmp esi, 0x2d0
mov dword [esp + 0x38], eax
jge 0x4980b6
mov eax, dword [esp + 0x1c]
mov ecx, eax
neg ecx
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, ecx
neg edx
fstp dword [esp + 0x18]
mov dword [esp + 0x10], edx
fld dword [esp + 0x18]
sub edi, eax
fst dword [esp + 0x3c]
dec edi
fild dword [esp + 0x10]
mov dword [esp + 0x10], edi
sub ebp, ecx
dec ebp
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fst dword [esp + 0x40]
fild dword [esp + 0x10]
mov dword [esp + 0x10], ebp
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fst dword [esp + 0x28]
fstp dword [esp + 0x44]
fstp dword [esp + 0x48]
fild dword [esp + 0x10]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fst dword [esp + 0x18]
fstp dword [esp + 0x10]
fstp dword [esp + 0x4c]
jmp 0x49822a
cmp esi, 0x5a0
jge 0x498129
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
sub edi, eax
dec edi
mov dword [esp + 0x10], edi
fild dword [esp + 0x10]
mov edx, ecx
neg edx
mov dword [esp + 0x10], edx
fstp dword [esp + 0x18]
sub ebp, ecx
fld dword [esp + 0x18]
dec ebp
fst dword [esp + 0x3c]
neg eax
fild dword [esp + 0x10]
mov dword [esp + 0x10], ebp
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fst dword [esp + 0x40]
fxch st(1)
fstp dword [esp + 0x28]
fild dword [esp + 0x10]
mov dword [esp + 0x10], eax
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fst dword [esp + 0x48]
fild dword [esp + 0x10]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
jmp 0x49821a
cmp esi, 0x870
jge 0x4981a8
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
sub edi, eax
dec edi
mov dword [esp + 0x10], edi
fild dword [esp + 0x10]
sub ebp, ecx
dec ebp
mov dword [esp + 0x10], ebp
fstp dword [esp + 0x18]
neg eax
fld dword [esp + 0x18]
neg ecx
fst dword [esp + 0x3c]
fild dword [esp + 0x10]
mov dword [esp + 0x10], eax
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fst dword [esp + 0x40]
fild dword [esp + 0x10]
mov dword [esp + 0x10], ecx
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fst dword [esp + 0x28]
fstp dword [esp + 0x44]
fstp dword [esp + 0x48]
fild dword [esp + 0x10]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fst dword [esp + 0x18]
fstp dword [esp + 0x10]
fstp dword [esp + 0x4c]
jmp 0x49822a
cmp esi, 0xb40
jge 0x499349
mov eax, dword [esp + 0x1c]
mov ecx, eax
neg ecx
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
sub ebp, ecx
dec ebp
fstp dword [esp + 0x18]
mov dword [esp + 0x10], ebp
fld dword [esp + 0x18]
neg ecx
fst dword [esp + 0x3c]
sub edi, eax
fild dword [esp + 0x10]
mov dword [esp + 0x10], ecx
dec edi
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fst dword [esp + 0x40]
fxch st(1)
fstp dword [esp + 0x28]
fild dword [esp + 0x10]
mov dword [esp + 0x10], edi
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fst dword [esp + 0x48]
fild dword [esp + 0x10]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fst dword [esp + 0x44]
fstp dword [esp + 0x4c]
fstp dword [esp + 0x18]
fstp dword [esp + 0x10]
fld dword [esp + 0x3c]
push ecx
fmul st(2)
fstp dword [esp + 0x40]
fld dword [esp + 0x44]
fmul st(1)
fstp dword [esp + 0x44]
fld dword [esp + 0x2c]
fmul st(2)
fstp dword [esp + 0x2c]
fld dword [esp + 0x4c]
fmul st(1)
fstp dword [esp + 0x4c]
fld dword [esp + 0x48]
fmulp st(2)
fxch st(1)
fstp dword [esp + 0x48]
fmul dword [esp + 0x1c]
fstp dword [esp + 0x1c]
fld dword [esp + 0x44]
fmul dword [esp + 0x24]
fld dword [esp + 0x40]
fmul dword [esp + 0x30]
fsubp st(1)
fmul dword [esp + 0x2c0]
fstp dword [esp + 0x70]
fld dword [esp + 0x70]
fstp dword [esp]
call fcn.00461890
fld dword [esp + 0x1c]
mov edi, eax
fmul dword [esp + 0x24]
mov dword [esp + 0x84], edi
fld dword [esp + 0x48]
fmul dword [esp + 0x30]
fsubp st(1)
fmul dword [esp + 0x2c0]
fstp dword [esp + 0x70]
fld dword [esp + 0x70]
fstp dword [esp]
call fcn.00461890
fld dword [esp + 0x4c]
mov ebp, eax
fmul dword [esp + 0x24]
mov dword [esp + 0x70], ebp
fld dword [esp + 0x2c]
fmul dword [esp + 0x30]
fsubp st(1)
fmul dword [esp + 0x2c0]
fstp dword [esp + 0x54]
fld dword [esp + 0x54]
fstp dword [esp]
call fcn.00461890
fld dword [esp + 0x14]
mov esi, eax
fmul dword [esp + 0x2b8]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fmul dword [esp + 0x24]
fld dword [esp + 0x50]
fmul dword [esp + 0x2b4]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fmul dword [esp + 0x30]
fsubp st(1)
fmul dword [esp + 0x2c0]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fstp dword [esp]
call fcn.00461890
mov dword [esp + 0x54], eax
mov eax, esi
add esp, 4
sub eax, edi
mov dword [esp + 0x10], eax
je 0x4983f9
mov eax, esi
sub eax, ebp
mov dword [esp + 0x4c], eax
je 0x4983f9
fld dword [esp + 0x48]
fld dword [esp + 0x2c]
fld st(0)
fmulp st(2)
fld dword [esp + 0x28]
fld dword [esp + 0x20]
fld st(0)
fmulp st(2)
fxch st(3)
faddp st(1)
fld dword [esp + 0x40]
fmul st(2)
fld dword [esp + 0x3c]
fmul st(4)
faddp st(1)
fsubr st(1)
fld qword [0x4fd990]
fmul st(1), st(0)
fld dword [esp + 0x2b8]
fld st(0)
fmulp st(3)
fild dword [esp + 0x10]
fdivp st(3)
fxch st(2)
call fcn.004dc850
mov edi, eax
mov dword [esp + 0x54], eax
test edi, edi
jge 0x4983b9
neg edi
mov dword [esp + 0x54], edi
fld dword [esp + 0x18]
fmulp st(4)
fld dword [esp + 0x44]
fmulp st(5)
fxch st(3)
faddp st(4)
fxch st(3)
fsub st(1)
fmul st(2)
fmul st(3)
fidiv dword [esp + 0x4c]
call fcn.004dc850
mov ebp, eax
mov dword [esp + 0x5c], eax
test ebp, ebp
jge 0x4983ea
neg ebp
mov dword [esp + 0x5c], ebp
fmulp st(1)
fmulp st(1)
call fcn.004dc850
mov dword [esp + 0x24], eax
jmp 0x49845a
fld dword [esp + 0x40]
xor ebp, ebp
fld dword [esp + 0x2c]
xor edi, edi
fld st(0)
mov dword [esp + 0x5c], ebp
fmulp st(2)
mov dword [esp + 0x54], edi
fld dword [esp + 0x3c]
fld dword [esp + 0x20]
fld st(0)
fmulp st(2)
fxch st(3)
faddp st(1)
fld qword [0x4fd990]
fmul st(1), st(0)
fld dword [esp + 0x2b8]
fld st(0)
fmulp st(3)
fxch st(2)
call fcn.004dc850
fld dword [esp + 0x18]
fmulp st(3)
mov dword [esp + 0x24], eax
fld dword [esp + 0x44]
fmulp st(4)
fxch st(2)
faddp st(3)
fxch st(2)
fmulp st(1)
fmulp st(1)
call fcn.004dc850
mov dword [esp + 0x20], eax
mov eax, dword [0x504210]
sub eax, dword [esp + 0x30]
cmp esi, eax
jge 0x498497
mov ecx, dword [esp + 0x20]
cmp esi, dword [esp + 0x80]
jge 0x49847e
sub dword [esp + 0x24], edi
jmp 0x498482
add dword [esp + 0x24], ebp
cmp esi, dword [esp + 0x6c]
jge 0x49848c
add ecx, ebp
jmp 0x49848e
sub ecx, edi
inc esi
cmp esi, eax
jl 0x49846f
mov dword [esp + 0x20], ecx
mov eax, dword [0x504214]
sub eax, dword [esp + 0x30]
cmp dword [esp + 0x50], eax
jl 0x4984ab
dec eax
mov dword [esp + 0x50], eax
mov edx, dword [esp + 0x2a0]
mov ebp, dword [esp + 0x8c]
push edx
mov eax, ebp
call fcn.00465970
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
je 0x498828
mov eax, dword [0x5042a8]
push eax
mov eax, dword [0x5042a4]
call fcn.00465970
mov dword [esp + 0x50], eax
mov eax, dword [ebx + 0x30]
add esp, 4
mov ecx, ebp
call fcn.00465950
mov ecx, dword [esp + 0x2c0]
add eax, 0x10
cmp ecx, 0x100
jne 0x49850c
mov dword [esp + 0x7c], eax
jmp 0x4985ce
test ecx, ecx
jne 0x49852d
mov ecx, dword [ebx + 0x14]
add ecx, ecx
push ecx
lea edx, [esp + 0x94]
push 0
push edx
call sub.MSVCR90.dll_memset
add esp, 0xc
jmp 0x4985ce
mov ebx, dword [ebx + 0x14]
cmp ecx, 0x80
jne 0x49856e
mov ecx, 1
cmp ebx, ecx
jle 0x4985ce
jmp 0x498550
mov dx, word [eax + ecx*2]
shr dx, 1
mov edi, 0x7bef
and dx, di
mov word [esp + ecx*2 + 0x90], dx
inc ecx
cmp ecx, ebx
jl 0x498550
jmp 0x4985ce
mov edx, 1
cmp ebx, edx
jle 0x4985ce
mov ebp, ecx
movzx ecx, word [eax + edx*2]
mov edi, ecx
and edi, 0x7e0
imul edi, ebp
mov ebp, ecx
and ebp, 0x1f
imul ebp, dword [esp + 0x2c0]
shr edi, 8
shr ebp, 8
and edi, 0x7e0
and ebp, 0x1f
or edi, ebp
mov ebp, dword [esp + 0x2c0]
and ecx, 0xf800
imul ecx, ebp
shr ecx, 8
and ecx, 0xf800
or edi, ecx
mov word [esp + edx*2 + 0x90], di
inc edx
cmp edx, ebx
jl 0x498579
mov ecx, dword [esp + 0x2c4]
test ecx, ecx
jne 0x498841
cmp esi, dword [esp + 0x50]
mov dword [esp + 0x2c], esi
jg 0x498828
mov edx, dword [esp + 0x64]
fild dword [esp + 0x70]
mov eax, dword [0x504208]
mov ecx, dword [0x50420c]
mov ebx, dword [esp + 0x1c]
fstp dword [esp + 0x28]
fild dword [esp + 0x74]
sub eax, edx
sub ecx, edx
mov edx, dword [esp + 0x14]
shl edx, 0x10
fstp dword [esp + 0x3c]
fld qword [0x4fd988]
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x30]
fld dword [esp + 0x28]
fld dword [esp + 0x78]
lea ebp, [esi + edx]
fld dword [esp + 0x58]
shl ebx, 0x10
add ebp, ebp
add ebp, ebp
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x30], ebp
jmp 0x49865b
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
sar esi, 0x10
sar edi, 0x10
cmp esi, eax
mov dword [esp + 0x14], esi
jge 0x498677
mov esi, eax
mov dword [esp + 0x14], eax
cmp edi, ecx
jl 0x49867e
lea edi, [ecx - 1]
fild dword [esp + 0x14]
fdiv dword [esp + 0x2b8]
fild dword [esp + 0x2c]
fdiv dword [esp + 0x2bc]
fld st(3)
fmul st(2)
fld st(3)
fmul st(2)
fsubp st(1)
fmul st(6)
fdiv st(5)
call fcn.004dc850
fmul st(3)
fld st(2)
sub ebx, eax
fmulp st(2)
faddp st(1)
fmul st(4)
fdiv dword [esp + 0x3c]
call fcn.004dc850
mov edx, dword [esp + 0x40]
sub edx, eax
mov eax, dword [esp + 0x64]
lea ecx, [esi + eax]
mov eax, dword [esp + 0x88]
mov eax, dword [eax + 0x2c]
mov eax, dword [eax + ebp]
mov ebp, dword [esp + 0x38]
lea eax, [eax + ecx*2]
add eax, dword [esp + 0x4c]
mov ecx, edi
sub ecx, esi
mov dword [esp + 0x14], eax
lea eax, [ecx + 1]
mov ecx, eax
imul eax, ebp
imul ecx, dword [esp + 0x34]
add eax, edx
add ecx, ebx
cmp edi, esi
mov dword [esp + 0x1c], eax
jl 0x49877f
sar eax, 0x10
cmp eax, dword [esp + 0x60]
mov dword [esp + 0x28], eax
jge 0x498729
mov eax, ecx
sar eax, 0x10
cmp eax, dword [esp + 0x68]
jge 0x498729
cmp dword [esp + 0x28], 0
jl 0x498729
test eax, eax
jge 0x498742
mov eax, dword [esp + 0x1c]
mov ebp, dword [esp + 0x38]
sub ecx, dword [esp + 0x34]
sub eax, ebp
dec edi
cmp edi, esi
mov dword [esp + 0x1c], eax
jge 0x498706
jmp 0x49877f
cmp esi, edi
mov ebp, dword [esp + 0x38]
jg 0x49877f
mov eax, edx
sar eax, 0x10
cmp eax, dword [esp + 0x60]
mov dword [esp + 0x58], eax
jge 0x49876f
mov eax, ebx
sar eax, 0x10
cmp eax, dword [esp + 0x68]
jge 0x49876f
cmp dword [esp + 0x58], 0
jl 0x49876f
test eax, eax
jge 0x49877f
add ebx, dword [esp + 0x34]
add dword [esp + 0x14], 2
inc esi
add edx, ebp
cmp esi, edi
jle 0x49874a
sub edi, esi
inc edi
test edi, edi
jle 0x4987cf
mov ecx, dword [esp + 0x84]
mov eax, edx
sar eax, 0x10
mov eax, dword [ecx + eax*4]
mov esi, ebx
sar esi, 0x10
add eax, esi
mov esi, dword [esp + 0x10]
movzx ax, byte [eax + esi]
movzx eax, ax
test ax, ax
je 0x4987bf
mov esi, dword [esp + 0x7c]
movzx eax, ax
mov ax, word [esi + eax*2]
mov esi, dword [esp + 0x14]
mov word [esi], ax
add ebx, dword [esp + 0x34]
add dword [esp + 0x14], 2
add edx, ebp
sub edi, 1
jne 0x49878d
mov eax, dword [esp + 0x2c]
cmp eax, dword [esp + 0x80]
jge 0x4987e6
mov ecx, dword [esp + 0x54]
sub dword [esp + 0x24], ecx
jmp 0x4987ee
mov edx, dword [esp + 0x5c]
add dword [esp + 0x24], edx
cmp eax, dword [esp + 0x6c]
jge 0x4987fe
mov ecx, dword [esp + 0x5c]
add dword [esp + 0x20], ecx
jmp 0x498806
mov edx, dword [esp + 0x54]
sub dword [esp + 0x20], edx
mov ebp, dword [esp + 0x30]
inc eax
add ebp, 4
cmp eax, dword [esp + 0x50]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ebp
jle 0x49864f
fstp st(3)
fstp st(0)
fstp st(1)
fstp st(0)
mov ecx, dword [esp + 0x294]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004dc814
add esp, 0x28c
ret
mov eax, dword [esp + 0x2c0]
add eax, ecx
cmp eax, 0x100
jg 0x498dc4
cmp ecx, 0x80
jne 0x498af7
cmp esi, dword [esp + 0x50]
mov dword [esp + 0x2c], esi
jg 0x498828
mov edx, dword [esp + 0x64]
fild dword [esp + 0x70]
mov eax, dword [0x504208]
mov ecx, dword [0x50420c]
mov ebx, dword [esp + 0x1c]
fstp dword [esp + 0x28]
fild dword [esp + 0x74]
sub eax, edx
sub ecx, edx
mov edx, dword [esp + 0x14]
shl edx, 0x10
fstp dword [esp + 0x3c]
fld qword [0x4fd988]
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x30]
fld dword [esp + 0x28]
fld dword [esp + 0x78]
lea ebp, [esi + edx]
fld dword [esp + 0x58]
shl ebx, 0x10
add ebp, ebp
add ebp, ebp
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x30], ebp
jmp 0x4988db
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
sar esi, 0x10
sar edi, 0x10
cmp esi, eax
mov dword [esp + 0x14], esi
jge 0x4988f7
mov esi, eax
mov dword [esp + 0x14], eax
cmp edi, ecx
jl 0x4988fe
lea edi, [ecx - 1]
fild dword [esp + 0x14]
fdiv dword [esp + 0x2b8]
fild dword [esp + 0x2c]
fdiv dword [esp + 0x2bc]
fld st(3)
fmul st(2)
fld st(3)
fmul st(2)
fsubp st(1)
fmul st(6)
fdiv st(5)
call fcn.004dc850
fmul st(3)
fld st(2)
sub ebx, eax
fmulp st(2)
faddp st(1)
fmul st(4)
fdiv dword [esp + 0x3c]
call fcn.004dc850
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x88]
sub ecx, eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x14], ecx
lea ecx, [esi + eax]
mov eax, dword [edx + 0x2c]
mov edx, dword [eax + ebp]
mov ebp, dword [esp + 0x14]
mov eax, edi
sub eax, esi
inc eax
lea edx, [edx + ecx*2]
add edx, dword [esp + 0x4c]
mov ecx, eax
imul eax, dword [esp + 0x38]
imul ecx, dword [esp + 0x34]
add eax, ebp
add ecx, ebx
cmp edi, esi
mov dword [esp + 0x1c], eax
jl 0x498a05
sar eax, 0x10
cmp eax, dword [esp + 0x60]
mov dword [esp + 0x28], eax
jge 0x4989a9
mov eax, ecx
sar eax, 0x10
cmp eax, dword [esp + 0x68]
jge 0x4989a9
cmp dword [esp + 0x28], 0
jl 0x4989a9
test eax, eax
jge 0x4989c4
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x38]
sub ecx, dword [esp + 0x34]
dec edi
cmp edi, esi
mov dword [esp + 0x1c], eax
jge 0x498986
mov ebp, dword [esp + 0x14]
jmp 0x498a05
cmp esi, edi
mov ebp, dword [esp + 0x14]
jg 0x498a05
mov eax, ebp
sar eax, 0x10
cmp eax, dword [esp + 0x60]
mov dword [esp + 0x58], eax
jge 0x4989f1
mov eax, ebx
sar eax, 0x10
cmp eax, dword [esp + 0x68]
jge 0x4989f1
cmp dword [esp + 0x58], 0
jl 0x4989f1
test eax, eax
jge 0x498a01
add ebx, dword [esp + 0x34]
add ebp, dword [esp + 0x38]
inc esi
add edx, 2
cmp esi, edi
jle 0x4989cc
mov dword [esp + 0x14], ebp
sub edi, esi
inc edi
test edi, edi
jle 0x498aa1
mov dword [esp + 0x1c], edi
mov esi, dword [esp + 0x84]
mov ecx, ebp
sar ecx, 0x10
mov ecx, dword [esi + ecx*4]
mov eax, ebx
sar eax, 0x10
add ecx, eax
mov eax, dword [esp + 0x10]
movzx cx, byte [ecx + eax]
movzx eax, cx
test ax, ax
je 0x498a87
mov ecx, dword [esp + 0x7c]
movzx eax, ax
movzx ecx, word [ecx + eax*2]
movzx eax, word [edx]
shr eax, 1
and eax, 0x7bef
mov esi, eax
mov edi, ecx
and edi, 0xf800
and esi, 0xf800
add esi, edi
mov edi, eax
mov ebp, ecx
and ebp, 0x7e0
and edi, 0x7e0
add edi, ebp
mov ebp, dword [esp + 0x14]
and eax, 0x1f
and ecx, 0x1f
or esi, edi
add eax, ecx
or esi, eax
mov word [edx], si
add ebp, dword [esp + 0x38]
add ebx, dword [esp + 0x34]
add edx, 2
sub dword [esp + 0x1c], 1
mov dword [esp + 0x14], ebp
jne 0x498a14
mov eax, dword [esp + 0x2c]
cmp eax, dword [esp + 0x80]
jge 0x498ab8
mov edx, dword [esp + 0x54]
sub dword [esp + 0x24], edx
jmp 0x498ac0
mov ecx, dword [esp + 0x5c]
add dword [esp + 0x24], ecx
cmp eax, dword [esp + 0x6c]
jge 0x498ad0
mov edx, dword [esp + 0x5c]
add dword [esp + 0x20], edx
jmp 0x498ad8
mov ecx, dword [esp + 0x54]
sub dword [esp + 0x20], ecx
mov ebp, dword [esp + 0x30]
inc eax
add ebp, 4
cmp eax, dword [esp + 0x50]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ebp
jle 0x4988cf
jmp 0x498820
cmp eax, 0x100
jg 0x498dc4
cmp esi, dword [esp + 0x50]
mov dword [esp + 0x2c], esi
jg 0x498828
mov edx, dword [esp + 0x64]
fild dword [esp + 0x70]
mov eax, dword [0x504208]
mov ecx, dword [0x50420c]
mov ebx, dword [esp + 0x1c]
fstp dword [esp + 0x28]
fild dword [esp + 0x74]
sub eax, edx
sub ecx, edx
mov edx, dword [esp + 0x14]
shl edx, 0x10
fstp dword [esp + 0x3c]
fld qword [0x4fd988]
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x30]
fld dword [esp + 0x28]
fld dword [esp + 0x78]
lea ebp, [esi + edx]
fld dword [esp + 0x58]
shl ebx, 0x10
add ebp, ebp
add ebp, ebp
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x30], ebp
jmp 0x498b80
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
sar esi, 0x10
sar edi, 0x10
cmp esi, eax
mov dword [esp + 0x14], esi
jge 0x498b9c
mov esi, eax
mov dword [esp + 0x14], eax
cmp edi, ecx
jl 0x498ba3
lea edi, [ecx - 1]
fild dword [esp + 0x14]
fdiv dword [esp + 0x2b8]
fild dword [esp + 0x2c]
fdiv dword [esp + 0x2bc]
fld st(3)
fmul st(2)
fld st(3)
fmul st(2)
fsubp st(1)
fmul st(6)
fdiv st(5)
call fcn.004dc850
fmul st(3)
fld st(2)
sub ebx, eax
fmulp st(2)
faddp st(1)
fmul st(4)
fdiv dword [esp + 0x3c]
call fcn.004dc850
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x88]
sub ecx, eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x14], ecx
lea ecx, [esi + eax]
mov eax, dword [edx + 0x2c]
mov edx, dword [eax + ebp]
mov ebp, dword [esp + 0x14]
mov eax, edi
sub eax, esi
inc eax
lea edx, [edx + ecx*2]
add edx, dword [esp + 0x4c]
mov ecx, eax
imul eax, dword [esp + 0x38]
imul ecx, dword [esp + 0x34]
add eax, ebp
add ecx, ebx
cmp edi, esi
mov dword [esp + 0x1c], eax
jl 0x498caa
sar eax, 0x10
cmp eax, dword [esp + 0x60]
mov dword [esp + 0x28], eax
jge 0x498c4e
mov eax, ecx
sar eax, 0x10
cmp eax, dword [esp + 0x68]
jge 0x498c4e
cmp dword [esp + 0x28], 0
jl 0x498c4e
test eax, eax
jge 0x498c69
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x38]
sub ecx, dword [esp + 0x34]
dec edi
cmp edi, esi
mov dword [esp + 0x1c], eax
jge 0x498c2b
mov ebp, dword [esp + 0x14]
jmp 0x498caa
cmp esi, edi
mov ebp, dword [esp + 0x14]
jg 0x498caa
mov eax, ebp
sar eax, 0x10
cmp eax, dword [esp + 0x60]
mov dword [esp + 0x58], eax
jge 0x498c96
mov eax, ebx
sar eax, 0x10
cmp eax, dword [esp + 0x68]
jge 0x498c96
cmp dword [esp + 0x58], 0
jl 0x498c96
test eax, eax
jge 0x498ca6
add ebx, dword [esp + 0x34]
add ebp, dword [esp + 0x38]
inc esi
add edx, 2
cmp esi, edi
jle 0x498c71
mov dword [esp + 0x14], ebp
sub edi, esi
inc edi
test edi, edi
jle 0x498d6e
mov esi, dword [esp + 0x2c4]
mov dword [esp + 0x1c], edi
mov edi, dword [esp + 0x84]
mov ecx, ebp
sar ecx, 0x10
mov ecx, dword [edi + ecx*4]
mov eax, ebx
sar eax, 0x10
add ecx, eax
mov eax, dword [esp + 0x10]
movzx cx, byte [ecx + eax]
movzx eax, cx
test ax, ax
je 0x498d54
mov ecx, dword [esp + 0x7c]
movzx eax, ax
movzx ecx, word [ecx + eax*2]
movzx eax, word [edx]
mov edi, eax
and edi, 0xf800
imul edi, esi
shr edi, 8
mov ebp, ecx
and ebp, 0xf800
and edi, 0xf800
add edi, ebp
mov ebp, eax
and ebp, 0x7e0
imul ebp, esi
shr ebp, 8
mov esi, ecx
and ebp, 0x7e0
and esi, 0x7e0
add ebp, esi
mov esi, dword [esp + 0x2c4]
and eax, 0x1f
imul eax, esi
shr eax, 8
and eax, 0x1f
and ecx, 0x1f
or edi, ebp
mov ebp, dword [esp + 0x14]
add eax, ecx
or edi, eax
mov word [edx], di
add ebp, dword [esp + 0x38]
add ebx, dword [esp + 0x34]
add edx, 2
sub dword [esp + 0x1c], 1
mov dword [esp + 0x14], ebp
jne 0x498cc0
mov eax, dword [esp + 0x2c]
cmp eax, dword [esp + 0x80]
jge 0x498d85
mov edx, dword [esp + 0x54]
sub dword [esp + 0x24], edx
jmp 0x498d8d
mov ecx, dword [esp + 0x5c]
add dword [esp + 0x24], ecx
cmp eax, dword [esp + 0x6c]
jge 0x498d9d
mov edx, dword [esp + 0x5c]
add dword [esp + 0x20], edx
jmp 0x498da5
mov ecx, dword [esp + 0x54]
sub dword [esp + 0x20], ecx
mov ebp, dword [esp + 0x30]
inc eax
add ebp, 4
cmp eax, dword [esp + 0x50]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ebp
jle 0x498b74
jmp 0x498820
mov dword [esp + 0x2c], esi
cmp ecx, 0x80
jne 0x49907b
cmp esi, dword [esp + 0x50]
jg 0x498828
mov edx, dword [esp + 0x64]
fild dword [esp + 0x70]
mov eax, dword [0x504208]
mov ecx, dword [0x50420c]
mov ebx, dword [esp + 0x1c]
fstp dword [esp + 0x28]
fild dword [esp + 0x74]
sub eax, edx
sub ecx, edx
mov edx, dword [esp + 0x14]
shl edx, 0x10
fstp dword [esp + 0x3c]
fld qword [0x4fd988]
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x30]
fld dword [esp + 0x28]
fld dword [esp + 0x78]
lea ebp, [esi + edx]
fld dword [esp + 0x58]
shl ebx, 0x10
add ebp, ebp
add ebp, ebp
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x30], ebp
jmp 0x498e4e
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
sar esi, 0x10
sar edi, 0x10
cmp esi, eax
mov dword [esp + 0x14], esi
jge 0x498e6a
mov esi, eax
mov dword [esp + 0x14], eax
cmp edi, ecx
jl 0x498e71
lea edi, [ecx - 1]
fild dword [esp + 0x14]
fdiv dword [esp + 0x2b8]
fild dword [esp + 0x2c]
fdiv dword [esp + 0x2bc]
fld st(3)
fmul st(2)
fld st(3)
fmul st(2)
fsubp st(1)
fmul st(6)
fdiv st(5)
call fcn.004dc850
fmul st(3)
fld st(2)
sub ebx, eax
fmulp st(2)
faddp st(1)
fmul st(4)
fdiv dword [esp + 0x3c]
call fcn.004dc850
mov edx, dword [esp + 0x40]
sub edx, eax
mov eax, dword [esp + 0x64]
lea ecx, [esi + eax]
mov eax, dword [esp + 0x88]
mov eax, dword [eax + 0x2c]
mov eax, dword [eax + ebp]
lea eax, [eax + ecx*2]
add eax, dword [esp + 0x4c]
mov ecx, edi
sub ecx, esi
mov dword [esp + 0x14], eax
lea eax, [ecx + 1]
mov ecx, eax
imul eax, dword [esp + 0x38]
imul ecx, dword [esp + 0x34]
add eax, edx
add ecx, ebx
cmp edi, esi
mov dword [esp + 0x1c], eax
jl 0x498f63
sar eax, 0x10
cmp eax, dword [esp + 0x60]
mov dword [esp + 0x28], eax
jge 0x498f16
mov eax, ecx
sar eax, 0x10
cmp eax, dword [esp + 0x68]
jge 0x498f16
cmp dword [esp + 0x28], 0
jl 0x498f16
test eax, eax
jge 0x498f2d
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x38]
sub ecx, dword [esp + 0x34]
dec edi
cmp edi, esi
mov dword [esp + 0x1c], eax
jge 0x498ef3
jmp 0x498f63
cmp esi, edi
jg 0x498f63
mov ebp, dword [esp + 0x60]
mov ecx, edx
sar ecx, 0x10
cmp ecx, ebp
jge 0x498f51
mov eax, ebx
sar eax, 0x10
cmp eax, dword [esp + 0x68]
jge 0x498f51
test ecx, ecx
jl 0x498f51
test eax, eax
jge 0x498f63
add ebx, dword [esp + 0x34]
add edx, dword [esp + 0x38]
add dword [esp + 0x14], 2
inc esi
cmp esi, edi
jle 0x498f35
sub edi, esi
inc edi
test edi, edi
jle 0x499025
mov dword [esp + 0x1c], edi
mov esi, dword [esp + 0x84]
mov eax, edx
sar eax, 0x10
mov eax, dword [esi + eax*4]
mov ecx, ebx
sar ecx, 0x10
add eax, ecx
mov ecx, dword [esp + 0x10]
movzx ax, byte [eax + ecx]
movzx eax, ax
test ax, ax
je 0x49900d
movzx ecx, ax
mov eax, dword [esp + 0x7c]
movzx esi, word [eax + ecx*2]
mov ecx, dword [esp + 0x14]
movzx eax, word [ecx]
shr eax, 1
and eax, 0x7bef
mov ecx, eax
mov edi, esi
and ecx, 0xf800
and edi, 0xf800
add ecx, edi
cmp ecx, 0xf800
jbe 0x498fd1
mov ecx, 0xf800
mov edi, eax
mov ebp, esi
and edi, 0x7e0
and ebp, 0x7e0
add edi, ebp
cmp edi, 0x7e0
jbe 0x498ff0
mov edi, 0x7e0
and eax, 0x1f
and esi, 0x1f
add eax, esi
cmp eax, 0x1f
jbe 0x499002
mov eax, 0x1f
or eax, edi
or eax, ecx
mov ecx, dword [esp + 0x14]
mov word [ecx], ax
add ebx, dword [esp + 0x34]
add edx, dword [esp + 0x38]
add dword [esp + 0x14], 2
sub dword [esp + 0x1c], 1
jne 0x498f72
mov eax, dword [esp + 0x2c]
cmp eax, dword [esp + 0x80]
jge 0x49903c
mov edx, dword [esp + 0x54]
sub dword [esp + 0x24], edx
jmp 0x499044
mov ecx, dword [esp + 0x5c]
add dword [esp + 0x24], ecx
cmp eax, dword [esp + 0x6c]
jge 0x499054
mov edx, dword [esp + 0x5c]
add dword [esp + 0x20], edx
jmp 0x49905c
mov ecx, dword [esp + 0x54]
sub dword [esp + 0x20], ecx
mov ebp, dword [esp + 0x30]
inc eax
add ebp, 4
cmp eax, dword [esp + 0x50]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ebp
jle 0x498e42
jmp 0x498820
cmp esi, dword [esp + 0x50]
jg 0x498828
mov edx, dword [esp + 0x64]
fild dword [esp + 0x70]
mov eax, dword [0x504208]
mov ecx, dword [0x50420c]
sub eax, edx
fstp dword [esp + 0x28]
fild dword [esp + 0x74]
sub ecx, edx
mov edx, dword [esp + 0x1c]
shl edx, 0x10
mov dword [esp + 0x18], edx
fstp dword [esp + 0x3c]
mov edx, dword [esp + 0x14]
fld qword [0x4fd988]
fld dword [esp + 0x28]
shl edx, 0x10
fld dword [esp + 0x78]
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x30]
fld dword [esp + 0x58]
add esi, edx
add esi, esi
add esi, esi
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x30], esi
jmp 0x4990f0
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
sar esi, 0x10
sar edi, 0x10
cmp esi, eax
mov dword [esp + 0x14], esi
jge 0x49910c
mov esi, eax
mov dword [esp + 0x14], eax
cmp edi, ecx
jl 0x499113
lea edi, [ecx - 1]
fild dword [esp + 0x14]
fdiv dword [esp + 0x2b8]
fild dword [esp + 0x2c]
fdiv dword [esp + 0x2bc]
fld st(3)
fmul st(2)
fld st(3)
fmul st(2)
fsubp st(1)
fmul st(6)
fdiv st(5)
call fcn.004dc850
fmul st(3)
fld st(2)
mov ebx, dword [esp + 0x18]
fmulp st(2)
sub ebx, eax
faddp st(1)
fmul st(4)
fdiv dword [esp + 0x3c]
call fcn.004dc850
mov ebp, dword [esp + 0x40]
mov edx, dword [esp + 0x88]
sub ebp, eax
mov eax, dword [esp + 0x64]
lea ecx, [esi + eax]
mov eax, dword [edx + 0x2c]
mov edx, dword [esp + 0x30]
mov eax, dword [eax + edx]
lea eax, [eax + ecx*2]
add eax, dword [esp + 0x4c]
mov ecx, edi
sub ecx, esi
mov dword [esp + 0x14], eax
lea eax, [ecx + 1]
mov ecx, eax
imul eax, dword [esp + 0x38]
imul ecx, dword [esp + 0x34]
add eax, ebp
add ecx, ebx
cmp edi, esi
mov dword [esp + 0x1c], eax
jl 0x49920d
sar eax, 0x10
cmp eax, dword [esp + 0x60]
mov dword [esp + 0x28], eax
jge 0x4991c0
mov eax, ecx
sar eax, 0x10
cmp eax, dword [esp + 0x68]
jge 0x4991c0
cmp dword [esp + 0x28], 0
jl 0x4991c0
test eax, eax
jge 0x4991d7
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x38]
sub ecx, dword [esp + 0x34]
dec edi
cmp edi, esi
mov dword [esp + 0x1c], eax
jge 0x49919d
jmp 0x49920d
cmp esi, edi
jg 0x49920d
mov edx, dword [esp + 0x60]
mov ecx, ebp
sar ecx, 0x10
cmp ecx, edx
jge 0x4991fb
mov eax, ebx
sar eax, 0x10
cmp eax, dword [esp + 0x68]
jge 0x4991fb
test ecx, ecx
jl 0x4991fb
test eax, eax
jge 0x49920d
add ebx, dword [esp + 0x34]
add ebp, dword [esp + 0x38]
add dword [esp + 0x14], 2
inc esi
cmp esi, edi
jle 0x4991df
sub edi, esi
inc edi
test edi, edi
jle 0x4992f9
mov dword [esp + 0x1c], edi
mov ecx, dword [esp + 0x84]
mov edx, ebp
sar edx, 0x10
mov edx, dword [ecx + edx*4]
mov eax, ebx
sar eax, 0x10
add edx, eax
mov eax, dword [esp + 0x10]
movzx cx, byte [edx + eax]
movzx eax, cx
test ax, ax
je 0x4992e1
mov ecx, dword [esp + 0x14]
movzx ecx, word [ecx]
movzx edx, ax
mov eax, dword [esp + 0x7c]
movzx esi, word [eax + edx*2]
mov eax, ecx
and eax, 0xf800
imul eax, dword [esp + 0x2c4]
shr eax, 8
mov edx, esi
and eax, 0xf800
and edx, 0xf800
add eax, edx
cmp eax, 0xf800
jbe 0x499286
mov eax, 0xf800
mov edx, ecx
and edx, 0x7e0
imul edx, dword [esp + 0x2c4]
shr edx, 8
mov edi, esi
and edx, 0x7e0
and edi, 0x7e0
add edx, edi
cmp edx, 0x7e0
jbe 0x4992b6
mov edx, 0x7e0
and ecx, 0x1f
imul ecx, dword [esp + 0x2c4]
shr ecx, 8
and ecx, 0x1f
and esi, 0x1f
add ecx, esi
cmp ecx, 0x1f
jbe 0x4992d6
mov ecx, 0x1f
or ecx, edx
or ecx, eax
mov eax, dword [esp + 0x14]
mov word [eax], cx
add ebx, dword [esp + 0x34]
add ebp, dword [esp + 0x38]
add dword [esp + 0x14], 2
sub dword [esp + 0x1c], 1
jne 0x49921c
mov eax, dword [esp + 0x2c]
cmp eax, dword [esp + 0x80]
jge 0x499310
mov ecx, dword [esp + 0x54]
sub dword [esp + 0x24], ecx
jmp 0x499318
mov edx, dword [esp + 0x5c]
add dword [esp + 0x24], edx
cmp eax, dword [esp + 0x6c]
jge 0x499328
mov ecx, dword [esp + 0x5c]
add dword [esp + 0x20], ecx
jmp 0x499330
mov edx, dword [esp + 0x54]
sub dword [esp + 0x20], edx
add dword [esp + 0x30], 4
inc eax
cmp eax, dword [esp + 0x50]
mov dword [esp + 0x2c], eax
jle 0x4990e8
jmp 0x498820
fstp st(0)
jmp 0x498826