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

Disassembly:
sub esp, 0x9a4
push ebx
push ebp
mov ebx, ecx
push esi
push edi
mov dword [esp + 0x14], ebx
lea eax, [esp + 0x3b2]
mov ecx, 0x100
mov byte [eax - 2], 0
mov byte [eax - 1], 0
mov byte [eax], 0
add eax, 3
dec ecx
jne 0x681bcc
mov eax, dword [esp + 0x9b8]
xor esi, esi
push eax
lea ecx, [esp + 0x4c]
mov dword [esp + 0x6b4], esi
call fcn.00468b70
push esi
push esi
lea edx, [esp + 0x3b8]
lea ecx, [esp + 0x50]
call fcn.00604ba0
mov edi, eax
cmp edi, esi
mov ebp, edi
jne 0x681c4c
lea ecx, [esp + 0x9c]
mov dword [esp + 0x48], vtable.CCFileClass.0
mov dword [esp + 0xa8], esi
call fcn.00438290
lea ecx, [esp + 0x48]
mov dword [esp + 0x48], vtable.CDFileClass.0
call fcn.0042f250
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x9a4
ret 0xc
mov eax, dword [esp + 0x9bc]
cmp eax, 2
jne 0x681d97
lea esi, [esp + 0xac]
lea eax, [esp + 0x3b1]
mov ebp, 0x100
mov dl, byte [eax + 1]
mov cl, byte [0x83b2d4]
shr dl, cl
mov ecx, dword [0x83b2d0]
mov bl, byte [eax - 1]
add eax, 3
add esi, 2
movzx dx, dl
shl edx, cl
mov cl, byte [0x83b2cc]
shr bl, cl
mov ecx, dword [0x83b2c8]
movzx bx, bl
shl ebx, cl
mov cl, byte [0x83b2dc]
or edx, ebx
mov bl, byte [eax - 3]
shr bl, cl
mov ecx, dword [0x83b2d8]
movzx bx, bl
shl ebx, cl
or edx, ebx
dec ebp
mov word [esi - 2], dx
jne 0x681c6f
mov eax, dword [edi]
lea ecx, [esp + 0x28]
push ecx
mov ecx, edi
call dword [eax + 0x78]
mov edx, dword [eax]
push 0x20
mov dword [esp + 0x3c], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x40], ecx
mov esi, dword [eax + 8]
mov ebx, dword [eax + 0xc]
call fcn.0076d5a7
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x681d2a
mov edx, esi
lea ecx, [ebp + 0x14]
imul edx, ebx
shl edx, 1
push edx
push 0
mov dword [ebp + 4], esi
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], 0
mov dword [ebp], vtable.XSurface.0
mov dword [ebp + 0x10], 2
call fcn.00438140
mov dword [ebp], vtable.BSurface.0
jmp 0x681d2c
xor ebp, ebp
mov edx, dword [ebp]
xor ecx, ecx
xor eax, eax
push ecx
push eax
mov ecx, ebp
call dword [edx + 0x5c]
mov edx, dword [edi]
mov dword [esp + 0x24], eax
xor ecx, ecx
xor eax, eax
push ecx
push eax
mov ecx, edi
call dword [edx + 0x5c]
mov ecx, esi
xor edx, edx
imul ecx, ebx
test ecx, ecx
jle 0x681d73
mov esi, dword [esp + 0x24]
xor ebx, ebx
add esi, 2
mov bl, byte [eax + edx]
inc edx
cmp edx, ecx
mov bx, word [esp + ebx*2 + 0xac]
mov word [esi - 2], bx
jl 0x681d5a
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x60]
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x60]
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x9bc]
jmp 0x681db1
cmp eax, 1
jne 0x681db1
mov ecx, 0xc0
lea esi, [esp + 0x3b0]
lea edi, [esp + 0x6b4]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x9c0]
test ecx, ecx
je 0x681e24
cmp eax, 1
jne 0x681e24
mov edx, dword [ebp]
lea eax, [esp + 0x28]
push eax
mov ecx, ebp
call dword [edx + 0x78]
mov ecx, dword [eax]
mov dword [esp + 0x14], ecx
xor ecx, ecx
mov edx, dword [eax + 4]
push ecx
mov dword [esp + 0x1c], edx
mov edx, dword [ebp]
mov edi, dword [eax + 8]
mov ecx, ebp
mov eax, dword [eax + 0xc]
mov dword [esp + 0x24], eax
xor eax, eax
push eax
call dword [edx + 0x5c]
mov ecx, dword [esp + 0x20]
xor edx, edx
imul ecx, edi
test ecx, ecx
mov esi, eax
jle 0x681e1c
xor eax, eax
mov al, byte [esi + edx]
inc edx
mov edi, eax
cmp edx, ecx
lea eax, [esp + edi + 0x3b0]
mov al, byte [eax + edi*2]
mov byte [esi + edx - 1], al
jl 0x681e02
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x60]
mov eax, dword [esp + 0x9b8]
lea ecx, [esp + 0x10]
push eax
mov dword [esp + 0x6b4], ebp
call fcn.00758ec0
lea ecx, [esp + 0x10]
call fcn.0075a3c0
mov eax, dword [ebx + 4]
xor edi, edi
test eax, eax
mov dword [esp + 0xac], edi
je 0x681edd
lea ecx, [esp + 0x10]
call dword [ebx + 0x18]
mov ecx, dword [ebx + 0xc]
mov edx, 1
shl edx, cl
dec edx
and edx, eax
mov eax, dword [ebx]
mov esi, dword [eax + edx*4]
test esi, esi
je 0x681edd
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.00759010
test al, al
jne 0x681e92
mov esi, dword [esi + 0x308]
test esi, esi
jne 0x681e76
jmp 0x681edd
test esi, esi
je 0x681edd
add esi, 4
test esi, esi
je 0x681eb2
mov ecx, 0xc1
lea edi, [esp + 0xac]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0xac]
lea edx, [esp + 0xac]
lea eax, [esp + 0x10]
push edx
push eax
mov ecx, ebx
mov dword [esp + 0xb4], 0
call fcn.00682ae0
test edi, edi
je 0x681edd
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx]
push 0x30c
call fcn.0076d5a7
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x681f00
mov ecx, ebp
call fcn.00758eb0
mov dword [ebp + 4], 0
jmp 0x681f02
xor ebp, ebp
lea eax, [esp + 0x10]
mov ecx, ebp
push eax
call fcn.007591d0
lea edi, [ebp + 4]
mov ecx, 0xc1
lea esi, [esp + 0x6b0]
rep movsd dword es:[edi], dword [esi]
xor esi, esi
lea ecx, [esp + 0x10]
mov dword [ebp + 0x308], esi
call dword [ebx + 0x18]
mov ecx, dword [ebx + 0xc]
mov edx, 1
shl edx, cl
mov ecx, dword [ebx]
dec edx
and edx, eax
mov eax, dword [ecx + edx*4]
cmp eax, esi
lea edx, [ecx + edx*4]
mov dword [edx], ebp
je 0x681f4f
mov dword [ebp + 0x308], eax
mov eax, dword [ebx + 4]
mov edx, dword [ebx + 8]
inc eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], eax
mov dword [ebx + 4], eax
fild qword [esp + 0x14]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], esi
fidiv dword [esp + 0x14]
fcomp qword [ebx + 0x28]
fnstsw ax
test ah, 1
jne 0x681f82
mov ecx, ebx
call fcn.00682e40
lea ecx, [esp + 0x10]
call fcn.00758f80
lea ecx, [esp + 0x9c]
mov dword [esp + 0x48], vtable.CCFileClass.0
mov dword [esp + 0xa8], esi
call fcn.00438290
lea ecx, [esp + 0x48]
mov dword [esp + 0x48], vtable.CDFileClass.0
call fcn.0042f250
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x9a4
ret 0xc