Function at 0x4bd520
Capabilities:
Encrypt data using camellia

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe0
mov eax, dword [0x51df40]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 0x84]
push esi
push edi
mov edi, dword [ebp + 8]
push 0x40
push 0
push eax
lea esi, [edi + 4]
call sub.VCRUNTIME140.dll_memset
push 0x110
push 0
push esi
call sub.VCRUNTIME140.dll_memset
mov eax, ebx
add esp, 0x18
sub eax, 0x80
je 0x4bd5a3
sub eax, 0x40
je 0x4bd588
sub eax, 0x40
je 0x4bd588
pop edi
pop esi
mov eax, 0xffffffdc
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d3ed5
mov esp, ebp
pop ebp
ret
mov eax, ebx
mov dword [edi], 4
shr eax, 3
mov dword [ebp - 0xd8], 1
test eax, eax
je 0x4bd5cb
jmp 0x4bd5b8
mov eax, ebx
mov dword [ebp - 0xd8], 0
mov dword [edi], 3
shr eax, 3
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x84]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov dh, byte [ebp - 0x6d]
cmp ebx, 0xc0
mov bl, byte [ebp - 0x74]
jne 0x4bd62b
mov al, byte [ebp - 0x73]
mov dl, bl
not al
not dl
mov byte [ebp - 0xc5], al
mov al, byte [ebp - 0x72]
not al
mov byte [ebp - 0xc6], al
mov al, byte [ebp - 0x71]
not al
mov byte [ebp - 0xc7], al
mov al, byte [ebp - 0x70]
not al
mov byte [ebp - 0xc8], al
mov al, byte [ebp - 0x6f]
not al
mov byte [ebp - 0xc9], al
mov al, byte [ebp - 0x6e]
not al
mov byte [ebp - 0xca], al
mov al, dh
not al
mov byte [ebp - 0xcb], al
jmp 0x4bd66d
mov al, byte [ebp - 0x65]
mov dl, byte [ebp - 0x6c]
mov byte [ebp - 0xcb], al
mov al, byte [ebp - 0x66]
mov byte [ebp - 0xca], al
mov al, byte [ebp - 0x67]
mov byte [ebp - 0xc9], al
mov al, byte [ebp - 0x68]
mov byte [ebp - 0xc8], al
mov al, byte [ebp - 0x69]
mov byte [ebp - 0xc7], al
mov al, byte [ebp - 0x6a]
mov byte [ebp - 0xc6], al
mov al, byte [ebp - 0x6b]
mov byte [ebp - 0xc5], al
movzx ecx, byte [ebp - 0x84]
xorps xmm0, xmm0
movzx eax, byte [ebp - 0x83]
shl ecx, 8
or ecx, eax
movlpd qword [ebp - 0x44], xmm0
movzx eax, byte [ebp - 0x82]
shl ecx, 8
or ecx, eax
movzx edi, byte [ebp - 0x70]
movzx eax, byte [ebp - 0x81]
shl ecx, 8
or ecx, eax
movlpd qword [ebp - 0x3c], xmm0
movzx eax, byte [ebp - 0x7f]
mov dword [ebp - 0xd4], ecx
mov dword [ebp - 0x44], ecx
movzx ecx, byte [ebp - 0x80]
shl ecx, 8
or ecx, eax
movzx ebx, bl
movzx eax, byte [ebp - 0x7e]
shl ecx, 8
or ecx, eax
shl ebx, 8
movzx eax, byte [ebp - 0x7d]
shl ecx, 8
or ecx, eax
movlpd qword [ebp - 0x34], xmm0
movzx eax, byte [ebp - 0x7b]
mov dword [ebp - 0xd0], ecx
mov dword [ebp - 0x40], ecx
movzx ecx, byte [ebp - 0x7c]
shl ecx, 8
or ecx, eax
mov dword [ebp - 0xc4], 0xa09e667f
movzx eax, byte [ebp - 0x7a]
shl ecx, 8
or ecx, eax
mov dword [ebp - 0xc0], 0x3bcc908b
movzx eax, byte [ebp - 0x79]
shl ecx, 8
or ecx, eax
mov dword [ebp - 0xbc], 0xb67ae858
movzx eax, byte [ebp - 0x77]
mov dword [ebp - 0xe0], ecx
mov dword [ebp - 0x3c], ecx
movzx ecx, byte [ebp - 0x78]
shl ecx, 8
or ecx, eax
mov dword [ebp - 0xb8], 0x4caa73b2
movzx eax, byte [ebp - 0x76]
shl ecx, 8
or ecx, eax
mov dword [ebp - 0xb4], 0xc6ef372f
movzx eax, byte [ebp - 0x75]
shl ecx, 8
or ecx, eax
mov dword [ebp - 0xb0], 0xe94f82be
movzx eax, byte [ebp - 0x73]
or ebx, eax
mov dword [ebp - 0xac], 0x54ff53a5
movzx eax, byte [ebp - 0x72]
shl ebx, 8
or ebx, eax
mov dword [ebp - 0xa8], 0xf1d36f1c
movzx eax, byte [ebp - 0x71]
shl ebx, 8
or ebx, eax
mov dword [ebp - 0xa4], 0x10e527fa
movzx eax, byte [ebp - 0x6f]
mov dword [ebp - 0xa0], 0xde682d1d
mov dword [ebp - 0x9c], 0xb05688c2
mov dword [ebp - 0x98], 0xb3e6c1fd
movlpd qword [ebp - 0x2c], xmm0
movlpd qword [ebp - 0x14], xmm0
movlpd qword [ebp - 0xc], xmm0
mov dword [ebp - 0xdc], ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], ebx
shl edi, 8
or edi, eax
movzx ecx, byte [ebp - 0xc8]
movzx eax, byte [ebp - 0x6e]
shl edi, 8
or edi, eax
xor ebx, dword [ebp - 0xd4]
movzx eax, dh
movzx edx, dl
shl edx, 8
shl edi, 8
or edi, eax
shl ecx, 8
movzx eax, byte [ebp - 0xc5]
or edx, eax
mov dword [ebp - 0x30], edi
movzx eax, byte [ebp - 0xc6]
xor edi, dword [ebp - 0xd0]
shl edx, 8
or edx, eax
mov dword [ebp - 0x24], ebx
movzx eax, byte [ebp - 0xc7]
shl edx, 8
or edx, eax
mov dword [ebp - 0x20], edi
movzx eax, byte [ebp - 0xc9]
or ecx, eax
mov dword [ebp - 0x2c], edx
movzx eax, byte [ebp - 0xca]
xor edx, dword [ebp - 0xe0]
shl ecx, 8
or ecx, eax
mov dword [ebp - 0x1c], edx
movzx eax, byte [ebp - 0xcb]
shl ecx, 8
or ecx, eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xc4]
mov dword [ebp - 0x28], ecx
xor ecx, dword [ebp - 0xdc]
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x18], ecx
push eax
call fcn.004bc9e0
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0xbc]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004bc9e0
movups xmm0, xmmword [ebp - 0x24]
lea eax, [ebp - 0x1c]
movups xmm1, xmmword [ebp - 0x44]
push eax
lea eax, [ebp - 0xb4]
push eax
lea eax, [ebp - 0x24]
pxor xmm1, xmm0
push eax
movups xmmword [ebp - 0x24], xmm1
call fcn.004bc9e0
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004bc9e0
add esp, 0x30
cmp dword [ebp + 0x10], 0x80
jbe 0x4bd92b
mov eax, dword [ebp - 0x24]
xor eax, dword [ebp - 0x34]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x20]
xor eax, dword [ebp - 0x30]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
xor eax, dword [ebp - 0x2c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
xor eax, dword [ebp - 0x28]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004bc9e0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.004bc9e0
add esp, 0x18
mov edi, dword [ebp - 0xd8]
mov ebx, edi
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x40]
shl ebx, 4
mov dword [ebp - 0x8c], ecx
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x94], edx
cmp byte [ebx + 0x500138], 0
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x88], ecx
mov dword [ebp - 0xd0], ebx
je 0x4bd9b0
mov ecx, eax
mov eax, edx
shr ecx, 0x11
shl eax, 0xf
xor ecx, eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x84], ecx
mov ecx, dword [ebp - 0x3c]
shr ecx, 0x11
shl eax, 0xf
xor ecx, eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x80], ecx
mov ecx, dword [ebp - 0x38]
shl eax, 0xf
shr ecx, 0x11
xor ecx, eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x7c], ecx
mov ecx, edx
shl eax, 0xf
shr ecx, 0x11
xor ecx, eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x78], ecx
cmp byte [ebx + 0x500139], 0
je 0x4bd9fa
mov ecx, eax
mov eax, edx
shr ecx, 2
shl eax, 0x1e
xor ecx, eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x74], ecx
mov ecx, dword [ebp - 0x3c]
shr ecx, 2
shl eax, 0x1e
xor ecx, eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x70], ecx
mov ecx, dword [ebp - 0x38]
shr ecx, 2
shl eax, 0x1e
xor ecx, eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x6c], ecx
mov ecx, edx
shr ecx, 2
shl eax, 0x1e
xor ecx, eax
mov dword [ebp - 0x68], ecx
cmp byte [ebx + 0x50013a], 0
je 0x4bda45
mov ecx, dword [ebp - 0x40]
mov eax, edx
shr ecx, 0x13
shl eax, 0xd
xor ecx, eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x64], ecx
mov ecx, dword [ebp - 0x3c]
shr ecx, 0x13
shl eax, 0xd
xor ecx, eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x60], ecx
mov ecx, dword [ebp - 0x38]
shr ecx, 0x13
shl eax, 0xd
xor ecx, eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x5c], ecx
mov ecx, edx
shr ecx, 0x13
shl eax, 0xd
xor ecx, eax
mov dword [ebp - 0x58], ecx
cmp byte [ebx + 0x50013b], 0
je 0x4bda8e
mov ecx, dword [ebp - 0x40]
mov eax, edx
shl eax, 0x1c
shr ecx, 4
xor ecx, eax
shr edx, 4
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x54], ecx
mov ecx, dword [ebp - 0x40]
shr eax, 4
shl ecx, 0x1c
xor eax, ecx
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x38]
shr eax, 4
shl ecx, 0x1c
xor eax, ecx
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x38]
shl eax, 0x1c
xor edx, eax
mov dword [ebp - 0x48], edx
lea ebx, [edi + edi*4]
xor edx, edx
shl ebx, 4
mov dword [ebp - 0xd4], ebx
nop dword [eax]
mov al, byte [ebx + edx + 0x500158]
lea edi, [edx*4]
cmp al, 0xff
je 0x4bdabf
movsx ecx, al
mov eax, dword [ebp + edi - 0x94]
mov dword [esi + ecx*4], eax
mov al, byte [ebx + edx + 0x500159]
cmp al, 0xff
je 0x4bdad7
movsx ecx, al
mov eax, dword [ebp + edi - 0x90]
mov dword [esi + ecx*4], eax
mov al, byte [ebx + edx + 0x50015a]
cmp al, 0xff
je 0x4bdaef
movsx ecx, al
mov eax, dword [ebp + edi - 0x8c]
mov dword [esi + ecx*4], eax
mov al, byte [ebx + edx + 0x50015b]
cmp al, 0xff
je 0x4bdb07
movsx ecx, al
mov eax, dword [ebp + edi - 0x88]
mov dword [esi + ecx*4], eax
mov al, byte [ebx + edx + str._b_t_n_v__]
cmp al, 0xff
je 0x4bdb1f
movsx ecx, al
mov eax, dword [ebp + edi - 0x84]
mov dword [esi + ecx*4], eax
add edx, 5
cmp edx, 0x14
jb 0x4bdaa0
cmp dword [ebp + 0x10], 0x80
mov ebx, dword [ebp - 0xd0]
jbe 0x4bdd21
cmp byte [ebx + 0x50013c], 0
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x34]
mov edi, dword [ebp - 0x30]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x94], edx
mov dword [ebp - 0x90], edi
mov dword [ebp - 0x88], eax
je 0x4bdbae
mov ecx, edi
mov eax, edx
shr ecx, 0x11
shl eax, 0xf
xor ecx, eax
mov eax, edi
mov dword [ebp - 0x84], ecx
mov ecx, dword [ebp - 0x2c]
shr ecx, 0x11
shl eax, 0xf
xor ecx, eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x80], ecx
mov ecx, dword [ebp - 0x28]
shr ecx, 0x11
shl eax, 0xf
xor ecx, eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x7c], ecx
mov ecx, edx
shr ecx, 0x11
shl eax, 0xf
xor ecx, eax
mov dword [ebp - 0x78], ecx
cmp byte [ebx + 0x50013d], 0
je 0x4bdbf7
mov ecx, edi
mov eax, edx
shr ecx, 2
shl eax, 0x1e
xor ecx, eax
mov eax, edi
mov dword [ebp - 0x74], ecx
mov ecx, dword [ebp - 0x2c]
shr ecx, 2
shl eax, 0x1e
xor ecx, eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x70], ecx
mov ecx, dword [ebp - 0x28]
shr ecx, 2
shl eax, 0x1e
xor ecx, eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x6c], ecx
mov ecx, edx
shr ecx, 2
shl eax, 0x1e
xor ecx, eax
mov dword [ebp - 0x68], ecx
cmp byte [ebx + 0x50013e], 0
je 0x4bdc40
mov ecx, edi
mov eax, edx
shr ecx, 0x13
shl eax, 0xd
xor ecx, eax
mov eax, edi
mov dword [ebp - 0x64], ecx
mov ecx, dword [ebp - 0x2c]
shr ecx, 0x13
shl eax, 0xd
xor ecx, eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x60], ecx
mov ecx, dword [ebp - 0x28]
shr ecx, 0x13
shl eax, 0xd
xor ecx, eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x5c], ecx
mov ecx, edx
shr ecx, 0x13
shl eax, 0xd
xor ecx, eax
mov dword [ebp - 0x58], ecx
cmp byte [ebx + 0x50013f], 0
je 0x4bdc83
mov ecx, edi
mov eax, edx
shl eax, 0x1c
shr ecx, 4
xor ecx, eax
shl edi, 0x1c
mov dword [ebp - 0x54], ecx
mov ecx, dword [ebp - 0x2c]
mov eax, ecx
shr eax, 4
xor eax, edi
shl ecx, 0x1c
mov edi, dword [ebp - 0x28]
mov dword [ebp - 0x50], eax
mov eax, edi
shr eax, 4
xor eax, ecx
shr edx, 4
shl edi, 0x1c
xor edx, edi
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], edx
mov ebx, dword [ebp - 0xd4]
xor edx, edx
nop dword [eax + eax]
mov al, byte [ebx + edx + 0x50016c]
lea edi, [edx*4]
cmp al, 0xff
je 0x4bdcaf
movsx ecx, al
mov eax, dword [ebp + edi - 0x94]
mov dword [esi + ecx*4], eax
mov al, byte [ebx + edx + 0x50016d]
cmp al, 0xff
je 0x4bdcc7
movsx ecx, al
mov eax, dword [ebp + edi - 0x90]
mov dword [esi + ecx*4], eax
mov al, byte [ebx + edx + 0x50016e]
cmp al, 0xff
je 0x4bdcdf
movsx ecx, al
mov eax, dword [ebp + edi - 0x8c]
mov dword [esi + ecx*4], eax
mov al, byte [ebx + edx + 0x50016f]
cmp al, 0xff
je 0x4bdcf7
movsx ecx, al
mov eax, dword [ebp + edi - 0x88]
mov dword [esi + ecx*4], eax
mov al, byte [ebx + edx + 0x500170]
cmp al, 0xff
je 0x4bdd0f
movsx ecx, al
mov eax, dword [ebp + edi - 0x84]
mov dword [esi + ecx*4], eax
add edx, 5
cmp edx, 0x14
jb 0x4bdc90
mov ebx, dword [ebp - 0xd0]
cmp byte [ebx + 0x500140], 0
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x20]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x94], edx
mov dword [ebp - 0x90], edi
mov dword [ebp - 0x88], eax
je 0x4bdd91
mov ecx, edi
mov eax, edx
shr ecx, 0x11
shl eax, 0xf
xor ecx, eax
mov eax, edi
mov dword [ebp - 0x84], ecx
mov ecx, dword [ebp - 0x1c]
shr ecx, 0x11
shl eax, 0xf
xor ecx, eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x80], ecx
mov ecx, dword [ebp - 0x18]
shr ecx, 0x11
shl eax, 0xf
xor ecx, eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x7c], ecx
mov ecx, edx
shr ecx, 0x11
shl eax, 0xf
xor ecx, eax
mov dword [ebp - 0x78], ecx
cmp byte [ebx + 0x500141], 0
je 0x4bddda
mov ecx, edi
mov eax, edx
shr ecx, 2
shl eax, 0x1e
xor ecx, eax
mov eax, edi
mov dword [ebp - 0x74], ecx
mov ecx, dword [ebp - 0x1c]
shr ecx, 2
shl eax, 0x1e
xor ecx, eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x70], ecx
mov ecx, dword [ebp - 0x18]
shr ecx, 2
shl eax, 0x1e
xor ecx, eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x6c], ecx
mov ecx, edx
shr ecx, 2
shl eax, 0x1e
xor ecx, eax
mov dword [ebp - 0x68], ecx
cmp byte [ebx + 0x500142], 0
je 0x4bde23
mov ecx, edi
mov eax, edx
shr ecx, 0x13
shl eax, 0xd
xor ecx, eax
mov eax, edi
mov dword [ebp - 0x64], ecx
mov ecx, dword [ebp - 0x1c]
shr ecx, 0x13
shl eax, 0xd
xor ecx, eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x60], ecx
mov ecx, dword [ebp - 0x18]
shr ecx, 0x13
shl eax, 0xd
xor ecx, eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x5c], ecx
mov ecx, edx
shr ecx, 0x13
shl eax, 0xd
xor ecx, eax
mov dword [ebp - 0x58], ecx
cmp byte [ebx + 0x500143], 0
je 0x4bde66
mov ecx, edi
mov eax, edx
shl eax, 0x1c
shr ecx, 4
xor ecx, eax
shl edi, 0x1c
mov dword [ebp - 0x54], ecx
mov ecx, dword [ebp - 0x1c]
mov eax, ecx
shr eax, 4
xor eax, edi
shl ecx, 0x1c
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x50], eax
mov eax, edi
shr eax, 4
xor eax, ecx
shr edx, 4
shl edi, 0x1c
xor edx, edi
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], edx
mov ebx, dword [ebp - 0xd4]
xor edx, edx
nop
mov al, byte [ebx + edx + 0x500180]
lea edi, [edx*4]
cmp al, 0xff
je 0x4bde8f
movsx ecx, al
mov eax, dword [ebp + edi - 0x94]
mov dword [esi + ecx*4], eax
mov al, byte [ebx + edx + 0x500181]
cmp al, 0xff
je 0x4bdea7
movsx ecx, al
mov eax, dword [ebp + edi - 0x90]
mov dword [esi + ecx*4], eax
mov al, byte [ebx + edx + 0x500182]
cmp al, 0xff
je 0x4bdebf
movsx ecx, al
mov eax, dword [ebp + edi - 0x8c]
mov dword [esi + ecx*4], eax
mov al, byte [ebx + edx + 0x500183]
cmp al, 0xff
je 0x4bded7
movsx ecx, al
mov eax, dword [ebp + edi - 0x88]
mov dword [esi + ecx*4], eax
mov al, byte [ebx + edx + 0x500184]
cmp al, 0xff
je 0x4bdeef
movsx ecx, al
mov eax, dword [ebp + edi - 0x84]
mov dword [esi + ecx*4], eax
add edx, 5
cmp edx, 0x14
jb 0x4bde70
cmp dword [ebp + 0x10], 0x80
mov ebx, dword [ebp - 0xd0]
jbe 0x4be0eb
cmp byte [ebx + 0x500144], 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x94], edx
mov dword [ebp - 0x90], edi
mov dword [ebp - 0x88], eax
je 0x4bdf7e
mov ecx, edi
mov eax, edx
shr ecx, 0x11
shl eax, 0xf
xor ecx, eax
mov eax, edi
mov dword [ebp - 0x84], ecx
mov ecx, dword [ebp - 0xc]
shr ecx, 0x11
shl eax, 0xf
xor ecx, eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x80], ecx
mov ecx, dword [ebp - 8]
shr ecx, 0x11
shl eax, 0xf
xor ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x7c], ecx
mov ecx, edx
shr ecx, 0x11
shl eax, 0xf
xor ecx, eax
mov dword [ebp - 0x78], ecx
cmp byte [ebx + 0x500145], 0
je 0x4bdfc7
mov ecx, edi
mov eax, edx
shr ecx, 2
shl eax, 0x1e
xor ecx, eax
mov eax, edi
mov dword [ebp - 0x74], ecx
mov ecx, dword [ebp - 0xc]
shr ecx, 2
shl eax, 0x1e
xor ecx, eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x70], ecx
mov ecx, dword [ebp - 8]
shr ecx, 2
shl eax, 0x1e
xor ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x6c], ecx
mov ecx, edx
shr ecx, 2
shl eax, 0x1e
xor ecx, eax
mov dword [ebp - 0x68], ecx
cmp byte [ebx + 0x500146], 0
je 0x4be010
mov ecx, edi
mov eax, edx
shr ecx, 0x13
shl eax, 0xd
xor ecx, eax
mov eax, edi
mov dword [ebp - 0x64], ecx
mov ecx, dword [ebp - 0xc]
shr ecx, 0x13
shl eax, 0xd
xor ecx, eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x60], ecx
mov ecx, dword [ebp - 8]
shr ecx, 0x13
shl eax, 0xd
xor ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x5c], ecx
mov ecx, edx
shr ecx, 0x13
shl eax, 0xd
xor ecx, eax
mov dword [ebp - 0x58], ecx
cmp byte [ebx + 0x500147], 0
je 0x4be053
mov ebx, dword [ebp - 8]
mov eax, edx
shl eax, 0x1c
mov ecx, edi
shr ecx, 4
xor ecx, eax
shl edi, 0x1c
mov dword [ebp - 0x54], ecx
mov ecx, dword [ebp - 0xc]
mov eax, ecx
shr eax, 4
xor eax, edi
shl ecx, 0x1c
mov dword [ebp - 0x50], eax
mov eax, ebx
shr eax, 4
xor eax, ecx
shr edx, 4
shl ebx, 0x1c
xor edx, ebx
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], edx
mov ebx, dword [ebp - 0xd4]
xor edx, edx
nop dword [eax + eax]
mov al, byte [ebx + edx + 0x500194]
lea edi, [edx*4]
cmp al, 0xff
je 0x4be07f
movsx ecx, al
mov eax, dword [ebp + edi - 0x94]
mov dword [esi + ecx*4], eax
mov al, byte [ebx + edx + 0x500195]
cmp al, 0xff
je 0x4be097
movsx ecx, al
mov eax, dword [ebp + edi - 0x90]
mov dword [esi + ecx*4], eax
mov al, byte [ebx + edx + 0x500196]
cmp al, 0xff
je 0x4be0af
movsx ecx, al
mov eax, dword [ebp + edi - 0x8c]
mov dword [esi + ecx*4], eax
mov al, byte [ebx + edx + 0x500197]
cmp al, 0xff
je 0x4be0c7
movsx ecx, al
mov eax, dword [ebp + edi - 0x88]
mov dword [esi + ecx*4], eax
mov al, byte [ebx + edx + 0x500198]
cmp al, 0xff
je 0x4be0df
movsx ecx, al
mov eax, dword [ebp + edi - 0x84]
mov dword [esi + ecx*4], eax
add edx, 5
cmp edx, 0x14
jb 0x4be060
mov ecx, dword [ebp - 0xd8]
xor edi, edi
lea eax, [ecx + ecx*4]
lea ebx, [eax*4 + 0x5001f8]
nop dword [eax]
mov al, byte [ebx]
cmp al, 0xff
je 0x4be11f
movsx edx, al
lea eax, [ecx + ecx*2]
lea ecx, [edi + eax*4]
mov eax, dword [esi + edx*4]
mov dword [esi + ecx*4 + 0x80], eax
mov ecx, dword [ebp - 0xd8]
inc edi
inc ebx
cmp edi, 0x14
jb 0x4be100
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d3ed5
mov esp, ebp
pop ebp
ret