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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x51c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ecx, ecx
mov dword [esp + 0x28], ecx
mov eax, dword [edi + 0x28]
mov dword [esp + 0x4c], eax
cmp dword [eax + 0xc], ecx
jle 0x49faa6
fld qword [0x4e3e08]
mov edx, dword [edi + 0x24]
xor ebx, ebx
mov dword [esp + 0x70], edx
mov dword [esp + 0x2c], ebx
cmp dword [edx + 0x10], ebx
jle 0x49fa8f
mov eax, dword [edi + 0x20]
xor esi, esi
add eax, 0x70
mov dword [esp + 0x20], esi
mov dword [esp + 0x50], eax
mov eax, ecx
shl eax, 4
sub eax, ecx
lea eax, [esp + eax*8 + 0x78]
mov dword [esp + 0x5c], eax
mov eax, ecx
shl eax, 4
sub eax, ecx
lea eax, [esp + eax*8]
mov dword [esp + 0x6c], eax
xor eax, eax
mov dword [esp + 0x30], eax
mov edx, dword [edx + 0x14]
xor ecx, ecx
add edx, eax
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x48], edx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x1c], eax
test eax, eax
jle 0x49f847
mov ebx, dword [edx + 0x10]
lea edx, [esp + 0x78]
mov dword [esp + 0x24], ebx
mov dword [esp + 0xc], edx
test ebx, ebx
jle 0x49f82f
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x14], ebx
mov eax, dword [eax + 0x18]
fild dword [eax + esi + 0x18]
mov eax, ebx
mov esi, edx
imul eax, ecx
fstp qword [esp + 0x60]
fld qword [esp + 0x60]
fmul st(1)
lea ecx, [eax + eax*2]
mov eax, dword [esp + 0x50]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
mov eax, dword [eax]
lea edi, [eax + ecx*4]
mov ebx, 3
fild dword [edi]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fmul st(1)
call fcn.00417190
mov dword [esi], eax
add edi, 4
add esi, 4
dec ebx
jne 0x49f7f4
dec dword [esp + 0x14]
jne 0x49f7ef
mov ecx, dword [esp + 0x10]
fstp st(0)
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
mov edi, dword [ebp + 8]
inc ecx
add edx, 0x78
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], edx
cmp ecx, eax
jl 0x49f7b8
mov ebx, dword [esp + 0x2c]
mov edi, dword [esp + 0x48]
xor edx, edx
mov dword [esp + 0x1c], edx
cmp dword [edi + 0x10], edx
jle 0x49fa64
mov ebx, dword [esp + 0x6c]
xor ecx, ecx
mov eax, dword [esp + 0x5c]
sub eax, ebx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x74], eax
mov esi, dword [edi + 0x14]
add esi, ecx
xor ecx, ecx
mov dword [esp + 0x60], esi
mov dword [esp + 0x38], ecx
cmp dword [esi + 0x18], ecx
jle 0x49fa3c
mov edi, ebx
lea ebx, [esi + 0x30]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], ebx
mov eax, dword [esi + 0x10]
xor edx, edx
imul eax, dword [esi + 0x14]
mov dword [esp + 0x3c], edx
test eax, eax
jle 0x49fa14
xor ecx, ecx
mov dword [esp + 0x44], ecx
mov ebx, dword [ebx]
add ebx, ecx
mov dword [esp + 0x40], 0
mov eax, dword [ebx + 0x10]
imul eax, dword [ebx + 0x14]
test eax, eax
jle 0x49f9f1
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x74]
lea eax, [eax + eax*2]
mov esi, dword [ecx + edi]
shl eax, 3
xor ecx, ecx
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], esi
mov dword [esp + 0x34], ecx
mov edi, dword [ebx + 0x18]
add edi, ecx
mov ecx, dword [esp + 0x20]
mov edx, dword [edi + 4]
add edx, eax
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], edx
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + 0x18]
mov ecx, dword [eax + ecx + 0x18]
sub ecx, dword [edi + 0x1c]
cmp dword [esp + 0x28], 0
jne 0x49f92d
mov eax, esi
cmp ecx, eax
jl 0x49f922
xor eax, eax
mov dword [edi + 0x28], eax
jmp 0x49f94d
sub eax, ecx
mov dword [edi + 0x28], 0
jmp 0x49f94d
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
mov eax, esi
sub eax, edx
cmp ecx, edx
jl 0x49f949
sub edx, ecx
add eax, edx
mov edx, dword [esp + 0xc]
jns 0x49f94d
xor eax, eax
jmp 0x49f94d
mov edx, dword [esp + 0xc]
mov ecx, dword [edi + 0x28]
test ecx, ecx
jne 0x49f964
test eax, eax
je 0x49f960
lea esi, [eax - 1]
lea esi, [eax + esi*2]
jmp 0x49f969
xor esi, esi
jmp 0x49f969
lea esi, [ecx + eax*2]
add esi, eax
mov eax, esi
sub eax, ecx
mov dword [edx], eax
je 0x49f9b6
mov eax, dword [edi + 0x28]
test eax, eax
jne 0x49f989
mov eax, dword [edi + 8]
lea ecx, [esi + esi*2]
mov eax, dword [eax + ecx*8 - 0x18]
mov dword [edx + 4], eax
mov eax, dword [edi]
jmp 0x49f9b0
mov edx, dword [edi + 8]
lea ecx, [eax + eax*2]
lea eax, [esi + esi*2]
mov eax, dword [edx + eax*8 - 0x18]
sub eax, dword [edx + ecx*8 - 0x18]
mov edx, dword [esp + 0xc]
mov dword [edx + 4], eax
mov eax, dword [edi + 0x28]
lea ecx, [eax + eax*2]
mov eax, dword [edi + 8]
mov eax, dword [eax + ecx*8 - 0x18]
add eax, dword [edi]
mov dword [edx + 0x10], eax
mov dword [edi + 0x28], esi
mov eax, dword [ebx + 0x10]
imul eax, dword [ebx + 0x14]
mov esi, dword [esp + 0x40]
mov ecx, dword [esp + 0x34]
inc esi
add ecx, 0x30
mov dword [esp + 0x40], esi
mov dword [esp + 0x34], ecx
cmp esi, eax
mov eax, dword [esp + 0x54]
mov esi, dword [esp + 0x58]
jl 0x49f8ec
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x3c]
mov esi, dword [esp + 0x60]
mov edi, dword [esp + 0x14]
mov eax, dword [esi + 0x10]
inc edx
imul eax, dword [esi + 0x14]
add ecx, 0x24
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x44], ecx
cmp edx, eax
jl 0x49f8b2
mov ecx, dword [esp + 0x38]
inc ecx
add ebx, 0x20
add edi, 4
mov dword [esp + 0x38], ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], edi
cmp ecx, dword [esi + 0x18]
jl 0x49f897
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x48]
mov ecx, dword [esp + 0x24]
inc edx
add ecx, 0x7c
mov dword [esp + 0x1c], edx
add ebx, 0xc
mov dword [esp + 0x24], ecx
mov dword [esp + 0x18], ebx
cmp edx, dword [edi + 0x10]
jl 0x49f872
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x2c]
mov edx, dword [esp + 0x70]
inc ebx
mov eax, dword [esp + 0x30]
add esi, 0x30
mov edi, dword [ebp + 8]
add eax, 0x20
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x20], esi
cmp ebx, dword [edx + 0x10]
jl 0x49f787
mov ecx, dword [esp + 0x28]
mov eax, dword [edi + 0x28]
inc ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x4c], eax
cmp ecx, dword [eax + 0xc]
jl 0x49f73e
fstp st(0)
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret