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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x66e3e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0x24], edi
call fcn.0064dc20
mov ecx, edi
call fcn.004a7720
test eax, eax
jne 0x49dd77
mov eax, dword [0x705f7c]
push 0
push ecx
test eax, eax
mov ecx, esp
jne 0x49dd24
mov dword [esp + 0x34], esp
push 0x6dfbfc
call fcn.0065e7aa
push ecx
mov dword [esp + 0x8c], 0
mov ecx, esp
mov dword [esp + 0x34], esp
push 0x6dfbf4
jmp 0x49dd49
mov dword [esp + 0x34], esp
push str.on_base_size_layer
call fcn.0065e7aa
push ecx
mov dword [esp + 0x8c], 1
mov ecx, esp
mov dword [esp + 0x34], esp
push str.Please_select_grading_points
call fcn.0065e7aa
mov dword [esp + 0x8c], 0xffffffff
call fcn.00463a90
add esp, 0xc
xor eax, eax
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x88]
xor esi, esi
cmp eax, esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x20], esi
jle 0x49e040
mov ebx, dword [ebp + 0xc]
jmp 0x49dd9c
mov edi, dword [esp + 0x24]
mov eax, dword [edi + 0x84]
mov edi, dword [eax + esi*4]
mov ecx, edi
mov dword [esp + 0x14], edi
call fcn.004bbc50
test eax, eax
je 0x49e02f
push 0
mov ecx, edi
call fcn.004d8810
test eax, eax
jne 0x49e02f
mov ecx, edi
call fcn.004ac920
test eax, eax
je 0x49dde5
push 0
mov ecx, eax
call fcn.00537250
test eax, eax
jne 0x49e02f
mov eax, dword [edi + 0x10]
cmp eax, 6
jne 0x49de24
lea ecx, [esp + 0x48]
push ecx
mov ecx, edi
call fcn.004ac900
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], ecx
mov edx, dword [eax + 8]
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], ecx
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], eax
jmp 0x49de71
cmp eax, 7
jne 0x49de71
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, edi
call fcn.005154b0
test eax, eax
je 0x49e02f
lea edx, [esp + 0x60]
mov ecx, edi
push edx
call fcn.004ac900
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], edx
mov ecx, dword [ebp + 8]
fld qword [esp + 0x30]
fcomp qword [ecx]
fnstsw ax
test ah, 0x41
jne 0x49e02f
fld qword [esp + 0x30]
fcomp qword [ecx + 0x10]
fnstsw ax
test ah, 1
je 0x49e02f
fld qword [esp + 0x38]
fcomp qword [ecx + 8]
fnstsw ax
test ah, 0x41
jne 0x49e02f
fld qword [esp + 0x38]
fcomp qword [ecx + 0x18]
fnstsw ax
test ah, 1
je 0x49e02f
mov edx, dword [ebx + 8]
xor eax, eax
test edx, edx
jle 0x49dedd
mov ecx, dword [ebx + 4]
cmp edi, dword [ecx]
je 0x49ded5
inc eax
add ecx, 4
cmp eax, edx
jl 0x49dec7
jmp 0x49dedd
test eax, eax
jge 0x49e02f
mov eax, dword [ebx + 4]
mov esi, edx
mov dword [esp + 0x1c], esi
inc esi
test esi, esi
jne 0x49df10
test eax, eax
je 0x49df03
push eax
mov dword [esp + 0x2c], edx
call fcn.0065e732
add esp, 4
mov dword [ebx + 4], 0
xor eax, eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 8], eax
jmp 0x49e018
test eax, eax
jne 0x49df48
lea edi, [esi*4]
push edi
call fcn.0065e5d0
mov edx, eax
mov ecx, edi
mov dword [ebx + 4], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov dword [ebx + 0xc], esi
mov dword [ebx + 8], esi
jmp 0x49e014
mov ecx, dword [ebx + 0xc]
cmp esi, ecx
jg 0x49df7c
cmp edx, esi
jge 0x49df6c
mov ecx, esi
sub ecx, edx
lea edx, [eax + edx*4]
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x14]
mov dword [ebx + 8], esi
jmp 0x49e018
jle 0x49df74
sub edx, esi
mov dword [esp + 0x28], edx
mov dword [ebx + 8], esi
jmp 0x49e018
mov eax, dword [ebx + 0x10]
test eax, eax
jne 0x49dfa6
mov eax, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x49df9a
mov eax, 4
jmp 0x49dfa6
cmp eax, 0x400
jle 0x49dfa6
mov eax, 0x400
add eax, ecx
cmp esi, eax
mov dword [esp + 0x10], eax
jl 0x49dfb4
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x10]
lea ecx, [eax*4]
push ecx
call fcn.0065e5d0
mov ecx, dword [ebx + 8]
mov esi, dword [ebx + 4]
shl ecx, 2
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [esp + 0x2c], eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x20]
mov edx, dword [ebx + 8]
lea esi, [ecx + 1]
lea edi, [eax + edx*4]
mov ecx, esi
xor eax, eax
sub ecx, edx
rep stosd dword es:[edi], eax
mov edx, dword [ebx + 4]
push edx
call fcn.0065e732
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x18]
add esp, 8
mov dword [ebx + 4], eax
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], ecx
mov edi, dword [esp + 0x14]
mov edx, dword [ebx + 4]
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
mov dword [edx + eax*4], edi
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x2c]
inc esi
cmp esi, eax
mov dword [esp + 0x20], esi
jl 0x49dd98
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x18]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc