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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x4c], edi
jne 0x4f6484
mov dword [esi + 0x1c], edi
mov dword [esi + 0x18], edi
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov al, byte [esi + 0x78]
test al, al
je 0x4f6498
push str.Score_pot:_n
call fcn.00535ef0
add esp, 4
mov eax, dword [esi + 0x4c]
mov ebx, 2
cmp eax, edi
mov dword [esi + 0xc], edi
mov dword [esp + 0x10], ebx
jle 0x4f669b
mov eax, dword [esi + 0x3c]
cmp dword [eax + edi*4], 0
jne 0x4f64d1
mov ecx, dword [str.Null_Pointer]
push ecx
push 0xe6
push str..core_DynamicTable.h
call fcn.00401090
add esp, 0xc
mov edx, dword [esi + 0x3c]
mov eax, dword [edx + edi*4]
test byte [eax + 0x14], 2
je 0x4f64e4
mov ebx, 2
jmp 0x4f6556
test edi, edi
je 0x4f6519
mov ecx, dword [esi + 0x3c]
mov eax, dword [ecx + edi*4 - 4]
test eax, eax
jne 0x4f650c
mov edx, dword [str.Null_Pointer]
push edx
push 0xe6
push str..core_DynamicTable.h
call fcn.00401090
add esp, 0xc
mov eax, dword [esi + 0x3c]
mov ecx, dword [eax + edi*4 - 4]
test byte [ecx + 0x14], 2
je 0x4f655a
mov edx, dword [esi + 0x3c]
cmp dword [edx + edi*4], 0
jne 0x4f653a
mov eax, dword [str.Null_Pointer]
push eax
push 0xe6
push str..core_DynamicTable.h
call fcn.00401090
add esp, 0xc
mov ecx, dword [esi + 0x3c]
mov edx, dword [ecx + edi*4]
mov eax, dword [edx + 8]
cmp eax, 6
jge 0x4f6551
mov ebx, dword [eax*4 + 0x58b410]
jmp 0x4f6556
mov ebx, 0xa
mov dword [esp + 0x10], ebx
mov eax, dword [esi + 0x3c]
cmp dword [eax + edi*4], 0
jne 0x4f657c
mov ecx, dword [str.Null_Pointer]
push ecx
push 0xe6
push str..core_DynamicTable.h
call fcn.00401090
add esp, 0xc
mov edx, dword [esi + 0x3c]
mov eax, dword [edx + edi*4]
mov eax, dword [eax + 4]
cmp eax, 5
jge 0x4f6593
mov ebp, dword [eax*4 + 0x58b428]
jmp 0x4f6598
mov ebp, 0xa
mov al, byte [esi + 0x78]
mov dword [esp + 0x14], ebp
test al, al
je 0x4f65f9
mov ecx, dword [esi + 0x3c]
cmp dword [ecx + edi*4], 0
jne 0x4f65c5
mov edx, dword [str.Null_Pointer]
push edx
push 0xe6
push str..core_DynamicTable.h
call fcn.00401090
add esp, 0xc
fild dword [esp + 0x10]
mov eax, dword [esi + 0x3c]
sub esp, 0x10
fmul dword [0x58930c]
mov ecx, dword [eax + edi*4]
mov edx, dword [ecx]
fstp qword [esp + 8]
fild dword [esp + 0x24]
fmul dword [0x5892ec]
fstp qword [esp]
push edx
push str.___base_score__d__reduction_mult__.2f__spin_mult__.1f_n
call fcn.00535ef0
add esp, 0x18
mov eax, dword [esi + 0x3c]
cmp dword [eax + edi*4], 0
jne 0x4f661b
mov ecx, dword [str.Null_Pointer]
push ecx
push 0xe6
push str..core_DynamicTable.h
call fcn.00401090
add esp, 0xc
mov edx, dword [esi + 0x3c]
mov eax, dword [edx + edi*4]
mov ecx, dword [eax]
mov eax, 0x51eb851f
imul ecx, ebp
imul ecx, ebx
imul ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov ebp, edx
mov edx, dword [esi + 0x3c]
cmp dword [edx + edi*4], 0
jne 0x4f665d
mov eax, dword [str.Null_Pointer]
push eax
push 0xe6
push str..core_DynamicTable.h
call fcn.00401090
add esp, 0xc
mov ecx, dword [esi + 0x3c]
mov edx, dword [ecx + edi*4]
mov eax, dword [edx + 0x10]
test eax, eax
je 0x4f6687
lea eax, [ebp + ebp*2]
lea ecx, [eax + eax*4]
mov eax, 0x51eb851f
shl ecx, 3
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov ebp, edx
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 0x4c]
add edx, ebp
inc edi
cmp edi, eax
mov dword [esi + 0xc], edx
jl 0x4f64af
mov al, byte [esi + 0x78]
test al, al
je 0x4f66b3
mov ecx, dword [esi + 0xc]
push ecx
push str.___total__d_n
call fcn.00535ef0
add esp, 8
push 0
push str.NewSpecial
call fcn.00419840
add esp, 8
test eax, eax
je 0x4f66fe
mov eax, dword [esi + 0x50]
mov ecx, dword [esi + 0x1c]
imul eax, dword [esi + 0xc]
cmp eax, ecx
jle 0x4f66fe
sub eax, ecx
mov ecx, dword [esi + 0x5c]
add ecx, eax
mov dword [esi + 0x5c], ecx
jns 0x4f66eb
mov byte [esi + 0x60], 0
mov dword [esi + 0x5c], 0
mov ecx, dword [esi + 0x5c]
mov eax, 0xbb8
cmp ecx, eax
jl 0x4f66fe
mov byte [esi + 0x60], 1
mov dword [esi + 0x5c], eax
mov eax, dword [esi + 0x50]
pop edi
imul eax, dword [esi + 0xc]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret