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

Disassembly:
push edi
push esi
push ebp
push ebx
sub esp, 0xc
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
lea esi, [ebx + 3]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 8], eax
movzx eax, byte [ebx + 1]
mov dword [ebp + 0xb0], eax
mov al, byte [ebx + 2]
mov byte [ebp + 4], al
lea eax, [ebp + 5]
mov ecx, dword [esi]
mov dword [eax], ecx
mov edx, dword [esi + 4]
mov edi, dword [esi + 8]
mov dword [eax + 4], edx
mov dword [eax + 8], edi
push 1
push 0xc
push eax
call fcn.00765214
add esp, 0xc
test eax, eax
je 0x765d29
mov al, byte [ebx + 0x10]
cmp al, 8
mov byte [ebp + 0x20], al
mov cl, byte [ebx + 0x14]
mov byte [ebp + 0xac], cl
mov dl, byte [ebx + 0x15]
mov byte [ebp + 0xad], dl
jbe 0x765bbe
mov byte [ebp + 0x20], 8
mov eax, dword [ebx + 0x1e]
xor edx, edx
mov dword [ebp + 0x18], eax
mov edi, dword [ebx + 0x22]
and edx, 0xff
mov dword [ebp + 0x1c], edi
sub edi, eax
inc edi
mov dword [ebp + 0x14], edi
lea eax, [ebp + 0x24]
mov esi, edx
shl esi, 8
or edx, esi
mov ecx, edx
shl ecx, 0x10
or edx, ecx
mov dword [eax], edx
mov dword [eax + 4], edx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], edx
mov dword [eax + 0x18], edx
mov dword [eax + 0x1c], edx
mov dword [eax + 0x20], edx
mov dword [eax + 0x24], edx
mov dword [eax + 0x28], edx
mov dword [eax + 0x2c], edx
mov dword [eax + 0x30], edx
mov dword [eax + 0x34], edx
mov dword [eax + 0x38], edx
mov dword [eax + 0x3c], edx
mov dword [eax + 0x40], edx
mov dword [eax + 0x44], edx
mov dword [eax + 0x48], edx
mov dword [eax + 0x4c], edx
mov dword [eax + 0x50], edx
mov dword [eax + 0x54], edx
mov dword [eax + 0x58], edx
mov dword [eax + 0x5c], edx
mov dword [eax + 0x60], edx
mov dword [eax + 0x64], edx
mov dword [eax + 0x68], edx
mov dword [eax + 0x6c], edx
mov dword [eax + 0x70], edx
mov dword [eax + 0x74], edx
mov dword [eax + 0x78], edx
mov dword [eax + 0x7c], edx
mov dl, byte [ebx + 0x13]
xor esi, esi
mov al, byte [ebp + 0x20]
mov byte [ebp + 0x21], dl
test al, al
jbe 0x765cd4
mov ecx, esi
shl ecx, 4
lea eax, [esi*8]
lea eax, [eax + esi*4]
lea esi, [esi]
lea edi, [edi]
mov edx, dword [eax + ebx + 0x26]
mov dword [ecx + ebp + 0x24], edx
cmp edx, dword [ebp + 0x18]
ja 0x765c94
mov dword [ecx + ebp + 0x24], 0
jmp 0x765cc5
movzx edi, word [eax + ebx + 0x2a]
mov word [ecx + ebp + 0x28], di
mov edi, dword [eax + ebx + 0x2c]
mov dword [ecx + ebp + 0x2c], edi
movzx edi, word [eax + ebx + 0x30]
mov word [ecx + ebp + 0x30], di
mov edi, edx
and edi, 0x3f
dec edi
sub edx, edi
mov dword [ecx + ebp + 0x24], edx
mov edi, dword [ebp + 0x18]
sub edx, edi
mov dword [ecx + ebp + 0x24], edx
add ecx, 0x10
add eax, 0xc
inc esi
movzx edx, byte [ebp + 0x20]
cmp esi, edx
jl 0x765c74
movzx edx, word [ebx + 0x8a]
mov eax, dword [esp + 8]
test eax, eax
mov word [ebp + 0xa4], dx
je 0x765d1d
mov eax, dword [ebp + 0x14]
add eax, eax
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp + 0xa8], eax
test eax, eax
je 0x765d38
add ebx, dword [esp + 4]
mov edx, dword [ebp + 0x18]
lea esi, [ebx + edx*2]
mov ecx, dword [ebp + 0x14]
add ecx, ecx
mov edi, eax
push ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
pop ecx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor eax, eax
add esp, 0xc
pop ebx
pop ebp
pop esi
pop edi
ret 0x14
mov eax, 1
add esp, 0xc
pop ebx
pop ebp
pop esi
pop edi
ret 0x14
mov eax, 2
add esp, 0xc
pop ebx
pop ebp
pop esi
pop edi
ret 0x14