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

Disassembly:
sub esp, 0x6c
mov al, byte [esp + 0x7c]
push ebx
push ebp
mov ebp, dword [esp + 0x7c]
mov ebx, ecx
push esi
mov esi, dword [esp + 0x84]
push edi
test al, al
mov dword [esp + 0x74], ebx
je 0x6280e8
mov eax, dword [esi + 8]
test eax, eax
jle 0x6280ce
mov eax, dword [esi + 0xc]
test eax, eax
jg 0x6280e8
mov eax, ebp
mov ecx, esi
mov edx, dword [eax]
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
mov eax, dword [ebx + 0x1238]
test eax, eax
jne 0x62815d
mov edi, dword [ebp + 8]
imul edi, dword [ebp + 0xc]
lea ecx, [edi + edi*2]
push ecx
call fcn.0076d5a7
add esp, 4
test eax, eax
je 0x628129
dec edi
test edi, edi
jl 0x628125
lea ecx, [eax + 2]
lea edx, [edi + 1]
mov byte [ecx - 2], 0
mov byte [ecx - 1], 0
mov byte [ecx], 0
add ecx, 3
dec edx
jne 0x628114
mov edi, eax
jmp 0x62812b
xor edi, edi
mov dword [ebx + 0x1238], edi
mov eax, dword [ebp + 8]
imul eax, dword [ebp + 0xc]
lea ecx, [eax + eax*2]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp + 8]
mov dword [ebx + 0x123c], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebx + 0x1240], ecx
mov al, byte [esp + 0x8c]
test al, al
je 0x628171
push esi
push ebp
mov ecx, ebx
call fcn.00628780
mov ecx, dword [ebx + 0x121c]
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x1484]
mov dword [esp + 0x28], edx
test ecx, ecx
mov dword [esp + 0x8c], eax
jne 0x62827d
fild dword [esp + 0x28]
fld dword [0x7937c0]
fdiv st(1)
fstp dword [esp + 0x8c]
fild dword [ebp + 0xc]
fld st(0)
fmul dword [esp + 0x8c]
fst dword [esp + 0x60]
fcomp dword [0x7937bc]
fnstsw ax
test ah, 1
je 0x6281e2
fstp st(0)
fstp st(0)
fld dword [esp + 0x60]
mov edi, 0x8c
mov dword [esp + 0x84], edi
call fcn.0076a6b0
mov dword [esp + 0x10], eax
jmp 0x628210
fld dword [0x7937bc]
fdiv st(1)
fstp dword [esp + 0x8c]
fstp st(0)
fmul dword [esp + 0x8c]
call fcn.0076a6b0
mov dword [esp + 0x84], eax
mov dword [esp + 0x10], 0x6c
mov edi, eax
mov ecx, dword [esp + 0x8c]
push 0x20
mov dword [ebx + 0x1484], ecx
call fcn.0076d5a7
mov esi, eax
add esp, 4
test esi, esi
je 0x628263
mov eax, dword [esp + 0x10]
lea ecx, [esi + 0x14]
mov dword [esi + 8], eax
imul eax, edi
shl eax, 1
push eax
push 0
mov dword [esi + 4], edi
mov dword [esi + 0xc], 0
mov dword [esi], vtable.XSurface.0
mov dword [esi + 0x10], 2
call fcn.00438140
mov dword [esi], vtable.BSurface.0
jmp 0x628265
xor esi, esi
mov dword [ebx + 0x121c], esi
mov edx, dword [esi]
push 0
mov ecx, esi
call dword [edx + 0x18]
mov esi, dword [esp + 0x88]
jmp 0x62829b
mov eax, dword [ecx]
call dword [eax + 0x7c]
mov ecx, dword [ebx + 0x121c]
mov dword [esp + 0x84], eax
mov edx, dword [ecx]
call dword [edx + 0x80]
mov dword [esp + 0x10], eax
fild dword [ebp + 8]
mov ecx, dword [ebx + 0x121c]
xor edx, edx
xor eax, eax
push edx
fidiv dword [esp + 0x88]
mov edi, dword [ecx]
push eax
fstp dword [esp + 0x2c]
fild dword [ebp + 0xc]
fidiv dword [esp + 0x18]
fst dword [esp + 0x28]
fmul dword [esp + 0x2c]
fdivr qword [0x785708]
fstp dword [esp + 0x78]
call dword [edi + 0x5c]
mov ebp, dword [esi]
mov dword [esp + 0x60], eax
mov dword [esp + 0x88], ebp
fild dword [esp + 0x88]
fmul dword [esp + 0x8c]
call fcn.0076a6b0
mov edi, eax
mov eax, dword [esi + 8]
add eax, ebp
mov dword [esp + 0x44], edi
mov dword [esp + 0x88], eax
fild dword [esp + 0x88]
fmul dword [esp + 0x8c]
call fcn.0076a6b0
mov ecx, dword [esp + 0x84]
inc eax
cmp eax, ecx
mov dword [esp + 0x48], eax
jl 0x62832c
mov dword [esp + 0x48], ecx
mov ebp, dword [esi + 4]
mov dword [esp + 0x88], ebp
fild dword [esp + 0x88]
fmul dword [esp + 0x8c]
call fcn.0076a6b0
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x4c], eax
add ecx, ebp
mov dword [esp + 0x88], ecx
fild dword [esp + 0x88]
fmul dword [esp + 0x8c]
call fcn.0076a6b0
mov esi, dword [esp + 0x10]
lea ebp, [eax + 1]
cmp ebp, esi
jge 0x62837d
mov dword [esp + 0x40], ebp
jmp 0x628383
mov dword [esp + 0x40], esi
mov ebp, esi
fild dword [esp + 0x44]
mov eax, dword [esp + 0x4c]
cmp eax, ebp
fdiv dword [esp + 0x8c]
fstp dword [esp + 0x5c]
fild dword [esp + 0x4c]
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x88], edx
fdiv dword [esp + 0x8c]
fstp dword [esp + 0x1c]
jge 0x6286ed
mov ecx, eax
mov edx, dword [esp + 0x60]
imul ecx, dword [esp + 0x84]
add ecx, edi
sub ebp, eax
mov dword [esp + 0x60], ebp
lea ecx, [edx + ecx*2]
mov dword [esp + 0x3c], ecx
fld dword [esp + 0x1c]
call fcn.0076a6b0
mov esi, dword [ebx + 0x1240]
cmp esi, eax
jge 0x6283f0
mov ebp, esi
mov dword [esp + 0x18], ebp
jmp 0x6283f6
mov dword [esp + 0x18], eax
mov ebp, eax
fld dword [esp + 0x1c]
fadd dword [esp + 0x20]
fld st(0)
call fcn.0076a6b0
inc eax
mov dword [esp + 0x14], esi
cmp esi, eax
jl 0x628412
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x48]
cmp edi, eax
jge 0x6286b3
mov edx, dword [esp + 0x3c]
sub eax, edi
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], eax
fld dword [0x785738]
fld dword [0x785738]
fld dword [0x785738]
fld dword [esp + 0x88]
call fcn.0076a6b0
mov esi, dword [ebx + 0x123c]
cmp esi, eax
mov dword [esp + 0x68], esi
jge 0x628463
mov edi, esi
mov dword [esp + 0x8c], edi
jmp 0x62846c
mov dword [esp + 0x8c], eax
mov edi, eax
fld dword [esp + 0x88]
fadd dword [esp + 0x24]
fst dword [esp + 0x38]
call fcn.0076a6b0
lea edx, [eax + 1]
cmp esi, edx
jge 0x628489
mov edx, esi
mov eax, dword [esp + 0x14]
mov esi, ebp
cmp ebp, eax
mov dword [esp + 0x2c], esi
jge 0x628609
sub eax, ebp
mov dword [esp + 0x64], eax
mov eax, ebp
mov ebp, dword [esp + 0x28]
imul eax, ebp
add eax, edi
lea ecx, [ebp + ebp*2]
mov dword [esp + 0x78], eax
mov dword [esp + 0x34], eax
lea eax, [eax + eax*2]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x30], eax
cmp dword [esp + 0x64], 1
jg 0x6284d0
fld dword [esp + 0x20]
jmp 0x6284fe
cmp esi, dword [esp + 0x18]
jne 0x6284e7
lea ecx, [esi + 1]
mov dword [esp + 0x50], ecx
fild dword [esp + 0x50]
fsub dword [esp + 0x1c]
jmp 0x6284fe
mov eax, dword [esp + 0x14]
dec eax
cmp esi, eax
jne 0x6284f8
fild dword [esp + 0x2c]
fsubr st(4)
jmp 0x6284fe
fld dword [0x7867f8]
mov ecx, edi
cmp edi, edx
mov dword [esp + 0x50], ecx
jge 0x62876b
mov esi, dword [ebx + 0x1240]
mov ebp, dword [esp + 0x34]
mov eax, edx
sub eax, edi
imul esi, dword [esp + 0x68]
mov edi, dword [esp + 0x30]
mov dword [esp + 0x6c], eax
jmp 0x62852d
mov eax, dword [esp + 0x6c]
cmp eax, 1
jg 0x628538
fld dword [esp + 0x24]
jmp 0x62856c
cmp ecx, dword [esp + 0x8c]
jne 0x628555
lea eax, [ecx + 1]
mov dword [esp + 0x50], eax
fild dword [esp + 0x50]
fsub dword [esp + 0x88]
jmp 0x62856c
lea eax, [edx - 1]
cmp ecx, eax
jne 0x628566
fild dword [esp + 0x50]
fsubr dword [esp + 0x38]
jmp 0x62856c
fld dword [0x7867f8]
fmul st(1)
cmp ebp, esi
fmul dword [esp + 0x70]
jge 0x6285b8
mov eax, edi
add eax, dword [ebx + 0x1238]
xor ebx, ebx
mov bl, byte [eax]
mov dword [esp + 0x50], ebx
xor ebx, ebx
fild dword [esp + 0x50]
mov bl, byte [eax + 1]
mov dword [esp + 0x50], ebx
xor ebx, ebx
fmul st(1)
mov bl, byte [eax + 2]
faddp st(5)
fild dword [esp + 0x50]
mov dword [esp + 0x50], ebx
mov ebx, dword [esp + 0x74]
fmul st(1)
faddp st(4)
fild dword [esp + 0x50]
fmul st(1)
faddp st(3)
fstp st(0)
jmp 0x6285ba
fstp st(0)
inc ecx
add edi, 3
inc ebp
cmp ecx, edx
mov dword [esp + 0x50], ecx
jl 0x628529
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x8c]
mov ebp, dword [esp + 0x28]
fstp st(0)
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x30]
add eax, ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x14]
inc esi
add ecx, ebp
cmp esi, eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x34], ecx
jl 0x6284c3
mov ebp, dword [esp + 0x18]
fadd qword [0x785728]
call fcn.0076a6b0
cmp eax, 0xff
mov edi, 0xff
jg 0x628622
mov edi, eax
fadd qword [0x785728]
call fcn.0076a6b0
cmp eax, 0xff
mov esi, 0xff
jg 0x62863b
mov esi, eax
fadd qword [0x785728]
call fcn.0076a6b0
cmp eax, 0xff
jle 0x628652
mov eax, 0xff
mov ecx, dword [0x83b2cc]
mov edx, dword [esp + 0x38]
sar eax, cl
mov ecx, dword [0x83b2c8]
mov dword [esp + 0x88], edx
shl eax, cl
mov ecx, dword [0x83b2dc]
sar esi, cl
mov ecx, dword [0x83b2d8]
shl esi, cl
mov ecx, dword [0x83b2d4]
sar edi, cl
mov ecx, dword [0x83b2d0]
or eax, esi
shl edi, cl
mov ecx, dword [esp + 0x54]
add ecx, 2
mov dword [esp + 0x54], ecx
or eax, edi
mov word [ecx - 2], ax
mov eax, dword [esp + 0x58]
dec eax
mov dword [esp + 0x58], eax
jne 0x62842c
mov edi, dword [esp + 0x44]
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x88], eax
fstp dword [esp + 0x1c]
lea eax, [ecx + ecx]
mov ecx, dword [esp + 0x3c]
add ecx, eax
mov eax, dword [esp + 0x60]
dec eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x60], eax
jne 0x6283d5
mov ebp, dword [esp + 0x40]
mov esi, dword [esp + 0x10]
mov ecx, dword [ebx + 0x121c]
mov edx, dword [ecx]
call dword [edx + 0x60]
mov eax, esi
imul eax, dword [esp + 0x84]
cdq
and edx, 7
add eax, edx
mov esi, eax
mov eax, dword [ebx + 0x1270]
sar esi, 3
inc esi
test eax, eax
jne 0x62873f
push esi
call fcn.0076d5a7
mov ecx, esi
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx + 0x1270], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x44]
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
mov esi, ecx
sub eax, edi
sub ebp, edx
mov dword [esi], edi
pop edi
mov dword [esi + 4], edx
mov dword [esi + 8], eax
mov eax, ecx
mov dword [esi + 0xc], ebp
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret 0x10
fstp st(0)
jmp 0x6285dc