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

Disassembly:
sub esp, 0x6c
push ebx
push ebp
push esi
push edi
push str.CPane::Read
push 0x6d7
push 0x5f0640
mov ebx, ecx
call fcn.004bdd70
push 0x24
push 0x194
call fcn.004be2d0
mov esi, dword [esp + 0x94]
mov dword [ebx + 0x58], eax
lea eax, [ebx + 8]
push eax
lea ecx, [ebx + 4]
push ecx
push ebx
lea edx, [ebx + 0xc]
push edx
push str._f_f_f_f
push esi
call fcn.004c0e10
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x70]
push ecx
lea edx, [esp + 0x70]
push edx
push str._f_f_f
push esi
mov dword [esp + 0x98], 0x3f800000
mov dword [esp + 0x8c], 0x3f800000
mov dword [esp + 0x90], 0x3f800000
mov dword [esp + 0x94], 0x3f800000
mov dword [esp + 0x78], 0x3f800000
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x88], 0x3f800000
call fcn.004c0e10
add esp, 0x40
lea eax, [esp + 0x20]
push eax
push 0x5eb3ac
push esi
call fcn.004c0e10
mov edx, dword [esp + 0x2c]
add esp, 0xc
lea ecx, [esp + 0x2c]
push ecx
push edx
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x58]
push ecx
mov ecx, dword [0x680068]
call fcn.00543750
mov edx, dword [eax]
lea eax, [ebx + 0x28]
push eax
lea ecx, [ebx + 0x24]
push ecx
push 0x5eb718
push esi
mov dword [esp + 0x38], edx
call fcn.004c0e10
lea edx, [ebx + 0x48]
push edx
lea eax, [ebx + 0x44]
push eax
push 0x5edb48
push esi
call fcn.004c0e10
lea ecx, [ebx + 0x40]
push ecx
lea edx, [ebx + 0x3c]
push edx
push 0x5edb48
push esi
call fcn.004c0e10
lea eax, [ebx + 0x2c]
push eax
push 0x5eb3ac
push esi
call fcn.004c0e10
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x6c]
push ecx
push str._f_f_f_f
push esi
call fcn.004c0e10
mov edx, dword [ebx + 0x58]
mov eax, dword [esp + 0x78]
mov dword [edx + 0xc], eax
mov ecx, dword [ebx + 0x58]
mov edx, dword [esp + 0x64]
mov dword [ecx], edx
mov eax, dword [ebx + 0x58]
mov ecx, dword [esp + 0x68]
mov dword [eax + 4], ecx
mov edx, dword [ebx + 0x58]
mov eax, dword [esp + 0x6c]
mov dword [edx + 8], eax
mov ecx, dword [ebx + 0x58]
add esp, 0x54
add ecx, 0x10
push ecx
push 0x5db08c
push esi
call fcn.004c0e10
mov edx, dword [ebx + 0x58]
mov eax, dword [edx + 0x10]
add esp, 0xc
xor ebp, ebp
test eax, eax
jbe 0x5124ec
xor edi, edi
jmp 0x5124a0
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
push str._f_f_f
push esi
call fcn.004c0e10
fld dword [esp + 0x24]
mov eax, dword [ebx + 0x58]
fstp dword [edi + eax + 0x14]
mov ecx, dword [ebx + 0x58]
fld dword [esp + 0x28]
add esp, 0x14
fstp dword [edi + ecx + 0x18]
mov edx, dword [ebx + 0x58]
fld dword [esp + 0x18]
inc ebp
fstp dword [edi + edx + 0x1c]
mov eax, dword [ebx + 0x58]
mov ecx, dword [eax + 0x10]
add edi, 0xc
cmp ebp, ecx
jb 0x5124a0
mov eax, dword [ebx + 0x58]
lea ecx, [eax + 0x2c]
push ecx
lea edx, [eax + 0x20]
push edx
add eax, 0x14
push eax
lea ecx, [esp + 0x78]
call fcn.004bf2f0
mov edx, dword [eax]
mov ecx, dword [ebx + 0x58]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
lea ecx, [esp + 0x1c]
push ecx
push 0x5db08c
push esi
call fcn.004c0e10
lea ebp, [ebx + 0x30]
add esp, 0xc
mov ecx, ebp
call fcn.0054a4e0
mov eax, dword [esp + 0x1c]
xor edi, edi
test eax, eax
jle 0x51257e
jmp 0x512550
lea edx, [esp + 0x80]
push edx
push 0x5db08c
push esi
call fcn.004c0e10
mov eax, dword [esp + 0x8c]
add esp, 0xc
push eax
mov ecx, ebp
call fcn.0054a4f0
mov eax, dword [esp + 0x1c]
inc edi
cmp edi, eax
jl 0x512550
mov edi, dword [esp + 0x84]
cmp edi, 0x39
jb 0x5125fe
lea ecx, [ebx + 0x50]
push ecx
push 0x5eb3ac
push esi
call fcn.004c0e10
push 0x68a1a8
push 0
push esi
call fcn.004c4580
push str.NOTEXTURE
push 0x68a1a8
call fcn.0058f295
add esp, 0x20
test eax, eax
je 0x5125f7
mov edx, dword [0x680038]
test byte [edx + 0x419e0], 2
je 0x5125f7
mov ecx, dword [0x680064]
push 1
push 0x68a1a8
call fcn.005432b0
push 0x21
mov dword [ebx + 0x4c], eax
mov ecx, dword [0x680064]
push 0x68a1a8
call fcn.005432b0
mov dword [ebx + 0x4c], eax
jmp 0x5125fe
mov dword [ebx + 0x4c], 0
cmp edi, 0x4f
lea ebp, [ebx + 0x54]
jb 0x512617
push ebp
push 0x5db08c
push esi
call fcn.004c0e10
add esp, 0xc
jmp 0x51261e
mov dword [ebp], 0
test byte [ebp], 8
je 0x512671
push 0x68a1a8
push 0
push esi
call fcn.004c4580
mov ecx, dword [0x68008c]
add esp, 0xc
push 0x68a1a8
call fcn.004e2f70
test eax, eax
jne 0x512665
mov edi, dword [ebp]
push 0x68a1a8
and edi, 0xfffffff7
push str.Unable_to_find_instance___s__to_attach_a_glass_pane_too_nGlas_pane_is_now_not_relative___it_may_appear_somewhere_near_the_nworld_origin_0_0_0
mov dword [ebp], edi
call fcn.004cd600
add esp, 8
jmp 0x512671
mov ecx, dword [eax + 0x1a0]
mov dword [ebx + 0x60], ecx
mov dword [ebx + 0x5c], eax
lea edx, [esp + 0x5c]
push edx
push 0x5daa04
push esi
call fcn.004c0e10
add esp, 0xc
mov edi, str.__PANE_
lea esi, [esp + 0x5c]
mov ecx, 8
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x5126a2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret 8
mov eax, dword [0x6640c4]
lea ecx, [ebx + 0x10]
mov edx, ecx
mov dword [edx], eax
mov eax, dword [0x6640c8]
mov dword [edx + 4], eax
mov eax, dword [0x6640cc]
mov dword [edx + 8], eax
mov eax, dword [ebx + 0x58]
mov esi, dword [eax + 0x10]
xor edx, edx
test esi, esi
jbe 0x5126fd
xor esi, esi
lea esp, [esp]
mov eax, dword [ebx + 0x58]
fld dword [esi + eax + 0x14]
lea eax, [esi + eax + 0x14]
fadd dword [ecx]
inc edx
add esi, 0xc
fstp dword [ecx]
fld dword [eax + 4]
fadd dword [ecx + 4]
fstp dword [ecx + 4]
fld dword [eax + 8]
fadd dword [ecx + 8]
fstp dword [ecx + 8]
mov eax, dword [ebx + 0x58]
cmp edx, dword [eax + 0x10]
jb 0x5126d0
mov edx, dword [ebx + 0x58]
mov eax, dword [edx + 0x10]
fild dword [edx + 0x10]
test eax, eax
jge 0x512710
fadd dword [0x5da2fc]
fdivr dword [0x5f53f4]
fld st(0)
fmul dword [ecx]
fstp dword [ecx]
fld st(0)
fmul dword [ecx + 4]
fstp dword [ecx + 4]
fmul dword [ecx + 8]
fstp dword [ecx + 8]
mov eax, dword [ebx + 0x58]
mov edx, dword [eax + 0x10]
fld dword [0x5eb748]
test edx, edx
jbe 0x512785
mov esi, dword [eax + 0x10]
lea edx, [eax + 0x1c]
fld dword [ecx]
fsub dword [edx - 8]
fld dword [ecx + 4]
fsub dword [edx - 4]
fld dword [ecx + 8]
fsub dword [edx]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fld st(3)
fmul st(4)
faddp st(1)
fst dword [esp + 0x80]
fstp st(3)
fstp st(0)
fstp st(0)
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x51277f
fstp st(0)
fld dword [esp + 0x80]
add edx, 0xc
dec esi
jne 0x512740
fsqrt
mov ecx, dword [esp + 0x28]
push ecx
mov ecx, ebx
fstp dword [ebx + 0x1c]
call fcn.00512060
mov edx, dword [ebp]
pop edi
and edx, 0xfffffffd
or edx, 1
pop esi
mov dword [ebp], edx
pop ebp
mov eax, 1
pop ebx
add esp, 0x6c
ret 8