Function at 0x4bc390
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 ebx
mov ebx, dword [esp + 0x78]
push edi
mov edi, dword [esp + 0x84]
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 ebx
push edi
call fcn.00547180
add esp, 0x20
test eax, eax
je 0x4bc3dd
pop edi
mov eax, 1
pop ebx
add esp, 0x6c
ret
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x34]
mov ecx, dword [edi + 8]
mov edi, dword [esp + 0x28]
sub eax, edx
push ebp
mov ebp, dword [esp + 0x3c]
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0x44]
push esi
mov esi, dword [ebx + 8]
mov dword [esp + 0xa0], ecx
sub eax, ebp
imul ebp, dword [esp + 0xa0]
imul edi, esi
mov ecx, dword [esp + 0x2c]
lea ebp, [ebp + edx*4]
mov edx, dword [esp + 0x8c]
mov dword [esp + 0x1c], esi
lea edi, [edi + ecx*4]
add edi, dword [ebx + 4]
mov ebx, dword [edx + 4]
mov dl, byte [esp + 0x28]
add ebp, ebx
test dl, dl
je 0x4bc73c
mov edx, dword [esp + 0xa4]
sub ecx, dword [esp + 0x34]
and edx, 7
mov ebx, dword [esp + 0xa4]
add ecx, edx
mov dword [esp + 0x9c], edx
sar ebx, 3
lea ecx, [esi + ecx*4]
mov esi, dword [esp + 0xa4]
mov dword [esp + 0x94], ecx
mov ecx, edx
sub ecx, esi
mov esi, dword [esp + 0xa0]
test eax, eax
lea ecx, [esi + ecx*4]
mov dword [esp + 0x98], ebx
mov dword [esp + 0xa0], ecx
jle 0x4bc863
mov dword [esp + 0xa4], eax
test ebx, ebx
jle 0x4bc69a
lea esi, [ebp + 0xa]
lea eax, [edi + 0xa]
mov edx, ebx
mov cx, word [edi]
xor ebx, ebx
mov bl, ch
and bl, 0xf8
shr ecx, 3
movzx bx, bl
and cl, 0xf8
movzx cx, cl
shl ebx, 5
or ebx, ecx
mov cl, byte [edi]
and cl, 0x1f
movzx cx, cl
shl ebx, 2
or ebx, ecx
mov word [ebp], bx
mov cl, byte [eax - 8]
and cl, 0xf
xor ebx, ebx
mov byte [esi - 8], cl
mov cx, word [eax - 6]
mov bl, ch
and bl, 0xf8
shr ecx, 3
movzx bx, bl
and cl, 0xf8
movzx cx, cl
shl ebx, 5
or ebx, ecx
mov cl, byte [eax - 6]
and cl, 0x1f
movzx cx, cl
shl ebx, 2
or ebx, ecx
mov word [esi - 6], bx
mov cl, byte [eax - 4]
and cl, 0xf
xor ebx, ebx
mov byte [esi - 4], cl
mov cx, word [eax - 2]
mov bl, ch
and bl, 0xf8
shr ecx, 3
movzx bx, bl
and cl, 0xf8
movzx cx, cl
shl ebx, 5
or ebx, ecx
mov cl, byte [eax - 2]
and cl, 0x1f
movzx cx, cl
shl ebx, 2
or ebx, ecx
mov word [esi - 2], bx
mov cl, byte [eax]
and cl, 0xf
xor ebx, ebx
mov byte [esi], cl
mov cx, word [eax + 2]
mov bl, ch
and bl, 0xf8
shr ecx, 3
movzx bx, bl
and cl, 0xf8
movzx cx, cl
shl ebx, 5
or ebx, ecx
mov cl, byte [eax + 2]
and cl, 0x1f
movzx cx, cl
shl ebx, 2
or ebx, ecx
mov word [esi + 2], bx
mov cl, byte [eax + 4]
and cl, 0xf
xor ebx, ebx
mov byte [esi + 4], cl
mov cx, word [eax + 6]
mov bl, ch
and bl, 0xf8
movzx bx, bl
shr ecx, 3
and cl, 0xf8
add ebp, 0x20
movzx cx, cl
shl ebx, 5
or ebx, ecx
mov cl, byte [eax + 6]
and cl, 0x1f
add esi, 0x20
movzx cx, cl
shl ebx, 2
or ebx, ecx
add edi, 0x20
mov word [esi - 0x1a], bx
mov cl, byte [eax + 8]
and cl, 0xf
xor ebx, ebx
mov byte [esi - 0x18], cl
mov cx, word [eax + 0xa]
mov bl, ch
add eax, 0x20
and bl, 0xf8
shr ecx, 3
movzx bx, bl
and cl, 0xf8
movzx cx, cl
shl ebx, 5
or ebx, ecx
mov cl, byte [eax - 0x16]
and cl, 0x1f
movzx cx, cl
shl ebx, 2
or ebx, ecx
mov word [esi - 0x16], bx
mov cl, byte [eax - 0x14]
and cl, 0xf
xor ebx, ebx
mov byte [esi - 0x14], cl
mov cx, word [eax - 0x12]
mov bl, ch
and bl, 0xf8
shr ecx, 3
movzx bx, bl
and cl, 0xf8
movzx cx, cl
shl ebx, 5
or ebx, ecx
mov cl, byte [eax - 0x12]
and cl, 0x1f
movzx cx, cl
shl ebx, 2
or ebx, ecx
mov word [esi - 0x12], bx
mov cl, byte [eax - 0x10]
and cl, 0xf
xor ebx, ebx
mov byte [esi - 0x10], cl
mov cx, word [eax - 0xe]
mov bl, ch
and bl, 0xf8
shr ecx, 3
movzx bx, bl
and cl, 0xf8
movzx cx, cl
shl ebx, 5
or ebx, ecx
mov cl, byte [eax - 0xe]
and cl, 0x1f
movzx cx, cl
shl ebx, 2
or ebx, ecx
mov word [esi - 0xe], bx
mov cl, byte [eax - 0xc]
and cl, 0xf
dec edx
mov byte [esi - 0xc], cl
jne 0x4bc4ad
mov ebx, dword [esp + 0x98]
mov edx, dword [esp + 0x9c]
test edx, edx
jle 0x4bc70b
mov ebx, edi
mov esi, edi
lea ecx, [ebp + 2]
sub ebx, ebp
mov dword [esp + 0x8c], edx
mov ax, word [esi]
xor edx, edx
mov dl, ah
add esi, 4
and dl, 0xf8
add ecx, 4
shr eax, 3
movzx dx, dl
and al, 0xf8
movzx ax, al
shl edx, 5
or edx, eax
mov al, byte [esi - 4]
and al, 0x1f
movzx ax, al
shl edx, 2
or edx, eax
mov eax, dword [esp + 0x8c]
mov word [ecx - 6], dx
mov dl, byte [ebx + ecx - 4]
and dl, 0xf
dec eax
mov byte [ecx - 4], dl
mov dword [esp + 0x8c], eax
jne 0x4bc6ae
mov edx, dword [esp + 0x9c]
mov ebx, dword [esp + 0x98]
mov esi, dword [esp + 0xa0]
mov ecx, dword [esp + 0x94]
mov eax, dword [esp + 0xa4]
add ebp, esi
add edi, ecx
dec eax
mov dword [esp + 0xa4], eax
jne 0x4bc49d
pop esi
pop ebp
pop edi
xor eax, eax
pop ebx
add esp, 0x6c
ret
mov ecx, dword [esp + 0x68]
lea edx, [ecx*4]
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x84], edx
mov edx, dword [esp + 0x60]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x70]
imul ecx, esi
mov dword [esp + 0x98], edx
mov edx, dword [esp + 0x64]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x74]
mov dword [esp + 0x94], edx
mov edx, dword [esp + 0x6c]
test eax, eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x8c], edx
jle 0x4bc863
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x8c]
mov edx, dword [esp + 0x98]
add eax, edx
mov dword [esp + 0x8c], eax
js 0x4bc7cc
mov edx, dword [esp + 0x94]
add edi, esi
sub eax, edx
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0xa4]
mov edx, dword [esp + 0x84]
test eax, eax
mov dword [esp + 0x24], edi
jle 0x4bc83e
mov ecx, ebp
mov esi, eax
add edx, dword [esp + 0x10]
js 0x4bc7f5
mov eax, dword [esp + 0x14]
add edi, 4
sub edx, eax
mov ax, word [edi]
xor ebx, ebx
mov bl, ah
add ecx, 4
and bl, 0xf8
shr eax, 3
movzx bx, bl
and al, 0xf8
movzx ax, al
shl ebx, 5
or ebx, eax
mov al, byte [edi]
and al, 0x1f
movzx ax, al
shl ebx, 2
or ebx, eax
mov word [ecx - 4], bx
mov al, byte [edi + 2]
and al, 0xf
mov byte [ecx - 2], al
mov eax, dword [esp + 0x18]
add edi, eax
dec esi
jne 0x4bc7e6
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x9c]
lea edi, [edx + ecx]
mov edx, dword [esp + 0xa0]
add ebp, edx
dec eax
mov dword [esp + 0x9c], eax
jne 0x4bc7a1
pop esi
pop ebp
pop edi
xor eax, eax
pop ebx
add esp, 0x6c
ret