Function at 0x7f4cb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [0xbd33e0]
xor eax, esp
mov dword [esp + 0x28], eax
cmp dword [ecx + 0x24], 0
jne 0x7f4f77
mov eax, dword [ecx]
cmp byte [eax + 0x51], 0
jne 0x7f4f77
mov esi, dword [ecx + 0xe4]
mov dword [esp + 0x1c], edx
mov dword [esp], ecx
mov ecx, eax
mov dword [esp + 4], eax
mov edx, dword [esi + 0x48]
call fcn.0078dee0
mov ecx, eax
mov eax, dword [esp + 4]
mov ebx, dword [esi]
mov dword [esp + 0x20], ecx
shl ecx, 4
mov eax, dword [eax + 0x10]
add ebx, 0x10
mov edx, ebx
mov ebp, dword [eax + ecx]
movsx eax, word [esi + 0x2a]
mov ecx, dword [esi + 4]
dec eax
mov dword [esp + 0x10], ecx
lea edi, [eax + eax*4]
mov eax, dword [ecx + edi*4 + 4]
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 4]
push ebp
call fcn.00797640
add esp, 4
mov ecx, dword [esp]
mov edx, 0x1a
push 0
push dword [eax]
push ebp
call fcn.008002d0
add esp, 0xc
test eax, eax
jne 0x7f4f77
mov edx, dword [esp + 0xc]
mov dword [esp + 0x18], ebx
mov dword [esp + 8], esi
mov dword [esp + 0x14], ebp
mov ecx, dword [esp + 0x10]
movzx eax, word [ecx + edi*4 + 0x10]
test al, 1
je 0x7f4f8a
mov edx, 0x792960
movzx ecx, byte [0xbbbc87]
not edx
and edx, 1
mov eax, edx
add eax, 0x792960
sete al
not al
and al, 3
movzx eax, al
bt ecx, eax
jb 0x7f4f66
mov al, byte [0xbbbc87]
mov ecx, edx
mov ah, 1
add ecx, 0x792960
sete cl
not cl
and cl, 3
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbbbc87], ah
jne 0x7f4d9f
mov ecx, 0x792960
movzx eax, al
not ecx
and ecx, 1
mov edx, ecx
add edx, 0x792960
sete dl
not dl
and dl, 3
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x7f4e0c
mov eax, ecx
movzx edx, byte [0xbbbc87]
add eax, 0x792960
sete al
not al
and al, 3
movzx eax, al
bt edx, eax
jae 0x7f4dea
jmp 0x7f4f66
add ecx, 0x792960
movzx ecx, byte [0xbbbc87]
sete al
not al
and al, 3
movzx eax, al
bt ecx, eax
jb 0x7f4f42
mov eax, 0x792960
xor ecx, ecx
not eax
and eax, 1
add eax, 0x792960
mov eax, dword [0xbbbc60]
sete cl
xor ecx, 0x410b8a8b
add ecx, 0x8a8
mov edx, ecx
xor eax, ecx
shr edx, 0x1f
mov dword [0xbbbc60], eax
not eax
or edx, ecx
and cl, 7
imul edx, eax
mov eax, dword [0xbbbc64]
lea esi, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbbbc64], eax
or edx, esi
not eax
imul eax, edx
mov edx, dword [0xbbbc68]
lea esi, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbbbc68], edx
or eax, esi
not edx
mov edi, dword [0xbbbc6c]
imul edx, eax
lea esi, [edx*8]
xor edi, edx
shr edx, 0x1c
mov dword [0xbbbc6c], edi
or edx, esi
not edi
imul edi, edx
mov edx, dword [0xbbbc70]
mov esi, edi
shl esi, 4
xor edx, edi
shr edi, 0x1b
mov dword [0xbbbc70], edx
or edi, esi
not edx
mov ebx, dword [0xbbbc74]
imul edx, edi
mov esi, edx
shl esi, 5
xor ebx, edx
shr edx, 0x1a
mov dword [0xbbbc74], ebx
or edx, esi
not ebx
imul ebx, edx
mov edx, dword [0xbbbc78]
mov esi, ebx
shl esi, 6
xor edx, ebx
shr ebx, 0x19
mov dword [0xbbbc78], edx
or ebx, esi
not edx
mov edi, dword [0xbbbc7c]
imul edx, ebx
mov esi, edx
shl esi, 7
xor edi, edx
shr edx, 0x18
mov dword [0xbbbc7c], edi
or edx, esi
not edi
imul edi, edx
mov dl, 1
xor dword [0xbbbc80], edi
shl dl, cl
or byte [0xbbbc87], dl
mov eax, 0x792960
not eax
and eax, 1
add eax, 0x792960
mov al, 0xfe
sete cl
not cl
and cl, 3
xor cl, 7
rol al, cl
and byte [0xbbbc87], al
push 0xbbbc60
push dword [esp + 4]
call fcn.0078de60
add esp, 8
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.00989fe9
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebx, dword [esp + 8]
cmp dword [ebx + 8], 0
je 0x7f512c
mov edx, fcn.0080d0f0
movzx ecx, byte [0xbbbcaf]
xor eax, eax
imul edx, edx
and edx, 3
cmp edx, 3
sete al
bt ecx, eax
jb 0x7f5122
mov al, byte [0xbbbcaf]
cmp edx, 3
mov ah, 1
sete cl
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbbbcaf], ah
jne 0x7f4fc0
mov ecx, fcn.0080d0f0
movzx eax, al
imul ecx, ecx
and ecx, 3
cmp ecx, 3
sete dl
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x7f5011
movzx edx, byte [0xbbbcaf]
xor eax, eax
cmp ecx, 3
sete al
bt edx, eax
jae 0x7f4ff8
jmp 0x7f5122
movzx edx, byte [0xbbbcaf]
xor eax, eax
cmp ecx, 3
sete al
bt edx, eax
jb 0x7f5104
mov eax, fcn.0080d0f0
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 3
mov eax, dword [0xbbbc90]
sete cl
or ecx, 0x83580e88
add ecx, 0x228
mov edx, ecx
xor eax, ecx
shr edx, 0x1f
mov dword [0xbbbc90], eax
not eax
or edx, ecx
and cl, 7
imul edx, eax
mov eax, dword [0xbbbc94]
lea esi, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbbbc94], eax
or edx, esi
not eax
imul eax, edx
mov edx, dword [0xbbbc98]
lea esi, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbbbc98], edx
or eax, esi
not edx
mov ebx, dword [0xbbbc9c]
imul edx, eax
lea esi, [edx*8]
xor ebx, edx
shr edx, 0x1c
mov dword [0xbbbc9c], ebx
or edx, esi
not ebx
imul ebx, edx
mov edx, dword [0xbbbca0]
mov esi, ebx
shl esi, 4
xor edx, ebx
shr ebx, 0x1b
mov dword [0xbbbca0], edx
or ebx, esi
not edx
mov edi, dword [0xbbbca4]
imul edx, ebx
mov esi, edx
shl esi, 5
xor edi, edx
shr edx, 0x1a
mov dword [0xbbbca4], edi
or edx, esi
not edi
imul edi, edx
mov dl, 1
xor dword [0xbbbca8], edi
shl dl, cl
or byte [0xbbbcaf], dl
mov eax, fcn.0080d0f0
imul eax, eax
and eax, 3
cmp eax, 3
mov al, 0xfe
sete cl
xor cl, 7
rol al, cl
and byte [0xbbbcaf], al
push 0xbbbc90
jmp 0x7f4f6b
test al, 0x60
jne 0x7f5807
mov esi, edi
test edx, edx
jne 0x7f513e
xor edx, edx
jmp 0x7f514b
mov eax, dword [edx + 0xc]
mov edi, edx
xor edx, edx
cmp byte [eax], 0x77
cmovne edx, edi
mov eax, dword [esp + 4]
test byte [eax + 0x21], 0x40
je 0x7f52d7
test edx, edx
je 0x7f52d7
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x7f52d7
mov edx, fcn.00780d20
mov esi, fcn.00780d20
xor eax, eax
movzx edi, byte [0xbbbcef]
or edx, 2
xor esi, 2
mov ecx, edx
add ecx, esi
sete al
mov ecx, eax
not ecx
lea eax, [ecx + eax*2]
and al, 7
movzx eax, al
bt edi, eax
jb 0x7f52cd
mov al, byte [0xbbbcef]
mov edi, edx
xor ecx, ecx
mov ah, 1
add edi, esi
sete cl
mov ebx, ecx
not ebx
lea ecx, [ebx + ecx*2]
and cl, 7
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbbbcef], ah
jne 0x7f51a6
mov ecx, fcn.00780d20
mov edx, fcn.00780d20
xor ebx, ebx
movzx eax, al
or ecx, 2
xor edx, 2
mov esi, ecx
add esi, edx
sete bl
mov esi, ebx
not ebx
lea ebx, [ebx + esi*2]
and bl, 7
xor bl, 7
movzx esi, bl
bt eax, esi
jae 0x7f5223
mov esi, ecx
xor eax, eax
add esi, edx
movzx esi, byte [0xbbbcef]
sete al
mov ebx, eax
not ebx
lea eax, [ebx + eax*2]
and al, 7
movzx eax, al
bt esi, eax
jae 0x7f51fd
jmp 0x7f52cd
xor eax, eax
add ecx, edx
movzx esi, byte [0xbbbcef]
sete al
mov ecx, eax
xor ecx, 0xa61573ef
lea edx, [ecx + eax*2 + 0x1000]
mov eax, edx
and al, 7
movzx eax, al
bt esi, eax
jb 0x7f529f
mov esi, 0xbbbcb0
xor eax, eax
mov edi, dword [esi]
mov ecx, eax
mov ebx, edx
inc eax
shl ebx, cl
xor cl, 0x1f
xor edi, edx
shr edx, cl
mov dword [esi], edi
or edx, ebx
not edi
add esi, 4
imul edx, edi
cmp eax, 0xf
jne 0x7f5253
mov eax, fcn.00780d20
mov ecx, fcn.00780d20
xor edx, edx
xor ecx, 2
or eax, 2
add eax, ecx
sete dl
mov eax, edx
not eax
lea ecx, [eax + edx*2]
mov al, 1
and cl, 7
shl al, cl
or byte [0xbbbcef], al
mov eax, fcn.00780d20
mov ecx, fcn.00780d20
xor edx, edx
xor ecx, 2
or eax, 2
add eax, ecx
sete dl
mov eax, edx
not eax
lea ecx, [eax + edx*2]
mov al, 0xfe
and cl, 7
xor cl, 7
rol al, cl
and byte [0xbbbcef], al
push 0xbbbcb0
jmp 0x7f4f6b
test edx, edx
jne 0x7f559e
mov al, byte [ecx + esi*4 + 0xc]
test al, al
je 0x7f559e
mov edx, fcn.00798910
mov esi, fcn.00798910
xor eax, eax
movzx edi, byte [0xbbbd2b]
or edx, 2
xor esi, 2
mov ecx, edx
add ecx, esi
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 2]
bt edi, eax
jb 0x7f5594
mov al, byte [0xbbbd2b]
mov edi, edx
xor ecx, ecx
mov ah, 1
add edi, esi
sete cl
mov ebx, ecx
xor ebx, 1
lea ecx, [ecx + ebx*2 + 2]
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbbbd2b], ah
jne 0x7f5322
mov ecx, fcn.00798910
mov edx, fcn.00798910
xor ebx, ebx
movzx eax, al
or ecx, 2
xor edx, 2
mov esi, ecx
add esi, edx
sete bl
mov esi, ebx
xor ebx, 1
lea ebx, [esi + ebx*2 + 2]
xor bl, 7
movzx esi, bl
bt eax, esi
jae 0x7f539a
mov esi, ecx
xor eax, eax
add esi, edx
movzx esi, byte [0xbbbd2b]
sete al
mov ebx, eax
xor ebx, 1
lea eax, [eax + ebx*2 + 2]
bt esi, eax
jae 0x7f5377
jmp 0x7f5594
xor eax, eax
add ecx, edx
movzx edx, byte [0xbbbd2b]
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 2]
bt edx, eax
jb 0x7f5567
mov ecx, fcn.00798910
mov edx, fcn.00798910
xor eax, eax
xor edx, 2
or ecx, 2
add ecx, edx
sete al
mov ecx, eax
not ecx
and ecx, 0x845
lea ecx, [eax + ecx*2 - 0x7422b56]
mov eax, dword [0xbbbcf0]
mov edx, ecx
shr edx, 0x1f
or edx, ecx
xor eax, ecx
and cl, 7
mov dword [0xbbbcf0], eax
not eax
imul edx, eax
mov eax, dword [0xbbbcf4]
lea esi, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbbbcf4], eax
or esi, edx
not eax
mov edx, dword [0xbbbcf8]
imul eax, esi
lea esi, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbbbcf8], edx
or esi, eax
not edx
mov eax, dword [0xbbbcfc]
imul edx, esi
lea esi, [edx*8]
xor eax, edx
shr edx, 0x1c
mov dword [0xbbbcfc], eax
or esi, edx
not eax
mov edx, dword [0xbbbd00]
imul eax, esi
mov esi, eax
shl esi, 4
xor edx, eax
shr eax, 0x1b
mov dword [0xbbbd00], edx
or eax, esi
not edx
mov ebx, dword [0xbbbd04]
imul edx, eax
mov esi, edx
shl esi, 5
xor ebx, edx
shr edx, 0x1a
mov dword [0xbbbd04], ebx
or edx, esi
not ebx
imul ebx, edx
mov edx, dword [0xbbbd08]
mov esi, ebx
shl esi, 6
xor edx, ebx
shr ebx, 0x19
mov dword [0xbbbd08], edx
or ebx, esi
not edx
mov edi, dword [0xbbbd0c]
imul edx, ebx
mov esi, edx
shl esi, 7
xor edi, edx
shr edx, 0x18
mov dword [0xbbbd0c], edi
or edx, esi
not edi
imul edi, edx
mov edx, dword [0xbbbd10]
mov esi, edi
shl esi, 8
xor edx, edi
shr edi, 0x17
mov dword [0xbbbd10], edx
or edi, esi
not edx
mov ebx, dword [0xbbbd14]
imul edx, edi
mov esi, edx
shl esi, 9
xor ebx, edx
shr edx, 0x16
mov dword [0xbbbd14], ebx
or edx, esi
not ebx
imul ebx, edx
mov edx, dword [0xbbbd18]
mov esi, ebx
shl esi, 0xa
xor edx, ebx
shr ebx, 0x15
mov dword [0xbbbd18], edx
or ebx, esi
not edx
mov edi, dword [0xbbbd1c]
imul edx, ebx
mov esi, edx
shl esi, 0xb
xor edi, edx
shr edx, 0x14
mov dword [0xbbbd1c], edi
or edx, esi
not edi
imul edi, edx
mov edx, dword [0xbbbd20]
mov esi, edi
shl esi, 0xc
xor edx, edi
shr edi, 0x13
mov dword [0xbbbd20], edx
or edi, esi
not edx
imul edx, edi
xor dword [0xbbbd24], edx
mov dl, 1
shl dl, cl
or byte [0xbbbd2b], dl
mov eax, fcn.00798910
mov ecx, fcn.00798910
xor edx, edx
xor ecx, 2
or eax, 2
add eax, ecx
sete dl
mov eax, edx
xor eax, 1
lea ecx, [edx + eax*2 + 2]
mov al, 0xfe
xor cl, 7
rol al, cl
and byte [0xbbbd2b], al
push 0xbbbcf0
jmp 0x7f4f6b
test edx, edx
je 0x7f59eb
mov ecx, dword [esp + 4]
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0
push eax
push 0x41
push 1
call fcn.007fc880
add esp, 0xc
test eax, eax
jne 0x7f4f77
mov ecx, dword [esp + 0x24]
test ecx, ecx
jne 0x7f59e2
mov edx, 0x7837c0
movzx ecx, byte [0xbbbd63]
imul edx, edx
and edx, 3
cmp edx, 2
sete al
or al, 6
movzx eax, al
bt ecx, eax
jb 0x7f57fd
mov al, byte [0xbbbd63]
cmp edx, 2
mov ah, 1
sete cl
or cl, 6
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbbbd63], ah
jne 0x7f5602
mov ecx, 0x7837c0
movzx eax, al
imul ecx, ecx
and ecx, 3
cmp ecx, 2
sete dl
or dl, 6
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x7f565c
cmp ecx, 2
movzx edx, byte [0xbbbd63]
sete al
or al, 6
movzx eax, al
bt edx, eax
jae 0x7f5640
jmp 0x7f57fd
cmp ecx, 2
movzx edx, byte [0xbbbd63]
sete al
or al, 6
movzx eax, al
bt edx, eax
jb 0x7f57dc
mov edx, 0x7837c0
mov eax, dword [0xbbbd30]
xor ecx, ecx
imul edx, edx
and edx, 3
cmp edx, 2
sete cl
mov edx, eax
xor edx, ecx
or ecx, 0x4cb63dfe
xor eax, ecx
xor edx, 0xb349c201
mov dword [0xbbbd30], eax
imul edx, ecx
and cl, 7
mov eax, dword [0xbbbd34]
lea esi, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbbbd34], eax
or esi, edx
not eax
mov edx, dword [0xbbbd38]
imul eax, esi
lea esi, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbbbd38], edx
or esi, eax
not edx
mov eax, dword [0xbbbd3c]
imul edx, esi
lea esi, [edx*8]
xor eax, edx
shr edx, 0x1c
mov dword [0xbbbd3c], eax
or esi, edx
not eax
mov edx, dword [0xbbbd40]
imul eax, esi
mov esi, eax
shl esi, 4
xor edx, eax
shr eax, 0x1b
mov dword [0xbbbd40], edx
or eax, esi
not edx
mov edi, dword [0xbbbd44]
imul edx, eax
mov esi, edx
shl esi, 5
xor edi, edx
shr edx, 0x1a
mov dword [0xbbbd44], edi
or edx, esi
not edi
imul edi, edx
mov edx, dword [0xbbbd48]
mov esi, edi
shl esi, 6
xor edx, edi
shr edi, 0x19
mov dword [0xbbbd48], edx
or edi, esi
not edx
mov ebx, dword [0xbbbd4c]
imul edx, edi
mov esi, edx
shl esi, 7
xor ebx, edx
shr edx, 0x18
mov dword [0xbbbd4c], ebx
or edx, esi
not ebx
imul ebx, edx
mov edx, dword [0xbbbd50]
mov esi, ebx
shl esi, 8
xor edx, ebx
shr ebx, 0x17
mov dword [0xbbbd50], edx
or ebx, esi
not edx
mov edi, dword [0xbbbd54]
imul edx, ebx
mov esi, edx
shl esi, 9
xor edi, edx
shr edx, 0x16
mov dword [0xbbbd54], edi
or edx, esi
not edi
imul edi, edx
mov edx, dword [0xbbbd58]
mov esi, edi
shl esi, 0xa
xor edx, edi
shr edi, 0x15
mov dword [0xbbbd58], edx
or edi, esi
not edx
imul edx, edi
xor dword [0xbbbd5c], edx
mov dl, 1
shl dl, cl
or byte [0xbbbd63], dl
mov eax, 0x7837c0
imul eax, eax
and eax, 3
cmp eax, 2
mov al, 0xfe
sete cl
or cl, 6
xor cl, 7
rol al, cl
and byte [0xbbbd63], al
push 0xbbbd30
jmp 0x7f4f6b
test al, 0x40
je 0x7f59eb
mov edx, fcn.00780a60
xor eax, eax
movzx esi, byte [0xbbbd8f]
imul edx, edx
and edx, 3
cmp edx, 1
seta al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 2]
bt esi, eax
jb 0x7f59d8
mov al, byte [0xbbbd8f]
xor ecx, ecx
cmp edx, 1
mov ah, 1
seta cl
mov ebx, ecx
xor ebx, 1
lea ecx, [ecx + ebx*2 + 2]
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbbbd8f], ah
jne 0x7f5840
mov ecx, fcn.00780a60
xor edx, edx
movzx eax, al
imul ecx, ecx
and ecx, 3
cmp ecx, 1
seta dl
mov ebx, edx
xor ebx, 1
lea edx, [edx + ebx*2 + 2]
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x7f58b0
xor eax, eax
cmp ecx, 1
movzx esi, byte [0xbbbd8f]
seta al
mov edx, eax
xor edx, 1
lea eax, [eax + edx*2 + 2]
bt esi, eax
jae 0x7f588e
jmp 0x7f59d8
xor eax, eax
cmp ecx, 1
movzx edx, byte [0xbbbd8f]
seta al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 2]
bt edx, eax
jb 0x7f59af
mov ecx, fcn.00780a60
xor eax, eax
imul ecx, ecx
and ecx, 3
cmp ecx, 1
seta al
mov ecx, eax
not ecx
and ecx, 0x1b5
lea ecx, [eax + ecx*2 - 0x35de59be]
mov eax, dword [0xbbbd70]
mov edx, ecx
shr edx, 0x1f
or edx, ecx
xor eax, ecx
and cl, 7
mov dword [0xbbbd70], eax
not eax
imul edx, eax
mov eax, dword [0xbbbd74]
lea esi, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbbbd74], eax
or esi, edx
not eax
mov edx, dword [0xbbbd78]
imul eax, esi
lea esi, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbbbd78], edx
or esi, eax
not edx
mov eax, dword [0xbbbd7c]
imul edx, esi
lea esi, [edx*8]
xor eax, edx
shr edx, 0x1c
mov dword [0xbbbd7c], eax
or esi, edx
not eax
mov edx, dword [0xbbbd80]
imul eax, esi
mov esi, eax
shl esi, 4
xor edx, eax
shr eax, 0x1b
mov dword [0xbbbd80], edx
or eax, esi
not edx
mov edi, dword [0xbbbd84]
imul edx, eax
mov esi, edx
shl esi, 5
xor edi, edx
shr edx, 0x1a
mov dword [0xbbbd84], edi
or edx, esi
not edi
imul edi, edx
mov dl, 1
xor dword [0xbbbd88], edi
shl dl, cl
or byte [0xbbbd8f], dl
mov eax, fcn.00780a60
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 1
seta cl
mov eax, ecx
xor eax, 1
lea ecx, [ecx + eax*2 + 2]
mov al, 0xfe
xor cl, 7
rol al, cl
and byte [0xbbbd8f], al
push 0xbbbd70
jmp 0x7f4f6b
call fcn.007895e0
mov ebx, dword [esp + 8]
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 4]
mov edx, dword [edi]
mov ecx, esi
push 0
push dword [edi + 4]
call fcn.007caea0
add esp, 8
test eax, eax
je 0x7f5d6e
mov ebp, dword [esi + 0x18]
mov edx, eax
mov eax, dword [edi + 4]
mov dword [esp + 0xc], ebp
dec eax
mov edi, dword [esp + 0x14]
test eax, eax
jle 0x7f5a43
add eax, edx
movzx ecx, byte [eax]
cmp ecx, 0x3b
je 0x7f5a34
test byte [ecx + 0xb4bd18], 1
je 0x7f5a3c
mov byte [eax], 0
dec eax
cmp eax, edx
ja 0x7f5a23
mov eax, dword [esp + 4]
mov ebp, dword [eax + 0x18]
mov esi, 0x845d00
xor eax, eax
mov dword [esp + 0x10], edx
and esi, 1
movzx edx, byte [0xbbbda3]
inc esi
mov ecx, esi
xor ecx, 0x845d00
sete al
mov ecx, eax
not ecx
lea eax, [eax + ecx*2 + 4]
and al, 7
movzx eax, al
bt edx, eax
jb 0x7f5be7
mov al, byte [0xbbbda3]
mov edx, esi
xor ecx, ecx
xor edx, 0x845d00
sete cl
mov edx, ecx
not edx
lea ecx, [ecx + edx*2 + 4]
mov dl, 1
and cl, 7
xor cl, 7
shl dl, cl
or dl, al
lock cmpxchg byte [0xbbbda3], dl
jne 0x7f5a7f
mov ecx, 0x845d00
xor edx, edx
movzx eax, al
and ecx, 1
inc ecx
mov esi, ecx
xor esi, 0x845d00
sete dl
mov ebx, edx
not ebx
lea edx, [edx + ebx*2 + 4]
and dl, 7
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x7f5b08
mov ebx, dword [esp + 8]
mov edx, ecx
xor eax, eax
movzx esi, byte [0xbbbda3]
xor edx, 0x845d00
sete al
mov edx, eax
not edx
lea eax, [eax + edx*2 + 4]
and al, 7
movzx eax, al
bt esi, eax
jae 0x7f5add
jmp 0x7f5be7
xor eax, eax
xor ecx, 0x845d00
movzx edx, byte [0xbbbda3]
mov ebx, dword [esp + 8]
sete al
mov ecx, eax
not ecx
lea eax, [eax + ecx*2 + 4]
and al, 7
movzx eax, al
bt edx, eax
jb 0x7f5bbc
mov ecx, 0x845d00
xor eax, eax
and ecx, 1
inc ecx
xor ecx, 0x845d00
sete al
mov ecx, eax
not ecx
and ecx, 0x83
lea ecx, [eax + ecx*2 - 0x6b770284]
mov eax, dword [0xbbbd90]
mov edx, ecx
shr edx, 0x1f
or edx, ecx
xor eax, ecx
and cl, 7
mov dword [0xbbbd90], eax
not eax
imul edx, eax
mov eax, dword [0xbbbd94]
lea esi, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbbbd94], eax
or esi, edx
not eax
mov edx, dword [0xbbbd98]
imul eax, esi
lea esi, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbbbd98], edx
or esi, eax
not edx
mov al, 1
imul edx, esi
shl al, cl
xor dword [0xbbbd9c], edx
or byte [0xbbbda3], al
mov eax, 0x845d00
xor ecx, ecx
and eax, 1
inc eax
xor eax, 0x845d00
sete cl
mov eax, ecx
not eax
lea ecx, [ecx + eax*2 + 4]
mov al, 0xfe
and cl, 7
xor cl, 7
rol al, cl
and byte [0xbbbda3], al
mov edx, fcn.007b04d0
xor eax, eax
movzx esi, byte [0xbbbe23]
imul edx, edx
and edx, 3
cmp edx, 1
seta al
mov ecx, eax
xor ecx, 3
lea eax, [ecx + eax*2]
bt esi, eax
jb 0x7f5d2c
mov al, byte [0xbbbe23]
xor ecx, ecx
cmp edx, 1
mov ah, 1
seta cl
mov ebx, ecx
xor ebx, 3
lea ecx, [ebx + ecx*2]
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbbbe23], ah
jne 0x7f5c17
mov ecx, fcn.007b04d0
xor edx, edx
movzx eax, al
imul ecx, ecx
and ecx, 3
cmp ecx, 1
seta dl
mov ebx, edx
xor ebx, 3
lea edx, [ebx + edx*2]
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x7f5c88
mov ebx, dword [esp + 8]
xor eax, eax
cmp ecx, 1
movzx esi, byte [0xbbbe23]
seta al
mov edx, eax
xor edx, 3
lea eax, [edx + eax*2]
bt esi, eax
jae 0x7f5c67
jmp 0x7f5d2c
xor eax, eax
cmp ecx, 1
movzx esi, byte [0xbbbe23]
seta al
mov ecx, eax
xor ecx, 0x28c11f83
lea edx, [ecx + eax*2 + 0x20]
mov eax, edx
and al, 7
movzx eax, al
bt esi, eax
jb 0x7f5d00
mov esi, 0xbbbdb0
xor eax, eax
mov ebx, dword [esi]
mov ecx, eax
mov edi, edx
inc eax
shl edi, cl
xor cl, 0x1f
xor ebx, edx
shr edx, cl
mov dword [esi], ebx
or edx, edi
not ebx
add esi, 4
imul edx, ebx
cmp eax, 0x1c
jne 0x7f5cb6
mov eax, fcn.007b04d0
xor ecx, ecx
mov dl, 1
imul eax, eax
and eax, 3
cmp eax, 1
seta cl
mov eax, ecx
xor eax, 3
lea ecx, [eax + ecx*2]
shl dl, cl
or byte [0xbbbe23], dl
mov edi, dword [esp + 0x14]
mov eax, fcn.007b04d0
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 1
seta cl
mov eax, ecx
xor eax, 3
lea ecx, [eax + ecx*2]
mov al, 0xfe
xor cl, 7
rol al, cl
and byte [0xbbbe23], al
mov ebx, dword [esp + 8]
mov esi, dword [esp + 4]
or ebp, 2
mov dword [esi + 0x18], ebp
mov eax, dword [ebx + 0x34]
lea ecx, [eax + 1]
push dword [esp + 0x18]
push ecx
mov ebx, dword [esp + 0x18]
push ebx
push eax
push 0xbbbd90
push edi
push 0xbbbdb0
push dword [esp + 0x1c]
call fcn.00802190
add esp, 0x20
mov ecx, esi
mov edx, ebx
call fcn.00780810
mov eax, dword [esp + 0xc]
mov dword [esi + 0x18], eax
mov esi, dword [esp]
mov ecx, esi
call fcn.007f7590
mov ebp, dword [esp + 0x20]
test eax, eax
je 0x7f5df1
mov ecx, esi
mov ebx, eax
call fcn.007fcfa0
mov edi, eax
mov ecx, ebx
mov edx, 0x5d
push 2
push eax
push ebp
call fcn.007d10f0
add esp, 0xc
mov ecx, ebx
mov edx, ebp
call fcn.0078e0d0
mov ecx, ebx
mov edx, 0x52
push 0xfffffffffffffffe
push edi
call fcn.007d10d0
add esp, 8
mov ecx, ebx
call fcn.007fdcb0
add eax, 2
mov ecx, ebx
mov edx, 0x30
push eax
push edi
call fcn.007d10d0
add esp, 8
mov ecx, ebx
mov edx, 0x5e
push 3
push 2
push ebp
call fcn.007d10f0
add esp, 0xc
mov ecx, esi
mov edx, edi
call fcn.007fc440
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.00989fe9
mov ecx, esi
mov edx, ebp
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.0083b040