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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4e4d1e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84
push ebx
push esi
push edi
push 0x20
mov dword [esp + 0x9c], 2
call fcn.004bb163
add esp, 4
mov dword [esp + 0x50], eax
test eax, eax
mov byte [esp + 0x98], 3
je 0x498a8c
push 0x1f4
push 0x1f4
mov ecx, eax
call fcn.004824c0
jmp 0x498a8e
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], 0
mov ebx, dword [ebp + 8]
mov byte [esp + 0x98], 4
lea esi, [ebx - 1]
cmp esi, 0xffffffff
jle 0x498b10
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x20]
sub ecx, eax
lea edi, [eax + esi]
mov dword [esp + 0x48], ecx
mov eax, dword [esp + 0x48]
mov ecx, dword [ebp + 0x1c]
add eax, edi
push eax
call fcn.0047f880
mov ecx, dword [esp + 0x18]
mov dword [eax], 0
push esi
mov dword [eax + 4], 0
call fcn.0047f880
mov ecx, dword [ebp + 0x14]
push edi
mov dword [esp + 0x40], eax
call fcn.0047f880
mov ecx, eax
mov eax, dword [esp + 0x3c]
dec esi
dec edi
mov edx, dword [ecx]
cmp esi, 0xffffffff
mov dword [eax], edx
mov ecx, dword [ecx + 4]
mov dword [eax + 4], ecx
jg 0x498ac6
push 0x20
call fcn.004bb163
add esp, 4
mov dword [esp + 0x50], eax
test eax, eax
mov byte [esp + 0x98], 5
je 0x498b3f
push 0x1f4
push 0x1f4
mov ecx, eax
call fcn.004824c0
mov esi, eax
jmp 0x498b41
xor esi, esi
mov dword [esp + 0x88], esi
mov dword [esp + 0x8c], 0
mov edi, ebx
mov byte [esp + 0x98], 6
imul edi, ebx
dec edi
cmp edi, 0xffffffff
jle 0x498b81
push edi
mov ecx, esi
call fcn.0047f880
mov dword [eax], 0
dec edi
cmp edi, 0xffffffff
mov dword [eax + 4], 0
jg 0x498b66
xor eax, eax
test ebx, ebx
mov dword [esp + 0x10], eax
jle 0x498c1e
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x2c], eax
cdq
sub eax, edx
mov dword [esp + 0x34], ecx
sar eax, 1
mov dword [esp + 0x48], 8
lea eax, [eax + eax - 4]
mov dword [esp + 0x30], eax
jmp 0x498bb5
mov eax, dword [esp + 0x30]
test eax, eax
jge 0x498bbd
add eax, ebx
jmp 0x498bc3
cmp eax, ebx
jl 0x498bc3
sub eax, ebx
mov edx, dword [esp + 0x2c]
mov ecx, esi
add eax, edx
push eax
call fcn.0047f880
mov ecx, dword [ebp + 0xc]
mov edi, eax
mov eax, dword [esp + 0x34]
push eax
call fcn.0047f880
fld qword [eax]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
fadd qword [edi]
mov eax, dword [esp + 0x48]
inc edx
inc ecx
dec eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], ecx
fstp qword [edi]
mov dword [esp + 0x48], eax
jne 0x498bb1
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x2c]
inc eax
add edi, ebx
cmp eax, ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x2c], edi
jl 0x498b96
lea eax, [ebx - 4]
mov ecx, esi
push eax
mov dword [esp + 0x34], 4
mov dword [esp + 0x30], eax
call fcn.0047f880
fld qword [eax]
fcomp qword [0x4e7b30]
fnstsw ax
test ah, 0x40
je 0x498ca3
lea edi, [ebx - 2]
mov ecx, esi
lea eax, [edi + edi]
push eax
call fcn.0047f880
fld qword [eax]
fcomp qword [0x4e7b30]
fnstsw ax
test ah, 0x40
je 0x498ca3
lea eax, [ebx - 3]
mov ecx, esi
push eax
call fcn.0047f880
fld qword [eax]
fcomp qword [0x4e7b30]
fnstsw ax
test ah, 0x40
je 0x498c9c
lea eax, [ebx + ebx - 3]
mov ecx, esi
push eax
call fcn.0047f880
fld qword [eax]
fcomp qword [0x4e7b30]
fnstsw ax
test ah, 0x40
je 0x498c9c
mov dword [esp + 0x2c], edi
jmp 0x498ca3
lea eax, [ebx - 3]
mov dword [esp + 0x2c], eax
xor edi, edi
mov dword [esp + 0x48], 4
cmp ebx, edi
mov dword [esp + 0x14], edi
jle 0x499279
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x1c], edi
sub eax, ebx
mov dword [esp + 0x4c], eax
mov eax, edi
cdq
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 6]
cmp eax, ebx
mov dword [esp + 0x28], eax
jle 0x498cde
mov dword [esp + 0x28], ebx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x24], edi
lea eax, [ecx + edi]
mov ecx, esi
push eax
call fcn.0047f880
fld qword [eax]
mov ecx, dword [esp + 0x28]
lea eax, [edi + 1]
fabs
fstp qword [esp + 0x3c]
cmp eax, ecx
mov dword [esp + 0x50], eax
mov dword [esp + 0x10], eax
jge 0x498d5f
mov edx, dword [esp + 0x1c]
lea eax, [edx + edi]
add eax, ebx
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x34]
mov ecx, esi
push eax
call fcn.0047f880
fld qword [eax]
fabs
fcom qword [esp + 0x3c]
fnstsw ax
test ah, 0x41
jne 0x498d42
mov ecx, dword [esp + 0x10]
fstp qword [esp + 0x3c]
mov dword [esp + 0x24], ecx
jmp 0x498d44
fstp st(0)
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x28]
inc eax
add edx, ebx
cmp eax, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x34], edx
jl 0x498d19
cmp dword [esp + 0x28], ebx
jge 0x498dbf
lea eax, [ebx - 2]
cmp eax, ebx
mov dword [esp + 0x10], eax
jge 0x498dbf
imul eax, ebx
add eax, edi
mov dword [esp + 0x34], eax
mov edx, dword [esp + 0x34]
mov ecx, esi
push edx
call fcn.0047f880
fld qword [eax]
fabs
fcom qword [esp + 0x3c]
fnstsw ax
test ah, 0x41
jne 0x498da6
mov eax, dword [esp + 0x10]
mov dword [esp + 0x48], ebx
fstp qword [esp + 0x3c]
mov dword [esp + 0x24], eax
jmp 0x498da8
fstp st(0)
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x34]
inc eax
add edx, ebx
cmp eax, ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x34], edx
jl 0x498d79
fld qword [esp + 0x3c]
fcomp qword [0x4e7b30]
fnstsw ax
test ah, 0x40
jne 0x499341
mov ecx, dword [esp + 0x24]
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
lea edx, [eax + eax + 4]
mov eax, dword [esp + 0x30]
cmp eax, edx
jge 0x498df1
mov eax, edx
mov dword [esp + 0x30], eax
mov edx, dword [esp + 0x48]
cmp eax, edx
jge 0x498dff
mov eax, edx
mov dword [esp + 0x30], eax
cmp eax, ebx
jle 0x498e09
mov eax, ebx
mov dword [esp + 0x30], eax
cmp ecx, edi
je 0x498fba
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x38], eax
cmp eax, ecx
jge 0x498ebc
cmp ecx, ebx
jge 0x498ec0
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x1c]
imul edi, ebx
lea eax, [ecx + edx]
mov ecx, dword [esp + 0x2c]
add eax, ebx
add edi, ecx
mov dword [esp + 0x34], eax
mov eax, ebx
sub eax, ecx
mov dword [esp + 0x3c], eax
push edi
mov ecx, esi
call fcn.0047f880
mov ecx, dword [eax]
push edi
mov dword [esp + 0x60], ecx
mov ecx, esi
mov edx, dword [eax + 4]
mov dword [esp + 0x64], edx
call fcn.0047f880
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
push eax
mov ecx, esi
call fcn.0047f880
mov ecx, eax
mov eax, dword [esp + 0x10]
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [esp + 0x34]
mov ecx, dword [ecx + 4]
push edx
mov dword [eax + 4], ecx
mov ecx, esi
call fcn.0047f880
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x60]
mov dword [eax], ecx
mov ecx, dword [esp + 0x34]
inc edi
inc ecx
mov dword [eax + 4], edx
mov eax, dword [esp + 0x3c]
dec eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x3c], eax
jne 0x498e4f
jmp 0x498ec0
mov dword [esp + 0x38], ebx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x38]
cmp eax, ecx
jge 0x498f54
mov edi, dword [esp + 0x24]
lea edx, [ebx + 1]
imul edi, ebx
imul edx, eax
add edi, eax
sub ecx, eax
mov dword [esp + 0x34], edx
mov dword [esp + 0x3c], ecx
push edi
mov ecx, esi
call fcn.0047f880
mov ecx, dword [eax]
push edi
mov dword [esp + 0x68], ecx
mov ecx, esi
mov edx, dword [eax + 4]
mov dword [esp + 0x6c], edx
call fcn.0047f880
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x34]
push eax
mov ecx, esi
call fcn.0047f880
mov ecx, eax
mov eax, dword [esp + 0x38]
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [esp + 0x34]
mov ecx, dword [ecx + 4]
push edx
mov dword [eax + 4], ecx
mov ecx, esi
call fcn.0047f880
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x68]
mov dword [eax], ecx
mov ecx, dword [esp + 0x34]
inc edi
inc ecx
mov dword [eax + 4], edx
mov eax, dword [esp + 0x3c]
dec eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x3c], eax
jne 0x498ee9
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x18]
push eax
mov ecx, edi
call fcn.0047f880
mov ecx, dword [eax]
mov dword [esp + 0x6c], ecx
mov ecx, edi
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x24]
push eax
mov dword [esp + 0x74], edx
call fcn.0047f880
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x3c], eax
push ecx
mov ecx, edi
call fcn.0047f880
mov edx, eax
mov eax, dword [esp + 0x3c]
mov ecx, dword [edx]
mov dword [eax], ecx
mov ecx, edi
mov edx, dword [edx + 4]
mov dword [eax + 4], edx
mov eax, dword [esp + 0x14]
push eax
call fcn.0047f880
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x70]
mov edi, dword [esp + 0x14]
mov dword [eax], ecx
mov dword [eax + 4], edx
lea eax, [ebx + 1]
mov ecx, esi
imul eax, edi
push eax
call fcn.0047f880
mov ecx, dword [eax]
mov dword [esp + 0x74], ecx
mov ecx, dword [esp + 0x28]
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x50]
cmp eax, ecx
mov dword [esp + 0x78], edx
mov dword [esp + 0x10], eax
jge 0x49916b
mov eax, dword [esp + 0x1c]
add eax, ebx
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
cdq
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 4]
cmp eax, ecx
mov dword [esp + 0x24], eax
jge 0x499012
mov eax, ecx
mov dword [esp + 0x24], eax
cmp eax, ebx
jle 0x49901a
mov dword [esp + 0x24], ebx
mov ecx, dword [esp + 0x34]
add ecx, edi
push ecx
mov ecx, esi
call fcn.0047f880
fld qword [eax]
fdiv qword [esp + 0x74]
fst qword [esp + 0x54]
fcomp qword [0x4e7b30]
fnstsw ax
test ah, 0x40
jne 0x499148
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
push edx
call fcn.0047f880
mov ecx, dword [esp + 0x18]
mov edi, eax
mov eax, dword [esp + 0x14]
push eax
call fcn.0047f880
fld qword [esp + 0x54]
fmul qword [eax]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
cmp ecx, eax
fsubr qword [edi]
fstp qword [edi]
jge 0x4990d6
dec eax
lea edi, [ebx - 1]
cmp edi, eax
jle 0x4990da
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x34]
add ecx, edi
add edx, edi
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x38], edx
sub edi, eax
mov eax, dword [esp + 0x38]
mov ecx, esi
push eax
call fcn.0047f880
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x50], eax
push ecx
mov ecx, esi
call fcn.0047f880
fld qword [esp + 0x54]
fmul qword [eax]
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
dec edx
fsubr qword [eax]
dec ecx
dec edi
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], ecx
fstp qword [eax]
jne 0x499095
jmp 0x4990da
mov dword [esp + 0x24], ebx
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
lea eax, [edx - 1]
lea edx, [ecx - 1]
cmp eax, edx
jle 0x499148
mov edx, dword [esp + 0x1c]
add edx, eax
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x34]
add edx, eax
sub eax, ecx
inc eax
mov dword [esp + 0x3c], edx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x3c]
mov ecx, esi
push eax
call fcn.0047f880
mov ecx, dword [esp + 0x38]
mov edi, eax
push ecx
mov ecx, esi
call fcn.0047f880
fld qword [esp + 0x54]
fmul qword [eax]
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x24]
dec edx
fsubr qword [edi]
dec ecx
dec eax
mov dword [esp + 0x3c], edx
mov dword [esp + 0x38], ecx
fstp qword [edi]
mov dword [esp + 0x24], eax
jne 0x499107
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x14]
inc eax
add edx, ebx
cmp eax, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x34], edx
jl 0x498ff3
cmp dword [esp + 0x28], ebx
jge 0x499262
lea eax, [ebx - 2]
cmp eax, ebx
mov dword [esp + 0x10], eax
jge 0x499262
imul eax, ebx
mov dword [esp + 0x34], eax
mov edx, dword [esp + 0x34]
mov ecx, esi
add edx, edi
push edx
call fcn.0047f880
fld qword [eax]
fdiv qword [esp + 0x74]
fst qword [esp + 0x54]
fcomp qword [0x4e7b30]
fnstsw ax
test ah, 0x40
jne 0x499243
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
push eax
call fcn.0047f880
mov ecx, dword [esp + 0x14]
mov edi, eax
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.0047f880
fld qword [esp + 0x54]
fmul qword [eax]
mov edx, dword [esp + 0x14]
lea eax, [ebx - 1]
fsubr qword [edi]
lea ecx, [edx - 1]
cmp eax, ecx
fstp qword [edi]
jle 0x499243
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x34]
add ecx, eax
mov edi, eax
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x14]
add edx, eax
sub edi, ecx
mov dword [esp + 0x3c], edx
inc edi
mov eax, dword [esp + 0x3c]
mov ecx, esi
push eax
call fcn.0047f880
mov ecx, dword [esp + 0x38]
mov ebx, eax
push ecx
mov ecx, esi
call fcn.0047f880
fld qword [esp + 0x54]
fmul qword [eax]
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
dec edx
dec ecx
fsubr qword [ebx]
dec edi
mov dword [esp + 0x3c], edx
mov dword [esp + 0x38], ecx
fstp qword [ebx]
jne 0x499207
mov ebx, dword [ebp + 8]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x34]
mov edi, dword [esp + 0x14]
inc eax
add edx, ebx
cmp eax, ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x34], edx
jl 0x49918b
mov ecx, dword [esp + 0x1c]
inc edi
add ecx, ebx
cmp edi, ebx
mov dword [esp + 0x14], edi
mov dword [esp + 0x1c], ecx
jl 0x498cc7
lea eax, [ebx - 1]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jle 0x49959f
mov ecx, eax
imul ecx, ebx
inc eax
mov dword [esp + 0x30], ecx
neg ebx
mov dword [esp + 0x34], eax
mov dword [esp + 0x4c], ebx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x48]
cdq
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 8]
cmp eax, ecx
mov dword [esp + 0x38], eax
jge 0x4992bc
mov eax, ecx
mov dword [esp + 0x38], eax
mov ecx, dword [ebp + 8]
cmp eax, ecx
jle 0x4992c9
mov eax, ecx
mov dword [esp + 0x38], eax
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x1c], 0
cmp eax, ebx
mov dword [esp + 0x20], 0
jge 0x499434
cmp ebx, ecx
jge 0x499436
mov edx, dword [esp + 0x30]
mov edi, dword [ebp + 0x1c]
add edx, ebx
mov dword [esp + 0x3c], edx
mov eax, dword [ebp + 0x20]
mov ecx, edi
add eax, ebx
push eax
call fcn.0047f880
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x50], eax
push ecx
mov ecx, esi
call fcn.0047f880
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x3c]
fld qword [eax]
fmul qword [edx]
mov eax, dword [ebp + 8]
inc ebx
inc ecx
cmp ebx, eax
fadd qword [esp + 0x1c]
mov dword [esp + 0x3c], ecx
fstp qword [esp + 0x1c]
jl 0x4992fa
mov eax, dword [esp + 0x38]
jmp 0x499439
mov ecx, dword [esi + 0x1c]
mov byte [esp + 0x98], 4
dec ecx
mov eax, ecx
mov dword [esi + 0x1c], ecx
test eax, eax
jne 0x49936a
test esi, esi
je 0x49936a
mov ecx, esi
call fcn.0047f860
push esi
call fcn.004bb18c
add esp, 4
mov esi, dword [esp + 0x18]
mov byte [esp + 0x98], 2
mov ecx, dword [esi + 0x1c]
dec ecx
mov eax, ecx
mov dword [esi + 0x1c], ecx
test eax, eax
jne 0x499397
test esi, esi
je 0x499397
mov ecx, esi
call fcn.0047f860
push esi
call fcn.004bb18c
add esp, 4
mov esi, dword [ebp + 0xc]
mov byte [esp + 0x98], 1
mov ecx, dword [esi + 0x1c]
dec ecx
mov eax, ecx
mov dword [esi + 0x1c], ecx
test eax, eax
jne 0x4993c3
test esi, esi
je 0x4993c3
mov ecx, esi
call fcn.0047f860
push esi
call fcn.004bb18c
add esp, 4
mov esi, dword [ebp + 0x14]
mov byte [esp + 0x98], 0
mov ecx, dword [esi + 0x1c]
dec ecx
mov eax, ecx
mov dword [esi + 0x1c], ecx
test eax, eax
jne 0x4993ef
test esi, esi
je 0x4993ef
mov ecx, esi
call fcn.0047f860
push esi
call fcn.004bb18c
add esp, 4
mov esi, dword [ebp + 0x1c]
mov dword [esp + 0x98], 0xffffffff
mov eax, dword [esi + 0x1c]
dec eax
mov dword [esi + 0x1c], eax
jne 0x49941a
test esi, esi
je 0x49941a
mov ecx, esi
call fcn.0047f860
push esi
call fcn.004bb18c
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, ecx
mov edi, dword [ebp + 0x1c]
mov ecx, dword [esp + 0x34]
cmp ecx, eax
jge 0x499494
mov edx, dword [ebp + 0x20]
add edx, ecx
sub eax, ecx
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x38], eax
lea ebx, [ecx + edx]
mov eax, dword [esp + 0x3c]
mov ecx, edi
push eax
call fcn.0047f880
push ebx
mov ecx, esi
mov dword [esp + 0x54], eax
call fcn.0047f880
mov ecx, dword [esp + 0x50]
inc ebx
fld qword [eax]
fmul qword [ecx]
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
inc ecx
dec eax
fadd qword [esp + 0x1c]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x38], eax
fstp qword [esp + 0x1c]
jne 0x499457
mov edx, dword [ebp + 8]
mov eax, dword [esi + 4]
lea ebx, [edx + 1]
imul ebx, dword [esp + 0x10]
cmp ebx, eax
jl 0x4994de
lea eax, [ebx + 1]
lea ecx, [esp + 0x28]
push eax
push ecx
mov ecx, esi
call fcn.00497f60
mov ecx, dword [eax]
xor edx, edx
test ecx, ecx
sete dl
mov eax, edx
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
test eax, eax
je 0x4994de
mov edx, dword [esi + 0x14]
mov dword [esi + 0x18], 0xc
mov dword [esp + 0x38], edx
jmp 0x4994f6
cmp ebx, dword [esi]
jl 0x4994e7
lea eax, [ebx + 1]
mov dword [esi], eax
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x10]
imul eax, ebx
add eax, ecx
mov dword [esp + 0x38], eax
mov ebx, dword [esp + 0x34]
mov ecx, dword [ebp + 0x20]
lea eax, [ecx + ebx - 1]
mov ecx, dword [edi + 4]
cmp eax, ecx
mov dword [esp + 0x3c], eax
jl 0x499546
mov edx, dword [ebp + 0x20]
lea eax, [esp + 0x24]
add edx, ebx
mov ecx, edi
push edx
push eax
call fcn.00497f60
mov edx, dword [eax]
xor ecx, ecx
test edx, edx
sete cl
mov eax, ecx
xor edx, edx
test eax, eax
setne dl
mov eax, edx
test eax, eax
je 0x499542
mov ebx, dword [edi + 0x14]
mov dword [edi + 0x18], 0xc
jmp 0x49955e
mov eax, dword [esp + 0x3c]
cmp eax, dword [edi]
jl 0x499551
mov eax, dword [ebp + 0x20]
add eax, ebx
mov dword [edi], eax
mov ebx, dword [edi + 8]
mov eax, dword [edi + 0x10]
imul ebx, dword [esp + 0x3c]
add ebx, eax
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
push edi
call fcn.0047f880
fld qword [eax]
fsub qword [esp + 0x1c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
dec edi
dec edx
fdiv qword [ecx]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x10], edi
add ecx, edx
cmp edi, 0xffffffff
mov dword [esp + 0x30], ecx
fstp qword [ebx]
jg 0x49929d
mov ecx, dword [esi + 0x1c]
mov byte [esp + 0x98], 4
dec ecx
mov eax, ecx
mov dword [esi + 0x1c], ecx
test eax, eax
jne 0x4995d3
test esi, esi
je 0x4995d3
mov eax, dword [esi + 0x14]
push eax
call fcn.004bb18c
mov eax, dword [esi + 0x10]
push eax
call fcn.004bb18c
push esi
call fcn.004bb18c
add esp, 0xc
mov esi, dword [esp + 0x18]
mov byte [esp + 0x98], 2
mov ecx, dword [esi + 0x1c]
dec ecx
mov eax, ecx
mov dword [esi + 0x1c], ecx
test eax, eax
jne 0x49960b
test esi, esi
je 0x49960b
mov eax, dword [esi + 0x14]
push eax
call fcn.004bb18c
mov eax, dword [esi + 0x10]
push eax
call fcn.004bb18c
push esi
call fcn.004bb18c
add esp, 0xc
mov esi, dword [ebp + 0xc]
mov byte [esp + 0x98], 1
mov ecx, dword [esi + 0x1c]
dec ecx
mov eax, ecx
mov dword [esi + 0x1c], ecx
test eax, eax
jne 0x499637
test esi, esi
je 0x499637
mov ecx, esi
call fcn.0047f860
push esi
call fcn.004bb18c
add esp, 4
mov esi, dword [ebp + 0x14]
mov byte [esp + 0x98], 0
mov ecx, dword [esi + 0x1c]
dec ecx
mov eax, ecx
mov dword [esi + 0x1c], ecx
test eax, eax
jne 0x499663
test esi, esi
je 0x499663
mov ecx, esi
call fcn.0047f860
push esi
call fcn.004bb18c
add esp, 4
mov ecx, dword [ebp + 0x1c]
mov dword [esp + 0x98], 0xffffffff
mov eax, dword [ecx + 0x1c]
dec eax
mov dword [ecx + 0x1c], eax
jne 0x499685
test ecx, ecx
je 0x499685
push 1
call fcn.00482510
mov ecx, dword [esp + 0x90]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret