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

Disassembly:
fld dword [esp + 0x10]
fcomp qword [0x53b6f8]
sub esp, 0x38
fnstsw ax
test ah, 0x41
jne 0x5064bb
mov eax, 1
jmp 0x5064bd
xor eax, eax
push str.Improbable_draw_scale
push eax
call fcn.004015b0
fld dword [esp + 0x50]
fcomp qword [0x53c868]
add esp, 8
fnstsw ax
test ah, 1
je 0x5064e3
mov eax, 1
jmp 0x5064e5
xor eax, eax
push ebx
push ebp
push esi
push edi
push str.Improbable_draw_scale
push eax
call fcn.004015b0
mov ebp, dword [esp + 0x54]
lea eax, [esp + 0x24]
lea ecx, [esp + 0x20]
push eax
push ecx
push ebp
call fcn.0050f0e0
mov edx, dword [esp + 0x2c]
mov eax, dword [0xadb3a8]
add esp, 0x14
cmp edx, eax
jg 0x5068db
mov eax, dword [esp + 0x1c]
mov ecx, dword [0xadb3ac]
cmp eax, ecx
jg 0x5068db
fild dword [esp + 0x18]
fstp dword [esp + 0x4c]
fld dword [esp + 0x4c]
fmul dword [esp + 0x58]
call fcn.00529c7c
fild dword [esp + 0x1c]
mov ebx, eax
mov dword [esp + 0x38], ebx
fstp dword [esp + 0x4c]
fld dword [esp + 0x4c]
fmul dword [esp + 0x58]
call fcn.00529c7c
test ebx, ebx
mov dword [esp + 0x14], eax
je 0x506971
test eax, eax
je 0x506971
mov esi, dword [esp + 0x60]
mov edi, ebp
shr esi, 1
and esi, 2
cmp ebp, 2
jg 0x506591
mov cl, byte [0x56815c]
or edi, 0xffffffff
mov byte [0xac08d0], cl
cmp dword [0x568170], edi
jne 0x5065a1
cmp dword [0xac08dc], esi
je 0x5065ce
mov al, byte [0xac08c4]
mov dword [0x568170], edi
test al, al
mov dword [0xac08dc], esi
jne 0x5065c2
push 0xffffffffffffffff
push 3
call fcn.00505e00
add esp, 8
push esi
push edi
push 0
call fcn.005062c0
add esp, 0xc
push ebp
call fcn.0050f1d0
fstp dword [esp + 0x50]
push ebp
call fcn.0050f1f0
mov edi, dword [esp + 0x5c]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x58]
add esp, 8
fstp dword [esp + 0x58]
lea ecx, [edx + edi]
mov edx, dword [0xac08e8]
mov ebp, eax
lea esi, [ebx + eax]
cmp eax, edx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x50], edi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], ecx
jge 0x506619
mov ebp, edx
mov dword [esp + 0x10], ebp
mov edx, dword [0xac08ec]
mov ebx, dword [esp + 0x54]
cmp ebx, edx
jge 0x50662d
mov edi, edx
mov dword [esp + 0x50], edi
mov edx, dword [esp + 0x60]
and edx, 1
mov dword [esp + 0x44], edx
je 0x50665a
mov edx, dword [0x73c794]
cmp esi, edx
jle 0x50664a
mov esi, edx
mov dword [esp + 0x30], esi
mov edx, dword [0x73c790]
cmp ecx, edx
jle 0x50665a
mov ecx, edx
mov dword [esp + 0x34], ecx
fild dword [esp + 0x38]
sub ebp, eax
mov edx, dword [esp + 0x54]
mov dword [esp + 0x40], ebp
sub edi, edx
fstp dword [esp + 0x20]
fild dword [esp + 0x40]
mov dword [esp + 0x54], edi
sub esi, eax
sub ecx, edx
mov eax, dword [0x61b5fc]
fstp dword [esp + 0x40]
fld dword [esp + 0x40]
fmul dword [esp + 0x4c]
fdiv dword [esp + 0x20]
fstp dword [esp + 0x40]
fild dword [esp + 0x14]
fstp dword [esp + 0x28]
fild dword [esp + 0x54]
fstp dword [esp + 0x54]
fld dword [esp + 0x54]
fmul dword [esp + 0x58]
mov dword [esp + 0x54], esi
xor esi, esi
mov dword [esp + 0x2c], esi
fdiv dword [esp + 0x28]
fstp dword [esp + 0x3c]
fild dword [esp + 0x54]
fstp dword [esp + 0x54]
fld dword [esp + 0x54]
fmul dword [esp + 0x4c]
mov dword [esp + 0x54], ecx
fdiv dword [esp + 0x20]
fstp dword [esp + 0x4c]
fild dword [esp + 0x54]
fstp dword [esp + 0x54]
fld dword [esp + 0x54]
fmul dword [esp + 0x58]
fdiv dword [esp + 0x28]
mov dword [esp + 0x28], eax
fstp dword [esp + 0x58]
fild dword [0x568154]
fstp dword [esp + 0x54]
fild qword [esp + 0x28]
fstp dword [esp + 0x28]
fld dword [esp + 0x54]
fdiv dword [esp + 0x28]
fstp dword [esp + 0x54]
fild dword [esp + 0x10]
fstp dword [esp + 0x28]
fld dword [esp + 0x28]
fmul dword [esp + 0x54]
call fcn.00529c7c
fild dword [0x568158]
mov ecx, dword [0x628614]
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], ecx
mov ebp, eax
fstp dword [esp + 0x28]
fild qword [esp + 0x20]
mov dword [esp + 0x10], ebp
fstp dword [esp + 0x20]
fld dword [esp + 0x28]
fdiv dword [esp + 0x20]
fstp dword [esp + 0x28]
fild dword [esp + 0x50]
fstp dword [esp + 0x50]
fld dword [esp + 0x50]
fmul dword [esp + 0x28]
call fcn.00529c7c
mov ebx, eax
mov eax, dword [esp + 0x44]
cmp eax, esi
mov dword [esp + 0x50], ebx
je 0x5067ad
fild dword [esp + 0x30]
fstp dword [esp + 0x44]
fld dword [esp + 0x44]
fmul dword [esp + 0x54]
call fcn.00529c7c
fild dword [esp + 0x34]
mov esi, eax
fstp dword [esp + 0x54]
fld dword [esp + 0x54]
fmul dword [esp + 0x28]
call fcn.00529c7c
mov edi, eax
jmp 0x5067ef
mov ecx, dword [0x568154]
mov eax, 0x66666667
imul ecx, dword [esp + 0x38]
imul ecx
mov ecx, dword [0x568158]
imul ecx, dword [esp + 0x14]
sar edx, 8
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 0x88888889
add edx, ebp
mov esi, edx
imul ecx
add edx, ecx
sar edx, 8
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
add edx, ebx
mov edi, edx
mov al, byte [esp + 0x60]
test al, 2
je 0x506825
mov al, byte [0xac08c4]
test al, al
jne 0x50680c
push 0xffffffffffffffff
push 3
call fcn.00505e00
add esp, 8
fld dword [0xac07b8]
fsub dword [0x53b38c]
mov eax, dword [0xac07b8]
fstp dword [0xac07b8]
jmp 0x50685b
test al, 8
jne 0x506857
mov al, byte [0xac08c4]
test al, al
jne 0x50683e
push 0xffffffffffffffff
push 3
call fcn.00505e00
add esp, 8
fld dword [0x73c77c]
fadd dword [0x53c864]
mov eax, dword [0x73c77c]
fstp dword [0x73c77c]
jmp 0x50685b
mov eax, dword [esp + 0x64]
fld dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
push 0
fsub dword [esp + 0x40]
push eax
push edx
push ecx
sub edi, ebx
mov dword [esp + 0x68], edi
sub esi, ebp
fstp dword [esp]
fld dword [esp + 0x5c]
fsub dword [esp + 0x50]
push ecx
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
fstp dword [esp]
fild dword [esp + 0x6c]
push eax
push ecx
fstp dword [esp + 0x74]
mov edx, dword [esp + 0x74]
mov dword [esp + 0x74], esi
fild dword [esp + 0x74]
push edx
fstp dword [esp + 0x78]
fild dword [esp + 0x70]
mov eax, dword [esp + 0x78]
push eax
fstp dword [esp + 0x7c]
fild dword [esp + 0x34]
mov ecx, dword [esp + 0x7c]
push ecx
fstp dword [esp + 0x80]
mov edx, dword [esp + 0x80]
push edx
call fcn.00507470
add esp, 0x2c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret
push ebp
call fcn.00510170
mov edi, dword [esp + 0x54]
mov ebx, dword [esp + 0x58]
test edi, edi
mov esi, eax
push str.Split_texture_drawn_with_x___0
sete al
push eax
mov dword [esp + 0x4c], esi
call fcn.004015b0
add esp, 0xc
mov dword [esp + 0x54], 0
test esi, esi
jle 0x506971
mov ecx, dword [esp + 0x54]
push ecx
push ebp
call fcn.00510190
mov esi, eax
lea edx, [esp + 0x4c]
lea eax, [esp + 0x54]
push edx
push eax
push esi
call fcn.0050f0e0
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x70]
push ecx
mov ecx, dword [esp + 0x70]
push edx
push eax
push ecx
push ebx
push edi
push esi
call fcn.005064a0
mov edx, dword [esp + 0x7c]
mov eax, dword [esp + 0x48]
add edi, edx
add esp, 0x30
cmp edi, eax
jl 0x506960
mov eax, dword [esp + 0x44]
add ebx, eax
xor edi, edi
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x40]
inc eax
cmp eax, ecx
mov dword [esp + 0x54], eax
jl 0x50690e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret