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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x32a4
call fcn.1007d430
mov eax, dword [0x1008a2c0]
xor eax, esp
mov dword [esp + 0x32a0], eax
mov eax, dword [ebp + 8]
lea edx, [esp + 0x9c]
mov dword [esp + 0x24], edx
mov edx, dword [eax + 8]
push ebx
mov dword [esp + 0x84], edx
mov edx, dword [eax + 4]
push esi
mov esi, dword [eax + 0xc]
mov dword [esp + 0x60], edx
mov edx, dword [ecx + 0x10]
push edi
mov edi, dword [eax + 0x10]
mov eax, dword [eax + 0x18]
mov dword [esp + 0xa4], eax
mov dword [esp + 0x4c], edx
xor edx, edx
mov eax, 0x10000
div edi
mov ebx, dword [ebp + 0x10]
mov ecx, dword [ecx + 0x18]
mov dword [esp + 0x88], esi
mov dword [esp + 0x48], edi
mov dword [esp + 0x7c], ecx
sub eax, ebx
inc eax
mov dword [esp + 0x5c], eax
cmp eax, 1
jge 0x1004ae9a
mov eax, 1
mov dword [esp + 0x5c], eax
cmp eax, esi
jle 0x1004aea4
mov eax, esi
mov dword [esp + 0x5c], eax
lea edi, [esi + ebx - 1]
lea ebx, [eax + ebx - 1]
lea eax, [ebx + ebx + 2]
cmp eax, 0x640
jle 0x1004aee9
lea edx, [eax*8]
push edx
call sub.MSVCR100.dll_malloc
add esp, 4
mov dword [esp + 0x30], eax
test eax, eax
jne 0x1004aeed
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x32a0]
xor ecx, esp
call fcn.1007d356
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebx, [eax + ebx*8]
mov eax, dword [ebp + 0x14]
add eax, dword [ebp + 0x18]
mov dword [esp + 0x58], ebx
sub edi, eax
xor eax, eax
mov dword [esp + 0x70], edi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x74], eax
cmp esi, eax
jle 0x1004bae5
mov eax, dword [esp + 0x5c]
fld qword [0x1007e258]
imul eax, dword [esp + 0x4c]
fld qword [0x1007e220]
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0x88]
sub eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x2c], eax
cmp eax, ecx
jle 0x1004af4b
mov eax, ecx
mov dword [esp + 0x2c], ecx
cmp dword [esp + 0x64], 0
mov edx, dword [ebp + 0x10]
lea eax, [edx + eax - 1]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x68], 0
jle 0x1004bab5
mov ecx, dword [esp + 0x64]
sub ecx, dword [esp + 0x68]
mov edx, 1
dec ecx
shl edx, cl
test dword [ebp + 0x1c], edx
je 0x1004baa2
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0xa4]
lea edx, [eax + ecx]
add eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x38], edx
mov dword [esp + 0x78], eax
test ecx, ecx
jle 0x1004afb2
and ecx, 0x1fffffff
add ecx, ecx
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
cmp dword [esp + 0x8c], 0
mov dword [esp + 0x9c], 0
jle 0x1004baa2
mov eax, dword [ebp + 0x14]
add eax, dword [esp + 0x70]
mov dword [esp + 0x60], eax
add eax, dword [ebp + 0x18]
mov dword [esp + 0x6c], eax
mov edx, dword [esp + 0x30]
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x34], edx
mov edx, dword [ebp + 0x14]
xor eax, eax
mov ecx, edi
cmp edi, edx
jge 0x1004b0b4
mov esi, edx
sub esi, edi
cmp esi, 4
mov esi, dword [esp + 0x38]
jl 0x1004b07a
mov edx, dword [esp + 0x30]
add edx, 0x10
cmp eax, dword [esp + 0x1c]
jge 0x1004b0b4
movzx edi, byte [esi]
mov dword [esp + 0x10], edi
inc eax
fild dword [esp + 0x10]
fstp qword [edx - 0x10]
cmp eax, dword [esp + 0x1c]
jge 0x1004b0a9
movzx edi, byte [esi]
mov dword [esp + 0x10], edi
inc eax
fild dword [esp + 0x10]
fstp qword [edx - 8]
cmp eax, dword [esp + 0x1c]
jge 0x1004b0ac
movzx edi, byte [esi]
mov dword [esp + 0x10], edi
inc eax
fild dword [esp + 0x10]
fstp qword [edx]
cmp eax, dword [esp + 0x1c]
jge 0x1004b0b1
movzx edi, byte [esi]
mov dword [esp + 0x10], edi
mov edi, dword [ebp + 0x14]
add ecx, 4
fild dword [esp + 0x10]
add edi, 0xfffffffd
inc eax
add edx, 0x20
fstp qword [edx - 0x18]
cmp ecx, edi
jl 0x1004b00c
mov edx, dword [ebp + 0x14]
mov edi, dword [esp + 0x3c]
cmp ecx, edx
jge 0x1004b0b4
mov edx, ecx
sub edx, edi
mov edi, dword [esp + 0x30]
lea edx, [edi + edx*8]
cmp eax, dword [esp + 0x1c]
jge 0x1004b0b4
movzx edi, byte [esi]
mov dword [esp + 0x10], edi
inc ecx
inc eax
fild dword [esp + 0x10]
add edx, 8
fstp qword [edx - 8]
cmp ecx, dword [ebp + 0x14]
jl 0x1004b089
jmp 0x1004b0b4
inc ecx
jmp 0x1004b0b4
add ecx, 2
jmp 0x1004b0b4
add ecx, 3
cmp ecx, dword [esp + 0x60]
jge 0x1004b223
mov edx, dword [esp + 0x60]
sub edx, ecx
cmp edx, 4
jl 0x1004b1ce
mov ebx, dword [esp + 0x48]
mov edx, ecx
sub edx, dword [ebp + 0x14]
lea esi, [ebx*4]
mov edi, edx
imul edi, ebx
add edi, dword [esp + 0x38]
mov dword [esp + 0x10], edx
mov dword [esp + 0x40], edi
add edx, 3
imul edx, ebx
mov ebx, dword [esp + 0x30]
mov edi, ecx
sub edi, dword [esp + 0x3c]
add edx, dword [esp + 0x38]
lea edi, [ebx + edi*8 + 0x10]
mov dword [esp + 0x20], edi
mov edi, dword [esp + 0x10]
add edi, 2
imul edi, dword [esp + 0x48]
add edi, dword [esp + 0x38]
mov dword [esp + 0x28], edi
mov edi, dword [esp + 0x10]
inc edi
imul edi, dword [esp + 0x48]
add edi, dword [esp + 0x38]
cmp eax, dword [esp + 0x1c]
jge 0x1004b21f
mov ebx, dword [esp + 0x40]
movzx ebx, byte [ebx]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x20]
inc eax
fild dword [esp + 0x10]
fstp qword [ebx - 0x10]
cmp eax, dword [esp + 0x1c]
jge 0x1004b214
movzx ebx, byte [edi]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x20]
inc eax
fild dword [esp + 0x10]
fstp qword [ebx - 8]
cmp eax, dword [esp + 0x1c]
jge 0x1004b217
mov ebx, dword [esp + 0x28]
movzx ebx, byte [ebx]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x20]
inc eax
fild dword [esp + 0x10]
fstp qword [ebx]
cmp eax, dword [esp + 0x1c]
jge 0x1004b21c
movzx ebx, byte [edx]
add dword [esp + 0x40], esi
add dword [esp + 0x28], esi
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x20]
add dword [esp + 0x20], 0x20
fild dword [esp + 0x10]
add ecx, 4
inc eax
add edi, esi
fstp qword [ebx + 8]
mov ebx, dword [esp + 0x60]
add ebx, 0xfffffffd
add edx, esi
cmp ecx, ebx
jl 0x1004b12c
mov ebx, dword [esp + 0x58]
cmp ecx, dword [esp + 0x60]
jge 0x1004b223
mov esi, dword [esp + 0x30]
mov edx, ecx
sub edx, dword [esp + 0x3c]
lea esi, [esi + edx*8]
mov edx, ecx
sub edx, dword [ebp + 0x14]
imul edx, dword [esp + 0x48]
add edx, dword [esp + 0x38]
cmp eax, dword [esp + 0x1c]
jge 0x1004b223
movzx edi, byte [edx]
add edx, dword [esp + 0x48]
mov dword [esp + 0x10], edi
inc ecx
inc eax
fild dword [esp + 0x10]
add esi, 8
fstp qword [esi - 8]
cmp ecx, dword [esp + 0x60]
jl 0x1004b1ef
jmp 0x1004b223
inc ecx
jmp 0x1004b21f
add ecx, 2
jmp 0x1004b21f
add ecx, 3
mov ebx, dword [esp + 0x58]
mov esi, dword [esp + 0x6c]
cmp ecx, esi
jge 0x1004b303
mov edx, esi
sub edx, ecx
cmp edx, 4
jl 0x1004b2c4
mov esi, dword [esp + 0x30]
mov edx, ecx
sub edx, dword [esp + 0x3c]
lea edx, [esi + edx*8 + 0x10]
cmp eax, dword [esp + 0x1c]
jge 0x1004b303
mov esi, dword [esp + 0x70]
dec esi
imul esi, dword [esp + 0x48]
add esi, dword [esp + 0x38]
inc eax
movzx edi, byte [esi]
mov dword [esp + 0x10], edi
fild dword [esp + 0x10]
fstp qword [edx - 0x10]
cmp eax, dword [esp + 0x1c]
jge 0x1004b303
movzx edi, byte [esi]
mov dword [esp + 0x10], edi
inc eax
fild dword [esp + 0x10]
fstp qword [edx - 8]
cmp eax, dword [esp + 0x1c]
jge 0x1004b303
movzx edi, byte [esi]
mov dword [esp + 0x10], edi
inc eax
fild dword [esp + 0x10]
fstp qword [edx]
cmp eax, dword [esp + 0x1c]
jge 0x1004b303
movzx esi, byte [esi]
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x6c]
add ecx, 4
fild dword [esp + 0x10]
lea edi, [esi - 3]
inc eax
add edx, 0x20
fstp qword [edx - 0x18]
cmp ecx, edi
jl 0x1004b24a
cmp ecx, esi
jge 0x1004b303
mov esi, dword [esp + 0x30]
mov edx, ecx
sub edx, dword [esp + 0x3c]
lea edx, [esi + edx*8]
cmp eax, dword [esp + 0x1c]
jge 0x1004b303
mov esi, dword [esp + 0x70]
mov edi, dword [esp + 0x38]
dec esi
imul esi, dword [esp + 0x48]
movzx esi, byte [esi + edi]
mov dword [esp + 0x10], esi
inc ecx
add edx, 8
fild dword [esp + 0x10]
inc eax
fstp qword [edx - 8]
cmp ecx, dword [esp + 0x6c]
jl 0x1004b2d5
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
add eax, 0xfffffffc
mov dword [esp + 0x28], 0
test eax, eax
jle 0x1004b41f
mov edi, dword [esp + 0x34]
dec eax
shr eax, 2
inc eax
mov edx, ecx
sub edx, dword [esp + 0x30]
mov dword [esp + 0x10], eax
add eax, eax
add eax, eax
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x28], eax
fld qword [edi]
mov eax, dword [esp + 0x40]
fld qword [edi + 8]
fld qword [edi + 0x10]
fld qword [ecx]
fld qword [ecx + 8]
fst qword [esp + 0x90]
fld qword [eax + edi + 0x10]
xor eax, eax
fstp qword [esp + 0x50]
fld qword [ecx + 0x18]
fstp qword [esp + 0x80]
test edx, edx
jle 0x1004b3ff
fstp st(5)
lea esi, [edi + 0x20]
jmp 0x1004b380
fxch st(4)
fxch st(1)
fxch st(3)
fxch st(3)
add eax, 2
fstp qword [esp + 0x20]
add esi, 0x10
fld qword [esi - 0x18]
fld qword [esi - 0x10]
fld st(3)
fmulp st(6)
fld qword [esp + 0x20]
fmul st(5)
faddp st(6)
fld qword [esp + 0x50]
fmul st(3)
faddp st(6)
fld qword [esp + 0x80]
fmul st(2)
faddp st(6)
fxch st(5)
fadd qword [ebx + eax*8 - 0x10]
fstp qword [ebx + eax*8 - 0x10]
fxch st(2)
fmul st(3)
fld qword [esp + 0x90]
fld st(0)
fmul st(3)
faddp st(2)
fld qword [esp + 0x50]
fmul st(4)
faddp st(2)
fld qword [esp + 0x80]
fmul st(6)
faddp st(2)
fxch st(1)
fadd qword [ebx + eax*8 - 8]
fstp qword [ebx + eax*8 - 8]
cmp eax, edx
jl 0x1004b37a
fstp st(1)
fstp st(1)
fstp st(2)
fstp st(0)
fstp st(0)
fld qword [0x1007e220]
jmp 0x1004b409
fstp st(4)
fstp st(2)
fstp st(0)
fstp st(0)
fstp st(0)
add ecx, 0x20
add edi, 0x20
dec dword [esp + 0x10]
jne 0x1004b33f
mov dword [esp + 0x34], edi
jmp 0x1004b423
mov edx, dword [esp + 0x2c]
mov eax, dword [ebp + 0x10]
sub eax, dword [esp + 0x28]
mov esi, dword [esp + 0x78]
cmp eax, 4
jne 0x1004b5e2
mov eax, dword [esp + 0x34]
fld qword [eax]
xor edi, edi
add edx, 0xfffffffe
fld qword [eax + 8]
fld qword [eax + 0x10]
fld qword [ecx]
fstp qword [esp + 0x40]
fld qword [ecx + 8]
fst qword [esp + 0x90]
fld qword [ecx + 0x10]
fstp qword [esp + 0x50]
fld qword [ecx + 0x18]
fstp qword [esp + 0x80]
js 0x1004b58b
mov ecx, eax
add ecx, 0x20
mov dword [esp + 0x28], ecx
mov eax, dword [esp + 0x28]
fxch st(2)
fst qword [esp + 0x10]
fld qword [eax - 8]
fld qword [eax]
fxch st(2)
fmulp st(4)
fxch st(4)
fmul qword [esp + 0x40]
faddp st(3)
fld qword [esp + 0x50]
fmul st(2)
faddp st(3)
fld qword [esp + 0x80]
fmul st(4)
faddp st(3)
fxch st(2)
fadd qword [ebx + edi*8]
fsub st(5)
fcom st(4)
fnstsw ax
test ah, 0x41
jp 0x1004b4c2
fstp st(0)
mov dword [esp + 0x20], 0x80000000
jmp 0x1004b4e6
fld qword [0x1007e228]
fcomp st(1)
fnstsw ax
test ah, 0x41
jp 0x1004b4dd
fstp st(0)
mov dword [esp + 0x20], 0x7fffffff
jmp 0x1004b4e6
call fcn.1007d380
mov dword [esp + 0x20], eax
fld qword [esp + 0x10]
fmul qword [esp + 0x40]
fld qword [esp + 0x90]
fld st(0)
fmul st(3)
faddp st(2)
fld qword [esp + 0x50]
fmul st(5)
faddp st(2)
fld qword [esp + 0x80]
fmul st(4)
faddp st(2)
fxch st(1)
fadd qword [ebx + edi*8 + 8]
fsub st(6)
fcom st(5)
fnstsw ax
test ah, 0x41
jp 0x1004b528
fstp st(0)
mov eax, 0x80000000
jmp 0x1004b545
fld qword [0x1007e228]
fcomp st(1)
fnstsw ax
test ah, 0x41
jp 0x1004b540
fstp st(0)
mov eax, 0x7fffffff
jmp 0x1004b545
call fcn.1007d380
mov edx, dword [esp + 0x20]
fldz
add dword [esp + 0x28], 0x10
mov ecx, eax
mov eax, dword [esp + 0x4c]
sar edx, 0x18
sar ecx, 0x18
xor dl, 0x80
mov byte [esi], dl
xor cl, 0x80
mov byte [esi + eax], cl
fst qword [ebx + edi*8]
fstp qword [ebx + edi*8 + 8]
lea esi, [esi + eax*2]
mov eax, dword [esp + 0x2c]
fxch st(1)
add edi, 2
fxch st(3)
add eax, 0xfffffffe
fxch st(2)
fxch st(1)
cmp edi, eax
jle 0x1004b478
cmp edi, dword [esp + 0x2c]
jge 0x1004ba66
mov edx, dword [esp + 0x34]
fld qword [edx + edi*8 + 0x18]
fxch st(3)
fmulp st(1)
fld qword [esp + 0x40]
fmulp st(4)
faddp st(3)
fmul qword [esp + 0x50]
faddp st(2)
fmul qword [esp + 0x80]
faddp st(1)
fadd qword [ebx + edi*8]
fsub st(2)
fcom st(1)
fnstsw ax
test ah, 0x41
jp 0x1004b8ba
mov eax, 0x80000000
fstp st(0)
fldz
sar eax, 0x18
xor al, 0x80
mov byte [esi], al
fstp qword [ebx + edi*8]
jmp 0x1004ba7a
cmp eax, 3
jne 0x1004b782
mov eax, dword [esp + 0x34]
fld qword [eax]
xor edi, edi
fld qword [eax + 8]
fld qword [ecx]
fst qword [esp + 0x40]
fld qword [ecx + 8]
fst qword [esp + 0x90]
fld qword [ecx + 0x10]
lea ecx, [edx - 2]
fstp qword [esp + 0x50]
test ecx, ecx
js 0x1004b734
lea ecx, [eax + 0x18]
mov dword [esp + 0x10], ecx
jmp 0x1004b627
fxch st(2)
fxch st(3)
fxch st(2)
fxch st(3)
fstp qword [esp + 0x20]
fld qword [ecx - 8]
fld qword [ecx]
fld st(3)
fmulp st(5)
fld qword [esp + 0x20]
fmul st(3)
faddp st(5)
fld qword [esp + 0x50]
fmul st(2)
faddp st(5)
fxch st(4)
fadd qword [ebx + edi*8]
fsub st(6)
fcom st(5)
fnstsw ax
test ah, 0x41
jp 0x1004b662
fstp st(0)
mov dword [esp + 0x20], 0x80000000
jmp 0x1004b694
fld qword [0x1007e228]
fcomp st(1)
fnstsw ax
test ah, 0x41
jp 0x1004b67d
fstp st(0)
mov dword [esp + 0x20], 0x7fffffff
jmp 0x1004b694
fstp st(2)
fxch st(1)
call fcn.1007d380
fld qword [esp + 0x40]
mov edx, dword [esp + 0x2c]
fxch st(1)
mov dword [esp + 0x20], eax
fxch st(2)
fmul st(1)
fld qword [esp + 0x90]
fld st(0)
fmul st(4)
faddp st(2)
fld qword [esp + 0x50]
fmul st(5)
faddp st(2)
fxch st(1)
fadd qword [ebx + edi*8 + 8]
fsub st(6)
fcom st(5)
fnstsw ax
test ah, 0x41
jp 0x1004b6c7
fstp st(0)
mov eax, 0x80000000
jmp 0x1004b6f2
fld qword [0x1007e228]
fcomp st(1)
fnstsw ax
test ah, 0x41
jp 0x1004b6df
fstp st(0)
mov eax, 0x7fffffff
jmp 0x1004b6f2
fstp st(2)
fxch st(1)
call fcn.1007d380
fld qword [esp + 0x40]
mov edx, dword [esp + 0x2c]
fxch st(1)
mov ecx, dword [esp + 0x20]
fldz
sar ecx, 0x18
xor cl, 0x80
mov byte [esi], cl
mov ecx, eax
mov eax, dword [esp + 0x4c]
sar ecx, 0x18
xor cl, 0x80
mov byte [esi + eax], cl
fst qword [ebx + edi*8]
mov ecx, dword [esp + 0x10]
fstp qword [ebx + edi*8 + 8]
lea esi, [esi + eax*2]
add edi, 2
add ecx, 0x10
lea eax, [edx - 2]
mov dword [esp + 0x10], ecx
cmp edi, eax
jle 0x1004b621
jmp 0x1004b73a
fxch st(2)
fxch st(3)
fxch st(2)
cmp edi, edx
jge 0x1004ba6c
mov edx, dword [esp + 0x34]
fld qword [edx + edi*8 + 0x10]
fxch st(3)
fmulp st(2)
fmulp st(3)
faddp st(2)
fmul qword [esp + 0x50]
faddp st(1)
fadd qword [ebx + edi*8]
fsub st(2)
fcom st(1)
fnstsw ax
test ah, 0x41
jp 0x1004b8ba
mov eax, 0x80000000
fstp st(0)
fldz
sar eax, 0x18
xor al, 0x80
mov byte [esi], al
fstp qword [ebx + edi*8]
jmp 0x1004ba7a
cmp eax, 2
jne 0x1004b8f7
mov eax, dword [esp + 0x34]
fld qword [eax]
xor edi, edi
fld qword [ecx]
fld qword [ecx + 8]
lea ecx, [edx - 2]
test ecx, ecx
js 0x1004b87e
lea ecx, [eax + 0x10]
mov dword [esp + 0x10], ecx
fld qword [ecx - 8]
fld qword [ecx]
fld st(1)
fmul st(3)
fxch st(5)
fmul st(4)
faddp st(5)
fxch st(4)
fadd qword [ebx + edi*8]
fsub st(6)
fcom st(5)
fnstsw ax
test ah, 0x41
jp 0x1004b7d5
fstp st(0)
mov dword [esp + 0x20], 0x80000000
jmp 0x1004b7fd
fld qword [0x1007e228]
fcomp st(1)
fnstsw ax
test ah, 0x41
jp 0x1004b7f0
fstp st(0)
mov dword [esp + 0x20], 0x7fffffff
jmp 0x1004b7fd
call fcn.1007d380
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x20], eax
fmul st(2)
fld st(1)
fmul st(4)
faddp st(1)
fadd qword [ebx + edi*8 + 8]
fsub st(5)
fcom st(4)
fnstsw ax
test ah, 0x41
jp 0x1004b81d
fstp st(0)
mov eax, 0x80000000
jmp 0x1004b83e
fld qword [0x1007e228]
fcomp st(1)
fnstsw ax
test ah, 0x41
jp 0x1004b835
fstp st(0)
mov eax, 0x7fffffff
jmp 0x1004b83e
call fcn.1007d380
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
fldz
sar ecx, 0x18
xor cl, 0x80
mov byte [esi], cl
mov ecx, eax
mov eax, dword [esp + 0x4c]
sar ecx, 0x18
xor cl, 0x80
mov byte [esi + eax], cl
fst qword [ebx + edi*8]
mov ecx, dword [esp + 0x10]
fstp qword [ebx + edi*8 + 8]
lea esi, [esi + eax*2]
add edi, 2
add ecx, 0x10
lea eax, [edx - 2]
mov dword [esp + 0x10], ecx
cmp edi, eax
jle 0x1004b7aa
cmp edi, edx
jge 0x1004ba74
mov edx, dword [esp + 0x34]
fmul qword [edx + edi*8 + 8]
fxch st(1)
fmulp st(2)
faddp st(1)
fadd qword [ebx + edi*8]
fsub st(2)
fcom st(1)
fnstsw ax
test ah, 0x41
jp 0x1004b8ba
mov eax, 0x80000000
fstp st(0)
fldz
sar eax, 0x18
xor al, 0x80
mov byte [esi], al
fstp qword [ebx + edi*8]
jmp 0x1004ba7a
fld qword [0x1007e228]
fcomp st(1)
fnstsw ax
test ah, 0x41
jp 0x1004b8e1
mov eax, 0x7fffffff
fstp st(0)
fldz
sar eax, 0x18
xor al, 0x80
mov byte [esi], al
fstp qword [ebx + edi*8]
jmp 0x1004ba7a
call fcn.1007d380
fldz
sar eax, 0x18
xor al, 0x80
mov byte [esi], al
fstp qword [ebx + edi*8]
jmp 0x1004ba7a
fld qword [ecx]
lea eax, [edx - 2]
xor ecx, ecx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x50], eax
test eax, eax
js 0x1004b9ee
mov eax, dword [esp + 0x4c]
lea edx, [eax + eax]
mov eax, dword [esp + 0x34]
sub eax, ebx
mov dword [esp + 0x28], edx
lea edi, [ebx + 8]
mov dword [esp + 0x10], eax
jmp 0x1004b92c
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x34]
fld qword [eax + edi]
fld qword [edx + ecx*8]
fmul st(2)
fadd qword [edi - 8]
fsub st(4)
fcom st(3)
fnstsw ax
test ah, 0x41
jp 0x1004b952
fstp st(0)
mov dword [esp + 0x20], 0x80000000
jmp 0x1004b97a
fld qword [0x1007e228]
fcomp st(1)
fnstsw ax
test ah, 0x41
jp 0x1004b96d
fstp st(0)
mov dword [esp + 0x20], 0x7fffffff
jmp 0x1004b97a
call fcn.1007d380
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x20], eax
fmul st(1)
fadd qword [edi]
fsub st(3)
fcom st(2)
fnstsw ax
test ah, 0x41
jp 0x1004b992
fstp st(0)
mov eax, 0x80000000
jmp 0x1004b9b3
fld qword [0x1007e228]
fcomp st(1)
fnstsw ax
test ah, 0x41
jp 0x1004b9aa
fstp st(0)
mov eax, 0x7fffffff
jmp 0x1004b9b3
call fcn.1007d380
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x20]
fldz
sar edx, 0x18
xor dl, 0x80
mov byte [esi], dl
mov edx, dword [esp + 0x4c]
sar eax, 0x18
xor al, 0x80
mov byte [esi + edx], al
fst qword [edi - 8]
add esi, dword [esp + 0x28]
fstp qword [edi]
add ecx, 2
add edi, 0x10
mov dword [esp + 0x40], ecx
cmp ecx, dword [esp + 0x50]
jle 0x1004b928
mov edx, dword [esp + 0x2c]
cmp ecx, edx
jge 0x1004ba78
mov eax, dword [esp + 0x34]
fmul qword [eax + ecx*8]
fadd qword [ebx + ecx*8]
fsub st(2)
fcom st(1)
fnstsw ax
test ah, 0x41
jp 0x1004ba23
mov edi, 0x80000000
fstp st(0)
fldz
mov edx, edi
sar edx, 0x18
xor dl, 0x80
mov byte [esi], dl
fstp qword [ebx + ecx*8]
jmp 0x1004ba7a
fld qword [0x1007e228]
fcomp st(1)
fnstsw ax
test ah, 0x41
jp 0x1004ba4a
mov edi, 0x7fffffff
fstp st(0)
fldz
mov edx, edi
sar edx, 0x18
xor dl, 0x80
mov byte [esi], dl
fstp qword [ebx + ecx*8]
jmp 0x1004ba7a
call fcn.1007d380
fldz
mov ecx, dword [esp + 0x40]
mov edi, eax
mov edx, edi
sar edx, 0x18
xor dl, 0x80
mov byte [esi], dl
fstp qword [ebx + ecx*8]
jmp 0x1004ba7a
fstp st(3)
fstp st(1)
jmp 0x1004ba76
fstp st(1)
fstp st(1)
fstp st(1)
jmp 0x1004ba78
fstp st(2)
fstp st(0)
fstp st(0)
mov eax, dword [esp + 0x64]
add dword [esp + 0x38], eax
add dword [esp + 0x78], eax
mov eax, dword [esp + 0x9c]
inc eax
mov dword [esp + 0x9c], eax
cmp eax, dword [esp + 0x8c]
jl 0x1004afdd
mov eax, dword [esp + 0x68]
inc eax
mov dword [esp + 0x68], eax
cmp eax, dword [esp + 0x64]
jl 0x1004af69
mov eax, dword [esp + 0x5c]
add dword [esp + 0x3c], eax
mov eax, dword [esp + 0x74]
add eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0xa0]
add dword [esp + 0x7c], ecx
mov dword [esp + 0x74], eax
cmp eax, dword [esp + 0x88]
jl 0x1004af2e
fstp st(1)
fstp st(0)
lea edx, [esp + 0xa8]
cmp dword [esp + 0x30], edx
je 0x1004baff
mov eax, dword [esp + 0x30]
push eax
call sub.MSVCR100.dll_free
add esp, 4
mov ecx, dword [esp + 0x32ac]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.1007d356
mov esp, ebp
pop ebp
ret