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

Disassembly:
sub esp, 0xf4
push esi
mov esi, ecx
push edi
mov dword [esp + 0x48], esi
mov eax, dword [esi + 0x1070]
test eax, eax
je 0x7680a2
mov edx, dword [esi + 0x1074]
test edx, edx
je 0x7680a2
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0x80]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x80]
mov dword [esp + 0x80], 0x7c
mov dword [esp + 0x84], 0x1000
mov eax, dword [edx]
push ecx
push edx
call dword [eax + 0x58]
test eax, eax
je 0x767c59
lea edx, [esp + 0x24]
push 0x443a58
push edx
mov dword [esp + 0x2c], 0x44c738
call fcn.00793be4
cmp dword [esp + 0xd4], 8
je 0x767cae
mov edx, dword [esp + 0xd8]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x30]
push eax
push ecx
push edx
mov ecx, esi
call fcn.00767b70
mov edx, dword [esp + 0xdc]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x28]
push eax
push ecx
push edx
mov ecx, esi
call fcn.00767b70
mov edx, dword [esp + 0xe0]
lea eax, [esp + 0xc]
lea ecx, [esp + 0x34]
push eax
push ecx
push edx
mov ecx, esi
call fcn.00767b70
mov edi, dword [esp + 0xc]
mov edx, dword [esp + 0x14]
mov eax, 8
mov ecx, dword [esp + 0x10]
sub eax, edi
push ebx
mov dword [esp + 0x30], eax
mov eax, 8
sub eax, edx
push ebp
mov dword [esp + 0x40], eax
mov eax, 8
sub eax, ecx
lea ebp, [esi + 0x5570]
mov dword [esp + 0x28], eax
lea eax, [esi + 0x1571]
mov edi, 0x44c418
mov dword [esp + 0x48], eax
mov dword [esp + 0x2c], ebp
jmp 0x767cfc
mov esi, dword [esp + 0x50]
add esi, 0x10a9
mov dword [esp + 0x4c], 0
mov dword [esp + 0x24], esi
mov esi, dword [esp + 0x48]
mov dword [esp + 0x44], ebp
mov edx, dword [esp + 0x24]
xor ecx, ecx
mov cl, byte [edx - 1]
mov dword [esp + 0x14], ecx
fild dword [esp + 0x14]
fmul dword [edi - 4]
fld st(0)
call fcn.00793cb8
mov ecx, dword [esp + 0x24]
mov ebx, eax
xor eax, eax
mov al, byte [ecx]
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fmul dword [edi]
fst dword [esp + 0x18]
call fcn.00793cb8
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x24]
xor edx, edx
mov dl, byte [eax + 1]
mov dword [esp + 0x14], edx
fild dword [esp + 0x14]
fmul dword [edi + 4]
fst dword [esp + 0x1c]
call fcn.00793cb8
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x14], eax
fild dword [ecx + 0x1060]
fstp dword [esp + 0x10]
fmul dword [esp + 0x10]
fmul dword [0x4423b0]
call fcn.00793cb8
fld dword [esp + 0x10]
fmul dword [esp + 0x18]
mov dword [esp + 0x20], eax
fmul dword [0x4423b0]
call fcn.00793cb8
fld dword [esp + 0x1c]
fmul dword [esp + 0x10]
mov dword [esp + 0x18], eax
fmul dword [0x4423b0]
call fcn.00793cb8
mov dl, byte [esp + 0x14]
mov cl, byte [esp + 0x18]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x54]
mov byte [esi + 1], bl
mov byte [esi], al
mov byte [esi - 1], dl
mov edx, dword [esp + 0x20]
mov byte [esi + 0x101], dl
mov byte [esi + 0x100], cl
mov cl, byte [esp + 0x1c]
mov byte [esi + 0xff], cl
mov ecx, dword [esp + 0x28]
shr ebx, cl
mov ecx, dword [esp + 0x38]
shl ebx, cl
mov ecx, dword [esp + 0x40]
shr eax, cl
mov ecx, dword [esp + 0x30]
shl eax, cl
mov ecx, dword [esp + 0x34]
or ebx, eax
mov eax, dword [esp + 0x14]
shr eax, cl
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x10], eax
shl eax, cl
mov ecx, dword [esp + 0x28]
shr edx, cl
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x10], eax
or ebx, eax
mov eax, dword [esp + 0x18]
mov dword [ebp - 0x2000], ebx
shl edx, cl
mov ecx, dword [esp + 0x40]
shr eax, cl
mov ecx, dword [esp + 0x30]
shl eax, cl
mov ecx, dword [esp + 0x34]
or edx, eax
mov eax, dword [esp + 0x1c]
shr eax, cl
mov ecx, dword [esp + 0x3c]
shl eax, cl
or edx, eax
mov eax, dword [esp + 0x4c]
mov dword [ebp], edx
mov ebp, dword [esp + 0x50]
and eax, 0x30
xor edx, edx
lea ecx, [ebp + eax*2 + 0xb1c]
mov dl, byte [eax + ecx + 0x58e]
lea ecx, [ebp + eax*2]
mov dword [esp + 0x20], edx
add eax, ecx
fild dword [esp + 0x20]
xor edx, edx
xor ecx, ecx
mov dl, byte [eax + 0x10a9]
mov cl, byte [eax + 0x10a8]
fmul dword [edi + 4]
mov dword [esp + 0x20], edx
fild dword [esp + 0x20]
mov dword [esp + 0x20], ecx
fmul dword [edi]
fild dword [esp + 0x20]
fmul dword [edi - 4]
fld st(0)
call fcn.00793cb8
xor ebx, ebx
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], ebx
fild qword [esp + 0x60]
fmul dword [0x4423ac]
fld st(2)
call fcn.00793cb8
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], ebx
fild qword [esp + 0x80]
fmul dword [0x4423a8]
faddp st(1)
fld st(3)
call fcn.00793cb8
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], ebx
fild qword [esp + 0x70]
fmul dword [0x4423a4]
faddp st(1)
call fcn.00793cb8
fild dword [ebp + 0x1060]
mov ebx, eax
fstp dword [esp + 0x10]
fmul dword [esp + 0x10]
fmul dword [0x4423b0]
call fcn.00793cb8
xor ebp, ebp
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], ebp
fild qword [esp + 0x58]
fmul dword [0x4423ac]
fxch st(1)
fmul dword [esp + 0x10]
fmul dword [0x4423b0]
call fcn.00793cb8
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], ebp
fild qword [esp + 0x68]
fmul dword [0x4423a8]
faddp st(1)
fxch st(1)
fmul dword [esp + 0x10]
fmul dword [0x4423b0]
call fcn.00793cb8
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ebp
fild qword [esp + 0x78]
fmul dword [0x4423a4]
faddp st(1)
call fcn.00793cb8
cmp ebx, 0xff
jbe 0x767f98
mov ebx, 0xff
cmp eax, 0xff
jbe 0x767fa4
mov eax, 0xff
mov ecx, dword [esp + 0x28]
mov edx, ebx
shr edx, cl
mov ecx, dword [esp + 0x38]
mov ebp, ebx
mov byte [esi + 0xfff], bl
mov byte [esi + 0x1000], bl
mov byte [esi + 0x1001], bl
mov byte [esi + 0x10ff], al
shl edx, cl
mov ecx, dword [esp + 0x40]
mov byte [esi + 0x1100], al
shr ebp, cl
mov ecx, dword [esp + 0x30]
mov byte [esi + 0x1101], al
add esi, 4
shl ebp, cl
mov ecx, dword [esp + 0x34]
shr ebx, cl
mov ecx, dword [esp + 0x3c]
or edx, ebp
mov ebp, eax
shl ebx, cl
mov ecx, dword [esp + 0x44]
or edx, ebx
mov ebx, eax
mov dword [ecx - 0x1f00], edx
mov ecx, dword [esp + 0x28]
shr ebx, cl
mov ecx, dword [esp + 0x38]
shl ebx, cl
mov ecx, dword [esp + 0x40]
shr ebp, cl
mov ecx, dword [esp + 0x30]
shl ebp, cl
mov ecx, dword [esp + 0x34]
shr eax, cl
mov ecx, dword [esp + 0x3c]
or ebx, ebp
mov ebp, dword [esp + 0x44]
add ebp, 4
shl eax, cl
mov dword [esp + 0x44], ebp
or ebx, eax
mov eax, dword [esp + 0x4c]
mov dword [ebp + 0xfc], ebx
mov dword [ebp + 0x1ffc], edx
mov edx, dword [esp + 0x24]
mov dword [ebp + 0x3ffc], ebx
inc eax
add edx, 3
cmp eax, 0x40
mov dword [esp + 0x4c], eax
mov dword [esp + 0x24], edx
jl 0x767d16
mov ebp, dword [esp + 0x2c]
mov ecx, dword [esp + 0x48]
add edi, 0xc
add ebp, 0x400
add ecx, 0x200
cmp edi, 0x44c478
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x48], ecx
jl 0x767cf8
pop ebp
pop ebx
pop edi
mov eax, 1
pop esi
add esp, 0xf4
ret
pop edi
xor eax, eax
pop esi
add esp, 0xf4
ret