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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8c
fldz
fld qword [0x4e3b30]
fldz
mov edx, dword [ebp + 0x14]
fld qword [0x4e3dc0]
fld qword [0x4e3030]
fld qword [0x4e3b58]
fld dword [0x50aab0]
push ebx
imul ebx, edx, 0x15d4
push esi
push edi
mov dword [esp + 0x70], 0
mov dword [esp + 0x94], ebx
jmp 0x49d32f
fxch st(4)
fxch st(1)
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 0x6c]
add eax, ebx
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0x68], eax
mov eax, edx
cdq
idiv dword [ecx + 0x44]
mov esi, dword [ebx]
mov ebx, dword [ebp + 0x10]
mov edi, eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
mov eax, dword [ecx + 8]
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x14], eax
mov ecx, dword [ecx + 0x38]
imul ecx, edx
add ecx, dword [ebx + 0x30]
cmp ecx, esi
jg 0x49d36a
mov ecx, esi
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov dword [eax], ecx
mov eax, dword [esi + 0x3c]
mov ecx, dword [ebx + 4]
imul eax, edi
add eax, dword [esi + 0x34]
cmp eax, ecx
jg 0x49d384
mov eax, ecx
mov esi, dword [esp + 0x14]
mov dword [esi + 4], eax
lea eax, [edx + 1]
mov ecx, dword [ebx + 8]
mov ebx, dword [ebp + 0x10]
imul eax, dword [ebx + 0x38]
add eax, dword [ebx + 0x30]
cmp eax, ecx
jl 0x49d3a1
mov eax, ecx
mov edx, dword [ebp + 0xc]
mov dword [esi + 8], eax
lea eax, [edi + 1]
imul eax, dword [ebx + 0x3c]
mov ecx, dword [edx + 0xc]
add eax, dword [ebx + 0x34]
cmp eax, ecx
jl 0x49d3ba
mov eax, ecx
mov ebx, dword [esp + 0x68]
mov edi, esi
xor esi, esi
mov dword [edi + 0xc], eax
mov eax, dword [edx + 0x10]
mov dword [edi + 0x10], eax
cmp dword [ebx + 0xc], esi
jg 0x49d3df
fstp st(0)
fstp st(3)
jmp 0x49d4a7
fxch st(1)
fxch st(4)
fxch st(1)
fld dword [ebx + esi*4 + 0x14]
fucomp st(7)
fnstsw ax
test ah, 0x44
jnp 0x49d443
mov ecx, dword [edi + 8]
fstp st(0)
sub ecx, dword [edi]
fstp st(3)
mov eax, dword [edi + 0xc]
sub eax, dword [edi + 4]
mov edx, dword [edx + 0x18]
imul ecx, eax
imul ecx, dword [edx + 0x18]
imul ecx, dword [edi + 0x10]
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fld dword [ebx + esi*4 + 0x14]
fmul st(5)
fild dword [edx]
fstp dword [esp + 0x10]
fmul dword [esp + 0x10]
fild dword [edx + 4]
mov edx, dword [ebp + 0xc]
fstp dword [esp + 0x10]
fmul dword [esp + 0x10]
fdivp st(1)
fld dword [0x50aab0]
fldz
jmp 0x49d449
fld st(4)
fxch st(2)
fxch st(5)
fxch st(2)
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fst dword [ebx + esi*4 + 0x14]
fucom st(7)
fnstsw ax
test ah, 0x44
jnp 0x49d48f
test esi, esi
je 0x49d481
fstp st(1)
fld dword [ebx + esi*4 + 0x10]
fadd st(4)
fcompp
fnstsw ax
test ah, 0x41
jne 0x49d493
fld dword [ebx + esi*4 + 0x10]
fadd st(2)
fstp dword [ebx + esi*4 + 0x14]
jmp 0x49d493
fcomp st(5)
fnstsw ax
test ah, 5
jp 0x49d491
fstp dword [ebx + 0x14]
jmp 0x49d493
fstp st(0)
fstp st(0)
fld dword [0x50aab0]
inc esi
cmp esi, dword [ebx + 0xc]
jl 0x49d3d9
fstp st(0)
fstp st(0)
cmp dword [edi + 0x10], 0
mov dword [esp + 0x10], 0
jle 0x49db53
mov eax, dword [esp + 0x14]
fstp st(4)
fstp st(1)
xor edi, edi
fstp st(2)
mov dword [esp + 0x48], edi
xor ecx, ecx
fstp st(1)
fstp st(0)
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x54], ecx
jmp 0x49d4e3
mov edx, dword [ebp + 0xc]
mov esi, dword [ebx + 0x15d0]
mov ebx, dword [eax + 0x14]
mov eax, dword [edx + 0x18]
add ebx, ecx
add esi, dword [esp + 0x54]
push 0x10
mov dword [esp + 0x44], esi
mov ecx, dword [edi + eax]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x24], ebx
mov eax, dword [eax]
dec eax
add eax, ecx
cdq
idiv ecx
mov dword [ebx], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x18]
mov ecx, dword [edi + eax + 4]
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 4]
dec eax
add eax, ecx
cdq
idiv ecx
mov dword [ebx + 4], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x18]
mov ecx, dword [edi + eax]
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 8]
dec eax
add eax, ecx
cdq
idiv ecx
mov dword [ebx + 8], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x18]
mov ecx, dword [edi + eax + 4]
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0xc]
dec eax
add eax, ecx
cdq
idiv ecx
mov ecx, dword [ebx + 8]
sub ecx, dword [ebx]
mov dword [ebx + 0xc], eax
sub eax, dword [ebx + 4]
imul ecx, eax
shl ecx, 2
push ecx
call fcn.004176d3
mov dword [ebx + 0x18], eax
xor edx, edx
mov eax, dword [esi + 4]
add esp, 8
mov dword [ebx + 0x10], eax
mov dword [esp + 0x24], edx
test eax, eax
jle 0x49db03
jmp 0x49d590
mov ecx, dword [ebx + 0x10]
mov edi, 1
mov eax, dword [ebx]
sub ecx, edx
dec eax
imul esi, edx, 0x7c
dec ecx
shl edi, cl
add eax, edi
mov dword [esp + 0x78], ecx
sar eax, cl
add esi, dword [ebx + 0x14]
mov dword [esp + 0x7c], esi
mov dword [esp + 0x2c], edi
mov dword [esi], eax
mov eax, dword [ebx + 4]
dec eax
add eax, edi
sar eax, cl
mov dword [esi + 4], eax
mov eax, dword [ebx + 8]
dec eax
add eax, edi
sar eax, cl
mov dword [esi + 8], eax
mov eax, dword [ebx + 0xc]
xor ebx, ebx
dec eax
add eax, edi
sar eax, cl
test edx, edx
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x40]
setne bl
lea ebx, [ebx*2 + 1]
mov dword [esi + 0x18], ebx
test byte [eax], 1
je 0x49d603
mov ecx, dword [eax + edx*4 + 0x32c]
mov edx, dword [eax + edx*4 + 0x3b0]
jmp 0x49d60a
mov ecx, 0xf
mov edx, ecx
mov edi, dword [esi]
mov eax, dword [esi + 4]
sar edi, cl
shl edi, cl
mov dword [esp + 0x28], edx
mov dword [esp + 0x1c], ecx
mov ecx, edx
sar eax, cl
mov edx, 1
shl eax, cl
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 8]
shl edx, cl
dec edx
mov dword [esp + 0x74], edi
add eax, edx
mov edx, 1
sar eax, cl
shl eax, cl
sub eax, edi
sar eax, cl
mov ecx, dword [esp + 0x28]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0xc]
shl edx, cl
dec edx
add eax, edx
mov edx, dword [esp + 0x24]
sar eax, cl
shl eax, cl
sub eax, dword [esp + 0x3c]
sar eax, cl
mov dword [esi + 0x14], eax
test edx, edx
jne 0x49d671
mov edi, dword [esp + 0x1c]
jmp 0x49d691
mov eax, dword [esp + 0x3c]
inc edi
sar edi, 1
inc eax
mov dword [esp + 0x74], edi
mov edi, dword [esp + 0x1c]
sar eax, 1
dec edi
dec ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x40]
mov eax, dword [ecx + 8]
mov dword [esp + 0x34], eax
cmp eax, edi
jl 0x49d6a4
mov dword [esp + 0x34], edi
mov ecx, dword [ecx + 0xc]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x38], ecx
cmp ecx, eax
jl 0x49d6b7
mov dword [esp + 0x38], eax
xor eax, eax
mov dword [esp + 0x50], eax
test ebx, ebx
jle 0x49daed
lea ebx, [esi + 0x38]
mov dword [esp + 0x18], ebx
lea esp, [esp]
test edx, edx
jne 0x49d6dd
xor esi, esi
mov dword [ebx - 0xc], esi
xor ebx, ebx
jmp 0x49d6f6
lea esi, [eax + 1]
mov dword [ebx - 0xc], esi
cmp esi, 1
je 0x49d6f1
cmp esi, 3
je 0x49d6f1
xor ebx, ebx
jmp 0x49d6f6
mov ebx, 1
cmp esi, 2
je 0x49d704
cmp esi, 3
je 0x49d704
xor edi, edi
jmp 0x49d709
mov edi, 1
test esi, esi
jne 0x49d74d
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x18]
dec ecx
mov edx, dword [esp + 0x2c]
mov eax, dword [edi]
add eax, ecx
mov ecx, dword [esp + 0x78]
sar eax, cl
mov dword [ebx - 0x1c], eax
mov eax, dword [edi + 4]
dec eax
add eax, edx
dec edx
sar eax, cl
mov dword [ebx - 0x18], eax
mov eax, dword [edi + 8]
add eax, edx
sar eax, cl
mov dword [ebx - 0x14], eax
mov eax, dword [edi + 0xc]
mov edi, dword [esp + 0x2c]
dec edi
add eax, edi
jmp 0x49d7c2
imul ebx, dword [esp + 0x2c]
mov edx, 1
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x78]
imul edi, dword [esp + 0x2c]
inc ecx
shl edx, cl
mov eax, dword [eax]
sub edx, ebx
dec eax
add eax, edx
mov edx, dword [esp + 0x18]
sar eax, cl
mov dword [edx - 0x1c], eax
mov edx, 1
mov eax, dword [esp + 0x20]
shl edx, cl
sub edx, edi
mov eax, dword [eax + 4]
dec eax
add eax, edx
mov edx, dword [esp + 0x18]
sar eax, cl
mov dword [edx - 0x18], eax
mov edx, 1
mov eax, dword [esp + 0x20]
shl edx, cl
sub edx, ebx
mov ebx, dword [esp + 0x18]
mov eax, dword [eax + 8]
dec eax
add eax, edx
mov edx, 1
sar eax, cl
mov dword [ebx - 0x14], eax
mov eax, dword [esp + 0x20]
shl edx, cl
sub edx, edi
mov eax, dword [eax + 0xc]
dec eax
add eax, edx
mov edx, dword [esp + 0x24]
sar eax, cl
mov dword [ebx - 0x10], eax
test edx, edx
jne 0x49d7d3
xor edi, edi
jmp 0x49d7df
mov edi, dword [esp + 0x50]
add edi, 0xfffffffe
lea edi, [edi + edx*2]
add edi, edx
mov eax, dword [esp + 0x40]
push esi
cmp dword [eax + 0x14], 0
jne 0x49d7f1
call fcn.004a3240
jmp 0x49d7f6
call fcn.004a3220
mov edx, dword [esp + 0x4c]
mov ecx, eax
mov eax, dword [ebp + 0xc]
add esp, 4
mov esi, dword [esp + 0x40]
mov eax, dword [eax + 0x18]
mov eax, dword [edx + eax + 0x18]
sub eax, dword [esi + edi*8 + 0x1c]
add eax, ecx
mov dword [esp + 0x44], eax
fild dword [esp + 0x44]
fstp qword [esp + 0x80]
fld qword [0x4e3b20]
fld qword [esp + 0x80]
call sub.MSVCRT.dll__CIpow
fild dword [esi + edi*8 + 0x20]
xor edx, edx
mov dword [esp + 0x44], edx
fstp qword [esp + 0x80]
fld qword [esp + 0x80]
fmul qword [0x50aaa8]
fld1
faddp st(1)
fmulp st(1)
fstp dword [ebx]
mov ecx, dword [esi + 0x324]
mov eax, dword [esi + edi*8 + 0x1c]
dec ecx
mov esi, dword [esp + 0x7c]
add eax, ecx
mov dword [ebx - 4], eax
mov eax, dword [esi + 0x14]
imul eax, dword [esi + 0x10]
test eax, eax
jle 0x49dad0
mov ecx, dword [esp + 0x1c]
mov edi, 1
shl edi, cl
mov eax, 1
mov ecx, dword [esp + 0x28]
shl eax, cl
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x8c], eax
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x64], eax
mov eax, 1
shl eax, cl
mov dword [esp + 0x80], edi
mov dword [esp + 0x88], eax
mov dword [esp + 0x5c], edx
mov eax, edx
cdq
idiv dword [esi + 0x10]
mov ebx, eax
mov ecx, edx
mov eax, dword [esp + 0x8c]
imul ecx, edi
imul ebx, eax
add ecx, dword [esp + 0x74]
add ebx, dword [esp + 0x3c]
mov dword [esp + 0x30], ecx
lea edx, [edi + ecx]
lea edi, [eax + ebx]
mov eax, dword [esp + 0x18]
mov esi, dword [eax - 8]
add esi, dword [esp + 0x5c]
mov eax, dword [eax - 0x1c]
cmp ecx, eax
jg 0x49d907
mov ecx, eax
mov dword [esp + 0x30], eax
mov dword [esi], ecx
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx - 0x18]
cmp ebx, eax
jg 0x49d916
mov ebx, eax
mov dword [esi + 4], ebx
mov eax, dword [ecx - 0x14]
cmp edx, eax
jl 0x49d922
mov edx, eax
mov dword [esi + 8], edx
mov eax, dword [ecx - 0x10]
cmp edi, eax
jl 0x49d92e
mov edi, eax
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
sar eax, cl
shl eax, cl
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x64]
dec eax
sar ebx, cl
add eax, edx
shl ebx, cl
mov ecx, dword [esp + 0x34]
sar eax, cl
push dword [esi + 0x18]
shl eax, cl
sub eax, dword [esp + 0x34]
sar eax, cl
mov ecx, dword [esp + 0x3c]
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x8c]
dec eax
mov dword [esi + 0xc], edi
add eax, edi
mov dword [esp + 0x94], ebx
sar eax, cl
shl eax, cl
sub eax, ebx
sar eax, cl
mov dword [esi + 0x14], eax
call sub.MSVCRT.dll_free
mov eax, dword [esi + 0x10]
imul eax, dword [esi + 0x14]
push 0x30
push eax
call sub.MSVCRT.dll_calloc
mov dword [esi + 0x18], eax
add esp, 0xc
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x49d9ae
push eax
call fcn.004a7740
add esp, 4
mov eax, dword [esi + 0x20]
test eax, eax
je 0x49d9be
push eax
call fcn.004a7740
add esp, 4
push dword [esi + 0x14]
push dword [esi + 0x10]
call fcn.004a7540
push dword [esi + 0x14]
mov dword [esi + 0x1c], eax
push dword [esi + 0x10]
call fcn.004a7540
mov dword [esi + 0x20], eax
xor ecx, ecx
mov eax, dword [esi + 0x10]
add esp, 0x10
imul eax, dword [esi + 0x14]
mov dword [esp + 0x60], ecx
test eax, eax
jle 0x49daa4
mov dword [esp + 0x58], ecx
mov eax, ecx
mov edi, dword [esp + 0x88]
cdq
idiv dword [esi + 0x10]
mov ecx, dword [esp + 0x64]
imul edx, ecx
imul eax, edi
add edx, dword [esp + 0x30]
add eax, ebx
lea ebx, [ecx + edx]
lea ecx, [edi + eax]
mov edi, dword [esi + 0x18]
add edi, dword [esp + 0x58]
mov dword [esp + 0x6c], ecx
mov ecx, dword [esi]
cmp edx, ecx
jg 0x49da2c
mov edx, ecx
mov dword [edi + 0xc], edx
mov ecx, dword [esi + 4]
cmp eax, ecx
jg 0x49da38
mov eax, ecx
mov dword [edi + 0x10], eax
mov eax, dword [esi + 8]
cmp ebx, eax
jl 0x49da44
mov ebx, eax
mov dword [edi + 0x14], ebx
mov eax, dword [esi + 0xc]
cmp dword [esp + 0x6c], eax
jge 0x49da54
mov eax, dword [esp + 0x6c]
push 1
push 0x2000
mov dword [edi + 0x18], eax
call sub.MSVCRT.dll_calloc
push 0x18
push 0x64
mov dword [edi], eax
call sub.MSVCRT.dll_calloc
push 0x18
push 0x64
mov dword [edi + 4], eax
call sub.MSVCRT.dll_calloc
mov ecx, dword [esp + 0x78]
add esp, 0x18
add dword [esp + 0x58], 0x30
inc ecx
mov ebx, dword [esp + 0x90]
mov dword [edi + 8], eax
mov eax, dword [esi + 0x10]
imul eax, dword [esi + 0x14]
mov dword [esp + 0x60], ecx
cmp ecx, eax
jl 0x49d9f6
mov esi, dword [esp + 0x7c]
mov edx, dword [esp + 0x44]
add dword [esp + 0x5c], 0x24
inc edx
mov edi, dword [esp + 0x80]
mov eax, dword [esi + 0x14]
imul eax, dword [esi + 0x10]
mov dword [esp + 0x44], edx
cmp edx, eax
jl 0x49d8c6
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x50]
add ebx, 0x20
mov edx, dword [esp + 0x24]
inc eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x18], ebx
cmp eax, dword [esi + 0x18]
jl 0x49d6d0
mov ebx, dword [esp + 0x20]
inc edx
mov dword [esp + 0x24], edx
cmp edx, dword [ebx + 0x10]
jl 0x49d590
mov edi, dword [esp + 0x48]
mov ecx, dword [esp + 0x10]
add edi, 0x30
mov eax, dword [esp + 0x14]
inc ecx
add dword [esp + 0x4c], 0x20
add dword [esp + 0x54], 0x434
mov ebx, dword [esp + 0x68]
cmp ecx, dword [eax + 0x10]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x48], edi
jl 0x49d4e0
fldz
fld qword [0x4e3b58]
fld qword [0x4e3030]
fld qword [0x4e3dc0]
fld qword [0x4e3b30]
fxch st(3)
fxch st(2)
mov eax, dword [esp + 0x70]
fld dword [0x50aab0]
inc eax
fldz
mov edx, dword [ebp + 0x14]
mov ebx, dword [esp + 0x94]
mov dword [esp + 0x70], eax
cmp eax, 1
jl 0x49d32b
fstp st(1)
fstp st(0)
fstp st(4)
fstp st(1)
fstp st(2)
pop edi
fstp st(1)
pop esi
fstp st(0)
pop ebx
mov esp, ebp
pop ebp
ret