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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x329c
call fcn.1007d430
mov eax, dword [0x1008a2c0]
xor eax, esp
mov dword [esp + 0x3298], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [eax + 0x10]
push esi
push edi
mov edi, dword [eax + 8]
mov dword [esp + 0x7c], edi
mov edi, dword [eax + 4]
mov dword [esp + 0x54], edi
mov edi, dword [edx + 0x10]
mov dword [esp + 0x2c], edi
imul ecx, dword [esp + 0x2c]
mov edi, dword [eax + 0x18]
add ecx, dword [edx + 0x18]
mov dword [esp + 0x40], edi
mov edi, dword [eax + 0xc]
xor edx, edx
mov eax, 0x10000
div ebx
sub edi, dword [ebp + 0x10]
mov dword [esp + 0x28], ebx
inc edi
lea esi, [esp + 0xa0]
mov dword [esp + 0x78], edi
mov dword [esp + 0x3c], ecx
mov ebx, eax
mov dword [esp + 0x80], ebx
test ebx, ebx
jne 0x1004ed19
mov ebx, 1
mov dword [esp + 0x80], ebx
jmp 0x1004ed33
cmp ebx, 0x640
jle 0x1004ed33
lea eax, [ebx*8]
push eax
call sub.MSVCR100.dll_malloc
add esp, 4
mov esi, eax
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x50], edx
mov dword [esp + 0x44], 0
test edi, edi
jle 0x1004f5f1
fld qword [0x1007e258]
mov eax, ebx
imul eax, dword [esp + 0x28]
mov dword [esp + 0x8c], eax
mov eax, ebx
imul eax, dword [esp + 0x2c]
mov dword [esp + 0x88], eax
jmp 0x1004ed82
mov ebx, dword [esp + 0x80]
mov edi, dword [esp + 0x78]
sub edi, dword [esp + 0x44]
mov dword [esp + 0x24], edi
cmp edi, ebx
jle 0x1004ed92
mov dword [esp + 0x24], ebx
cmp dword [esp + 0x54], 0
jle 0x1004f5c3
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x50]
lea ecx, [edx - 1]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x58]
sub ecx, eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x84], ecx
mov dword [esp + 0x40], edx
mov ecx, dword [esp + 0x4c]
mov edx, 1
shl edx, cl
test dword [ebp + 0x14], edx
je 0x1004f5ac
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x84]
add ecx, eax
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x48], eax
test ecx, ecx
jle 0x1004ee00
and ecx, 0x1fffffff
add ecx, ecx
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
cmp dword [esp + 0x7c], 0
jle 0x1004f5ac
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x3c], edx
mov eax, dword [ebp + 0x10]
mov ebx, dword [esp + 0x38]
add eax, 0xfffffffc
xor edx, edx
test eax, eax
jle 0x1004ef91
mov ecx, dword [esp + 0x28]
lea eax, [ecx*4]
mov dword [esp + 0x60], eax
lea eax, [ecx + ecx]
sub ecx, eax
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x28]
mov edx, ebx
lea edi, [eax + edx]
mov edx, dword [ebp + 0xc]
lea ecx, [ecx + ecx*2]
sub ecx, eax
mov eax, dword [ebp + 0x10]
add eax, 0xfffffffb
shr eax, 2
inc eax
mov dword [esp + 0x30], eax
add eax, eax
add edx, 0x10
add eax, eax
mov dword [esp + 0x34], edi
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x18], eax
fld qword [edx - 0x10]
movzx ecx, byte [ebx]
fld qword [edx - 8]
mov eax, dword [esp + 0x14]
fst qword [esp + 0x98]
mov dword [esp + 0x10], ecx
fld qword [edx]
movzx ecx, byte [edi + eax]
fstp qword [esp + 0x90]
fld qword [edx + 8]
movzx eax, byte [edi]
fstp qword [esp + 0x70]
fild dword [esp + 0x10]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x6c]
add ecx, edi
fild dword [esp + 0x10]
mov dword [esp + 0x10], eax
xor eax, eax
fild dword [esp + 0x10]
cmp dword [esp + 0x24], eax
jle 0x1004ef6a
fstp st(5)
jmp 0x1004eed2
fxch st(1)
fxch st(4)
fxch st(1)
fxch st(2)
movzx edi, byte [ecx]
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x28]
movzx edi, byte [edi + ecx]
fild dword [esp + 0x10]
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x28]
add eax, 2
fild dword [esp + 0x10]
lea ecx, [ecx + edi*2]
fld st(2)
fmulp st(5)
fxch st(3)
fmul st(5)
faddp st(4)
fld st(5)
fmul qword [esp + 0x90]
faddp st(4)
fld qword [esp + 0x70]
fmul st(1)
faddp st(4)
fxch st(3)
fadd qword [esi + eax*8 - 0x10]
fstp qword [esi + eax*8 - 0x10]
fmul st(3)
fld st(4)
fld qword [esp + 0x98]
fmul st(1), st(0)
fxch st(2)
faddp st(1)
fld st(3)
fmul qword [esp + 0x90]
faddp st(1)
fld st(2)
fmul qword [esp + 0x70]
faddp st(1)
fadd qword [esi + eax*8 - 8]
fstp qword [esi + eax*8 - 8]
cmp eax, dword [esp + 0x24]
jl 0x1004eeca
mov edi, dword [esp + 0x34]
fstp st(4)
fstp st(1)
fstp st(0)
fstp st(0)
fstp st(0)
fld qword [0x1007e258]
jmp 0x1004ef74
fstp st(2)
fstp st(0)
fstp st(0)
fstp st(1)
fstp st(0)
mov eax, dword [esp + 0x60]
add edi, eax
add ebx, eax
add edx, 0x20
dec dword [esp + 0x30]
mov dword [esp + 0x34], edi
jne 0x1004ee71
mov edx, dword [esp + 0x18]
mov eax, dword [ebp + 0xc]
fld qword [eax + edx*8]
mov ecx, dword [esp + 0x28]
fld qword [eax + edx*8 + 8]
mov edi, dword [esp + 0x48]
fld qword [eax + edx*8 + 0x10]
mov dword [esp + 0x14], ebx
fld qword [eax + edx*8 + 0x18]
movzx eax, byte [ebx]
mov dword [esp + 0x18], eax
fstp qword [esp + 0x70]
lea eax, [ebx + ecx]
mov dword [esp + 0x6c], eax
movzx eax, byte [eax]
fild dword [esp + 0x18]
mov dword [esp + 0x18], eax
lea eax, [ebx + ecx*2]
mov dword [esp + 0x60], eax
movzx eax, byte [eax]
fild dword [esp + 0x18]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x10]
sub eax, edx
fild dword [esp + 0x18]
cmp eax, 4
jne 0x1004f1ad
lea eax, [ebx + ecx*2]
add eax, ecx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
xor ebx, ebx
add eax, 0xfffffffe
js 0x1004f14e
fstp st(6)
jmp 0x1004f01a
fstp st(0)
fld qword [esp + 0x18]
fxch st(5)
fxch st(1)
mov eax, dword [esp + 0x14]
fst qword [esp + 0x60]
movzx ecx, byte [eax]
mov edx, dword [esp + 0x28]
movzx eax, byte [edx + eax]
mov dword [esp + 0x18], ecx
fild dword [esp + 0x18]
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fstp qword [esp + 0x18]
fxch st(1)
fmul st(4)
fxch st(2)
fmul st(5)
faddp st(2)
fld st(5)
fmul st(3)
faddp st(2)
fld qword [esp + 0x70]
fmul st(1)
faddp st(2)
fxch st(1)
fadd qword [esi + ebx*8]
fsub qword [0x1007e258]
fld qword [0x1007e220]
fcomp st(1)
fnstsw ax
test ah, 1
jne 0x1004f07f
fstp st(0)
mov dword [esp + 0x10], 0x80000000
jmp 0x1004f0a3
fld qword [0x1007e228]
fcomp st(1)
fnstsw ax
test ah, 0x41
jp 0x1004f09a
fstp st(0)
mov dword [esp + 0x10], 0x7fffffff
jmp 0x1004f0a3
call fcn.1007d380
mov dword [esp + 0x10], eax
fld qword [esp + 0x60]
fmul st(4)
fld st(5)
fmul st(4)
faddp st(1)
fld st(1)
fmul st(3)
faddp st(1)
fld qword [esp + 0x18]
fmul qword [esp + 0x70]
faddp st(1)
fadd qword [esi + ebx*8 + 8]
fld qword [0x1007e258]
fsub st(1), st(0)
fld qword [0x1007e220]
fcomp st(2)
fnstsw ax
test ah, 1
jne 0x1004f0e3
fstp st(1)
mov eax, 0x80000000
jmp 0x1004f102
fld qword [0x1007e228]
fcomp st(2)
fnstsw ax
test ah, 0x41
jp 0x1004f0fb
fstp st(1)
mov eax, 0x7fffffff
jmp 0x1004f102
fxch st(1)
call fcn.1007d380
mov ecx, dword [esp + 0x10]
fldz
sar ecx, 0x18
sar eax, 0x18
xor cl, 0x80
mov byte [edi], cl
mov ecx, dword [esp + 0x2c]
xor al, 0x80
mov byte [ecx + edi], al
fst qword [esi + ebx*8]
mov eax, dword [esp + 0x28]
fstp qword [esi + ebx*8 + 8]
add eax, eax
add dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
add ebx, 2
add eax, 0xfffffffe
lea edi, [edi + ecx*2]
cmp ebx, eax
jle 0x1004f010
fld qword [esp + 0x18]
fxch st(1)
fxch st(6)
fxch st(2)
fxch st(1)
cmp ebx, dword [esp + 0x24]
jge 0x1004f584
mov edx, dword [esp + 0x14]
movzx eax, byte [edx]
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fxch st(2)
fmulp st(5)
fxch st(2)
fmulp st(5)
fxch st(3)
faddp st(4)
fmulp st(1)
faddp st(2)
fmul qword [esp + 0x70]
faddp st(1)
fadd qword [esi + ebx*8]
fsub st(1)
fld qword [0x1007e220]
fcomp st(1)
fnstsw ax
test ah, 1
jne 0x1004f4e3
fstp st(0)
mov eax, 0x80000000
fldz
sar eax, 0x18
xor al, 0x80
fstp qword [esi + ebx*8]
mov byte [edi], al
jmp 0x1004f596
xor ebx, ebx
fstp st(0)
cmp eax, 3
jne 0x1004f37b
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x60]
add eax, 0xfffffffe
mov dword [esp + 0x14], edx
mov dword [esp + 0x34], eax
js 0x1004f2e9
mov eax, dword [esp + 0x2c]
add eax, eax
mov dword [esp + 0x30], eax
jmp 0x1004f1e2
fstp st(0)
movzx eax, byte [edx]
fst qword [esp + 0x60]
movzx edx, byte [ecx + edx]
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
mov dword [esp + 0x18], edx
fild dword [esp + 0x18]
fxch st(2)
fmul st(5)
fxch st(3)
fmul st(6)
faddp st(3)
fld st(0)
fmul st(4)
faddp st(3)
fxch st(2)
fadd qword [esi + ebx*8]
fsub st(6)
fld qword [0x1007e220]
fcomp st(1)
fnstsw ax
test ah, 1
jne 0x1004f22f
fstp st(0)
mov dword [esp + 0x10], 0x80000000
jmp 0x1004f257
fld qword [0x1007e228]
fcomp st(1)
fnstsw ax
test ah, 0x41
jp 0x1004f24a
fstp st(0)
mov dword [esp + 0x10], 0x7fffffff
jmp 0x1004f257
call fcn.1007d380
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x10], eax
fld qword [esp + 0x60]
fmul st(5)
fld st(2)
fmul st(5)
faddp st(1)
fld st(1)
fmul st(4)
faddp st(1)
fadd qword [esi + ebx*8 + 8]
fsub st(6)
fld qword [0x1007e220]
fcomp st(1)
fnstsw ax
test ah, 1
jne 0x1004f287
fstp st(0)
mov eax, 0x80000000
jmp 0x1004f2a8
fld qword [0x1007e228]
fcomp st(1)
fnstsw ax
test ah, 0x41
jp 0x1004f29f
fstp st(0)
mov eax, 0x7fffffff
jmp 0x1004f2a8
call fcn.1007d380
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x10]
fldz
sar edx, 0x18
xor dl, 0x80
mov byte [edi], dl
mov edx, dword [esp + 0x2c]
sar eax, 0x18
xor al, 0x80
mov byte [edx + edi], al
fst qword [esi + ebx*8]
mov edx, dword [esp + 0x14]
fst qword [esi + ebx*8 + 8]
add edi, dword [esp + 0x30]
lea eax, [ecx + ecx]
add edx, eax
add ebx, 2
mov dword [esp + 0x14], edx
cmp ebx, dword [esp + 0x34]
jle 0x1004f1e0
jmp 0x1004f2eb
fldz
cmp ebx, dword [esp + 0x24]
jge 0x1004f584
movzx eax, byte [edx]
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fxch st(2)
fmulp st(5)
fxch st(2)
fmulp st(5)
fxch st(3)
faddp st(4)
fxch st(2)
fmulp st(1)
faddp st(2)
fxch st(1)
fadd qword [esi + ebx*8]
fsub st(2)
fld qword [0x1007e220]
fcomp st(1)
fnstsw ax
test ah, 1
jne 0x1004f33e
mov eax, 0x80000000
fstp st(0)
sar eax, 0x18
fstp qword [esi + ebx*8]
xor al, 0x80
mov byte [edi], al
jmp 0x1004f596
fld qword [0x1007e228]
fcomp st(1)
fnstsw ax
test ah, 0x41
jp 0x1004f363
mov eax, 0x7fffffff
fstp st(0)
sar eax, 0x18
fstp qword [esi + ebx*8]
xor al, 0x80
mov byte [edi], al
jmp 0x1004f596
fstp st(1)
call fcn.1007d380
fldz
sar eax, 0x18
fstp qword [esi + ebx*8]
xor al, 0x80
mov byte [edi], al
jmp 0x1004f596
fstp st(0)
fstp st(1)
cmp eax, 2
jne 0x1004f50e
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x6c]
add eax, 0xfffffffe
mov dword [esp + 0x14], edx
mov dword [esp + 0x34], eax
js 0x1004f49c
mov eax, dword [esp + 0x2c]
add eax, eax
mov dword [esp + 0x30], eax
movzx eax, byte [edx]
movzx edx, byte [ecx + edx]
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
mov dword [esp + 0x18], edx
fild dword [esp + 0x18]
fld st(1)
fmul st(4)
fxch st(3)
fmul st(5)
faddp st(3)
fxch st(2)
fadd qword [esi + ebx*8]
fsub st(5)
fld qword [0x1007e220]
fcomp st(1)
fnstsw ax
test ah, 1
jne 0x1004f3ee
fstp st(0)
mov dword [esp + 0x10], 0x80000000
jmp 0x1004f416
fld qword [0x1007e228]
fcomp st(1)
fnstsw ax
test ah, 0x41
jp 0x1004f409
fstp st(0)
mov dword [esp + 0x10], 0x7fffffff
jmp 0x1004f416
call fcn.1007d380
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x10], eax
fmul st(3)
fld st(1)
fmul st(3)
faddp st(1)
fadd qword [esi + ebx*8 + 8]
fsub st(4)
fld qword [0x1007e220]
fcomp st(1)
fnstsw ax
test ah, 1
jne 0x1004f43c
fstp st(0)
mov eax, 0x80000000
jmp 0x1004f45d
fld qword [0x1007e228]
fcomp st(1)
fnstsw ax
test ah, 0x41
jp 0x1004f454
fstp st(0)
mov eax, 0x7fffffff
jmp 0x1004f45d
call fcn.1007d380
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x10]
fldz
sar edx, 0x18
xor dl, 0x80
mov byte [edi], dl
mov edx, dword [esp + 0x2c]
sar eax, 0x18
xor al, 0x80
mov byte [edx + edi], al
fst qword [esi + ebx*8]
mov edx, dword [esp + 0x14]
fstp qword [esi + ebx*8 + 8]
add edi, dword [esp + 0x30]
lea eax, [ecx + ecx]
add edx, eax
add ebx, 2
mov dword [esp + 0x14], edx
cmp ebx, dword [esp + 0x34]
jle 0x1004f3ab
cmp ebx, dword [esp + 0x24]
jge 0x1004f590
movzx eax, byte [edx]
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fmulp st(2)
fmulp st(2)
faddp st(1)
fadd qword [esi + ebx*8]
fsub st(1)
fld qword [0x1007e220]
fcomp st(1)
fnstsw ax
test ah, 1
jne 0x1004f4e3
fstp st(0)
mov eax, 0x80000000
fldz
sar eax, 0x18
xor al, 0x80
fstp qword [esi + ebx*8]
mov byte [edi], al
jmp 0x1004f596
fld qword [0x1007e228]
fcomp st(1)
fnstsw ax
test ah, 0x41
jp 0x1004f365
fstp st(0)
mov eax, 0x7fffffff
fldz
sar eax, 0x18
xor al, 0x80
fstp qword [esi + ebx*8]
mov byte [edi], al
jmp 0x1004f596
fstp st(0)
fstp st(0)
cmp dword [esp + 0x24], ebx
jle 0x1004f594
mov edx, dword [esp + 0x14]
movzx eax, byte [edx]
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fmul st(1)
fadd qword [esi + ebx*8]
fsub st(2)
fld qword [0x1007e220]
fcomp st(1)
fnstsw ax
test ah, 1
jne 0x1004f546
fstp st(0)
mov eax, 0x80000000
jmp 0x1004f567
fld qword [0x1007e228]
fcomp st(1)
fnstsw ax
test ah, 0x41
jp 0x1004f55e
fstp st(0)
mov eax, 0x7fffffff
jmp 0x1004f567
call fcn.1007d380
mov ecx, dword [esp + 0x28]
fldz
add dword [esp + 0x14], ecx
sar eax, 0x18
xor al, 0x80
mov byte [edi], al
fstp qword [esi + ebx*8]
add edi, dword [esp + 0x2c]
inc ebx
cmp ebx, dword [esp + 0x24]
jl 0x1004f518
jmp 0x1004f594
fstp st(0)
fstp st(1)
fstp st(0)
fstp st(2)
fstp st(0)
jmp 0x1004f594
fstp st(0)
fstp st(1)
fstp st(0)
mov eax, dword [esp + 0x54]
add dword [esp + 0x38], eax
add dword [esp + 0x48], eax
dec dword [esp + 0x3c]
jne 0x1004ee13
mov eax, 1
sub dword [esp + 0x4c], eax
add dword [esp + 0x5c], eax
sub dword [esp + 0x40], eax
jne 0x1004edc1
mov eax, dword [esp + 0x44]
add eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0x88]
add dword [esp + 0x58], ecx
add dword [esp + 0x50], edx
mov dword [esp + 0x44], eax
cmp eax, dword [esp + 0x78]
jl 0x1004ed77
fstp st(0)
lea eax, [esp + 0xa0]
cmp esi, eax
je 0x1004f605
push esi
call sub.MSVCR100.dll_free
add esp, 4
mov ecx, dword [esp + 0x32a4]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.1007d356
mov esp, ebp
pop ebp
ret