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

Disassembly:
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
sub esp, 0x6c
push esi
mov esi, dword [esp + 0x80]
push edi
mov edi, dword [esp + 0x7c]
push eax
push ecx
mov ecx, dword [esp + 0x98]
lea eax, [esp + 0x28]
push edx
mov edx, dword [esp + 0x98]
push eax
push ecx
push edx
push edi
push esi
call fcn.00547180
add esp, 0x20
test eax, eax
je 0x4beb2d
pop edi
mov eax, 1
pop esi
add esp, 0x6c
ret
mov ecx, dword [esi + 8]
mov esi, dword [esp + 0x28]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
push ebx
mov ebx, dword [edi + 8]
push ebp
mov ebp, dword [esp + 0x3c]
imul esi, ebx
sub edx, ebp
mov ebp, dword [esp + 0x40]
mov dword [esp + 0xa4], ecx
mov ecx, dword [esp + 0x2c]
sub eax, ebp
imul ebp, dword [esp + 0xa4]
lea esi, [esi + ecx*4]
mov dword [esp + 0x98], edx
add esi, dword [edi + 4]
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x1c], ebx
lea ebp, [ebp + edi*4]
mov edi, dword [esp + 0x8c]
add ebp, dword [edi + 4]
cmp byte [esp + 0x28], 0
je 0x4bef8e
sub ecx, dword [esp + 0x34]
mov edi, edx
and edi, 7
add ecx, edi
mov dword [esp + 0x9c], edi
sar edx, 3
lea ecx, [ebx + ecx*4]
mov ebx, dword [esp + 0x98]
mov dword [esp + 0x84], ecx
mov ecx, edi
sub ecx, ebx
mov ebx, dword [esp + 0xa4]
test eax, eax
lea ecx, [ebx + ecx*4]
mov dword [esp + 0xa0], edx
mov dword [esp + 0x94], ecx
jle 0x4bf0bb
mov dword [esp + 0xa4], eax
test edx, edx
jle 0x4beed5
lea ecx, [ebp + 0xa]
lea eax, [esi + 0xa]
mov di, word [esi]
mov ebx, edi
shr ebx, 7
and bl, 0xf8
movzx bx, bl
shl ebx, 5
mov dword [esp + 0x8c], ebx
mov ebx, edi
shr ebx, 2
and bl, 0xf8
movzx di, bl
mov ebx, dword [esp + 0x8c]
or ebx, edi
shl ebx, 3
mov dword [esp + 0x8c], ebx
mov bl, byte [esi]
and bl, 0x1f
movzx di, bl
mov ebx, dword [esp + 0x8c]
or ebx, edi
mov word [ebp], bx
mov bl, byte [eax - 8]
and bl, 0xf
mov byte [ecx - 8], bl
mov di, word [eax - 6]
mov ebx, edi
shr ebx, 7
and bl, 0xf8
movzx bx, bl
shl ebx, 5
mov dword [esp + 0x8c], ebx
mov ebx, edi
shr ebx, 2
and bl, 0xf8
movzx di, bl
mov ebx, dword [esp + 0x8c]
or ebx, edi
shl ebx, 3
mov dword [esp + 0x8c], ebx
mov bl, byte [eax - 6]
and bl, 0x1f
movzx di, bl
mov ebx, dword [esp + 0x8c]
or ebx, edi
mov word [ecx - 6], bx
mov bl, byte [eax - 4]
and bl, 0xf
mov byte [ecx - 4], bl
mov di, word [eax - 2]
mov ebx, edi
shr ebx, 7
and bl, 0xf8
movzx bx, bl
shl ebx, 5
mov dword [esp + 0x8c], ebx
mov ebx, edi
shr ebx, 2
and bl, 0xf8
movzx di, bl
mov ebx, dword [esp + 0x8c]
or ebx, edi
shl ebx, 3
mov dword [esp + 0x8c], ebx
mov bl, byte [eax - 2]
and bl, 0x1f
movzx di, bl
mov ebx, dword [esp + 0x8c]
or ebx, edi
mov word [ecx - 2], bx
mov bl, byte [eax]
and bl, 0xf
mov byte [ecx], bl
mov di, word [eax + 2]
mov ebx, edi
shr ebx, 7
and bl, 0xf8
movzx bx, bl
shl ebx, 5
mov dword [esp + 0x8c], ebx
mov ebx, edi
shr ebx, 2
and bl, 0xf8
movzx di, bl
mov ebx, dword [esp + 0x8c]
or ebx, edi
shl ebx, 3
mov dword [esp + 0x8c], ebx
mov bl, byte [eax + 2]
and bl, 0x1f
movzx di, bl
mov ebx, dword [esp + 0x8c]
or ebx, edi
mov word [ecx + 2], bx
mov bl, byte [eax + 4]
and bl, 0xf
mov byte [ecx + 4], bl
mov di, word [eax + 6]
mov ebx, edi
shr ebx, 7
and bl, 0xf8
movzx bx, bl
shl ebx, 5
mov dword [esp + 0x8c], ebx
mov ebx, edi
shr ebx, 2
and bl, 0xf8
movzx di, bl
mov ebx, dword [esp + 0x8c]
or ebx, edi
shl ebx, 3
mov dword [esp + 0x8c], ebx
mov bl, byte [eax + 6]
and bl, 0x1f
movzx di, bl
mov ebx, dword [esp + 0x8c]
or ebx, edi
mov word [ecx + 6], bx
mov bl, byte [eax + 8]
and bl, 0xf
mov byte [ecx + 8], bl
mov di, word [eax + 0xa]
mov ebx, edi
shr ebx, 7
and bl, 0xf8
movzx bx, bl
shl ebx, 5
mov dword [esp + 0x8c], ebx
mov ebx, edi
shr ebx, 2
and bl, 0xf8
movzx di, bl
mov ebx, dword [esp + 0x8c]
or ebx, edi
shl ebx, 3
mov dword [esp + 0x8c], ebx
mov bl, byte [eax + 0xa]
and bl, 0x1f
movzx di, bl
mov ebx, dword [esp + 0x8c]
or ebx, edi
mov word [ecx + 0xa], bx
mov bl, byte [eax + 0xc]
and bl, 0xf
mov byte [ecx + 0xc], bl
mov di, word [eax + 0xe]
mov ebx, edi
shr ebx, 7
and bl, 0xf8
movzx bx, bl
shl ebx, 5
mov dword [esp + 0x8c], ebx
mov ebx, edi
shr ebx, 2
and bl, 0xf8
movzx di, bl
mov ebx, dword [esp + 0x8c]
or ebx, edi
shl ebx, 3
mov dword [esp + 0x8c], ebx
mov bl, byte [eax + 0xe]
and bl, 0x1f
movzx di, bl
mov ebx, dword [esp + 0x8c]
add ebp, 0x20
or ebx, edi
add esi, 0x20
mov word [ecx + 0xe], bx
mov bl, byte [eax + 0x10]
and bl, 0xf
add eax, 0x20
mov byte [ecx + 0x10], bl
mov di, word [eax - 0xe]
mov ebx, edi
add ecx, 0x20
shr ebx, 7
and bl, 0xf8
movzx bx, bl
shl ebx, 5
mov dword [esp + 0x8c], ebx
mov ebx, edi
shr ebx, 2
and bl, 0xf8
movzx di, bl
mov ebx, dword [esp + 0x8c]
or ebx, edi
shl ebx, 3
mov dword [esp + 0x8c], ebx
mov bl, byte [eax - 0xe]
and bl, 0x1f
movzx di, bl
mov ebx, dword [esp + 0x8c]
or ebx, edi
mov word [ecx - 0xe], bx
mov bl, byte [eax - 0xc]
and bl, 0xf
dec edx
mov byte [ecx - 0xc], bl
jne 0x4bebf0
mov edx, dword [esp + 0xa0]
mov edi, dword [esp + 0x9c]
test edi, edi
jle 0x4bef5d
mov ebx, esi
mov ecx, esi
lea eax, [ebp + 2]
sub ebx, ebp
mov dword [esp + 0x8c], edi
mov di, word [ecx]
add ecx, 4
mov edx, edi
add eax, 4
shr edx, 7
and dl, 0xf8
movzx dx, dl
shl edx, 5
mov dword [esp + 0x98], edx
mov edx, edi
mov edi, dword [esp + 0x98]
shr edx, 2
and dl, 0xf8
movzx dx, dl
or edi, edx
mov dl, byte [ecx - 4]
and dl, 0x1f
movzx dx, dl
shl edi, 3
or edi, edx
mov word [eax - 6], di
mov dl, byte [ebx + eax - 4]
and dl, 0xf
mov byte [eax - 4], dl
mov edx, dword [esp + 0x8c]
dec edx
mov dword [esp + 0x8c], edx
jne 0x4beeed
mov edx, dword [esp + 0xa0]
mov edi, dword [esp + 0x9c]
mov ebx, dword [esp + 0x94]
mov ecx, dword [esp + 0x84]
mov eax, dword [esp + 0xa4]
add ebp, ebx
add esi, ecx
dec eax
mov dword [esp + 0xa4], eax
jne 0x4bebe2
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 0x6c
ret
mov ecx, dword [esp + 0x68]
mov edi, dword [esp + 0x5c]
shl ecx, 2
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x84], edi
mov edi, dword [esp + 0x60]
imul ecx, ebx
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x70]
mov dword [esp + 0x98], edi
mov edi, dword [esp + 0x64]
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x74]
mov dword [esp + 0x94], edi
mov edi, dword [esp + 0x6c]
test eax, eax
mov dword [esp + 0x20], ecx
jle 0x4bf0bb
mov dword [esp + 0x9c], eax
jmp 0x4beff1
mov edi, dword [esp + 0x8c]
add edi, dword [esp + 0x98]
mov dword [esp + 0x8c], edi
js 0x4bf013
mov eax, dword [esp + 0x94]
add esi, ebx
sub edi, eax
mov dword [esp + 0x8c], edi
mov eax, dword [esp + 0x84]
mov dword [esp + 0x24], esi
test edx, edx
jle 0x4bf096
mov ecx, ebp
mov edi, edx
jmp 0x4bf02f
mov eax, dword [esp + 0xa0]
add eax, dword [esp + 0x10]
mov dword [esp + 0xa0], eax
js 0x4bf04c
mov ebx, dword [esp + 0x14]
add esi, 4
sub eax, ebx
mov dword [esp + 0xa0], eax
mov ax, word [esi]
add ecx, 4
mov ebx, eax
shr ebx, 7
and bl, 0xf8
shr eax, 2
movzx bx, bl
and al, 0xf8
movzx ax, al
shl ebx, 5
or ebx, eax
mov al, byte [esi]
and al, 0x1f
movzx ax, al
shl ebx, 3
or ebx, eax
mov word [ecx - 4], bx
mov al, byte [esi + 2]
and al, 0xf
mov byte [ecx - 2], al
mov eax, dword [esp + 0x18]
add esi, eax
dec edi
jne 0x4bf028
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0xa4]
add ebp, edi
lea esi, [eax + ecx]
mov eax, dword [esp + 0x9c]
dec eax
mov dword [esp + 0x9c], eax
jne 0x4befea
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 0x6c
ret