Function at 0x7e9430
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [0xbcbae0]
xor eax, esp
mov dword [esp + 0x28], eax
cmp dword [ecx + 0x24], 0
jne 0x7e96f7
mov eax, dword [ecx]
cmp byte [eax + 0x51], 0
jne 0x7e96f7
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.007825f0
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.0078bd40
add esp, 4
mov ecx, dword [esp]
mov edx, 0x1a
push 0
push dword [eax]
push ebp
call fcn.007f4a50
add esp, 0xc
test eax, eax
jne 0x7e96f7
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 0x7e970a
mov edx, 0x787060
movzx ecx, byte [0xbb4327]
not edx
and edx, 1
mov eax, edx
add eax, 0x787060
sete al
not al
and al, 3
movzx eax, al
bt ecx, eax
jb 0x7e96e6
mov al, byte [0xbb4327]
mov ecx, edx
mov ah, 1
add ecx, 0x787060
sete cl
not cl
and cl, 3
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb4327], ah
jne 0x7e951f
mov ecx, 0x787060
movzx eax, al
not ecx
and ecx, 1
mov edx, ecx
add edx, 0x787060
sete dl
not dl
and dl, 3
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x7e958c
mov eax, ecx
movzx edx, byte [0xbb4327]
add eax, 0x787060
sete al
not al
and al, 3
movzx eax, al
bt edx, eax
jae 0x7e956a
jmp 0x7e96e6
add ecx, 0x787060
movzx ecx, byte [0xbb4327]
sete al
not al
and al, 3
movzx eax, al
bt ecx, eax
jb 0x7e96c2
mov eax, 0x787060
xor ecx, ecx
not eax
and eax, 1
add eax, 0x787060
mov eax, dword [0xbb4300]
sete cl
xor ecx, 0x410b8a8b
add ecx, 0x8a8
mov edx, ecx
xor eax, ecx
shr edx, 0x1f
mov dword [0xbb4300], eax
not eax
or edx, ecx
and cl, 7
imul edx, eax
mov eax, dword [0xbb4304]
lea esi, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbb4304], eax
or edx, esi
not eax
imul eax, edx
mov edx, dword [0xbb4308]
lea esi, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbb4308], edx
or eax, esi
not edx
mov edi, dword [0xbb430c]
imul edx, eax
lea esi, [edx*8]
xor edi, edx
shr edx, 0x1c
mov dword [0xbb430c], edi
or edx, esi
not edi
imul edi, edx
mov edx, dword [0xbb4310]
mov esi, edi
shl esi, 4
xor edx, edi
shr edi, 0x1b
mov dword [0xbb4310], edx
or edi, esi
not edx
mov ebx, dword [0xbb4314]
imul edx, edi
mov esi, edx
shl esi, 5
xor ebx, edx
shr edx, 0x1a
mov dword [0xbb4314], ebx
or edx, esi
not ebx
imul ebx, edx
mov edx, dword [0xbb4318]
mov esi, ebx
shl esi, 6
xor edx, ebx
shr ebx, 0x19
mov dword [0xbb4318], edx
or ebx, esi
not edx
mov edi, dword [0xbb431c]
imul edx, ebx
mov esi, edx
shl esi, 7
xor edi, edx
shr edx, 0x18
mov dword [0xbb431c], edi
or edx, esi
not edi
imul edi, edx
mov dl, 1
xor dword [0xbb4320], edi
shl dl, cl
or byte [0xbb4327], dl
mov eax, 0x787060
not eax
and eax, 1
add eax, 0x787060
mov al, 0xfe
sete cl
not cl
and cl, 3
xor cl, 7
rol al, cl
and byte [0xbb4327], al
push 0xbb4300
push dword [esp + 4]
call fcn.00782570
add esp, 8
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.00980459
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebx, dword [esp + 8]
cmp dword [ebx + 8], 0
je 0x7e98ac
mov edx, fcn.00801890
movzx ecx, byte [0xbb434f]
xor eax, eax
imul edx, edx
and edx, 3
cmp edx, 3
sete al
bt ecx, eax
jb 0x7e98a2
mov al, byte [0xbb434f]
cmp edx, 3
mov ah, 1
sete cl
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb434f], ah
jne 0x7e9740
mov ecx, fcn.00801890
movzx eax, al
imul ecx, ecx
and ecx, 3
cmp ecx, 3
sete dl
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x7e9791
movzx edx, byte [0xbb434f]
xor eax, eax
cmp ecx, 3
sete al
bt edx, eax
jae 0x7e9778
jmp 0x7e98a2
movzx edx, byte [0xbb434f]
xor eax, eax
cmp ecx, 3
sete al
bt edx, eax
jb 0x7e9884
mov eax, fcn.00801890
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 3
mov eax, dword [0xbb4330]
sete cl
or ecx, 0x83580e88
add ecx, 0x228
mov edx, ecx
xor eax, ecx
shr edx, 0x1f
mov dword [0xbb4330], eax
not eax
or edx, ecx
and cl, 7
imul edx, eax
mov eax, dword [0xbb4334]
lea esi, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbb4334], eax
or edx, esi
not eax
imul eax, edx
mov edx, dword [0xbb4338]
lea esi, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbb4338], edx
or eax, esi
not edx
mov ebx, dword [0xbb433c]
imul edx, eax
lea esi, [edx*8]
xor ebx, edx
shr edx, 0x1c
mov dword [0xbb433c], ebx
or edx, esi
not ebx
imul ebx, edx
mov edx, dword [0xbb4340]
mov esi, ebx
shl esi, 4
xor edx, ebx
shr ebx, 0x1b
mov dword [0xbb4340], edx
or ebx, esi
not edx
mov edi, dword [0xbb4344]
imul edx, ebx
mov esi, edx
shl esi, 5
xor edi, edx
shr edx, 0x1a
mov dword [0xbb4344], edi
or edx, esi
not edi
imul edi, edx
mov dl, 1
xor dword [0xbb4348], edi
shl dl, cl
or byte [0xbb434f], dl
mov eax, fcn.00801890
imul eax, eax
and eax, 3
cmp eax, 3
mov al, 0xfe
sete cl
xor cl, 7
rol al, cl
and byte [0xbb434f], al
push 0xbb4330
jmp 0x7e96eb
test al, 0x60
jne 0x7e9f87
mov esi, edi
test edx, edx
jne 0x7e98be
xor edx, edx
jmp 0x7e98cb
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 0x7e9a57
test edx, edx
je 0x7e9a57
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x7e9a57
mov edx, fcn.00775420
mov esi, fcn.00775420
xor eax, eax
movzx edi, byte [0xbb438f]
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 0x7e9a4d
mov al, byte [0xbb438f]
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 [0xbb438f], ah
jne 0x7e9926
mov ecx, fcn.00775420
mov edx, fcn.00775420
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 0x7e99a3
mov esi, ecx
xor eax, eax
add esi, edx
movzx esi, byte [0xbb438f]
sete al
mov ebx, eax
not ebx
lea eax, [ebx + eax*2]
and al, 7
movzx eax, al
bt esi, eax
jae 0x7e997d
jmp 0x7e9a4d
xor eax, eax
add ecx, edx
movzx esi, byte [0xbb438f]
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 0x7e9a1f
mov esi, 0xbb4350
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 0x7e99d3
mov eax, fcn.00775420
mov ecx, fcn.00775420
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 [0xbb438f], al
mov eax, fcn.00775420
mov ecx, fcn.00775420
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 [0xbb438f], al
push 0xbb4350
jmp 0x7e96eb
test edx, edx
jne 0x7e9d1e
mov al, byte [ecx + esi*4 + 0xc]
test al, al
je 0x7e9d1e
mov edx, fcn.0078d010
mov esi, fcn.0078d010
xor eax, eax
movzx edi, byte [0xbb43cb]
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 0x7e9d14
mov al, byte [0xbb43cb]
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 [0xbb43cb], ah
jne 0x7e9aa2
mov ecx, fcn.0078d010
mov edx, fcn.0078d010
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 0x7e9b1a
mov esi, ecx
xor eax, eax
add esi, edx
movzx esi, byte [0xbb43cb]
sete al
mov ebx, eax
xor ebx, 1
lea eax, [eax + ebx*2 + 2]
bt esi, eax
jae 0x7e9af7
jmp 0x7e9d14
xor eax, eax
add ecx, edx
movzx edx, byte [0xbb43cb]
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 2]
bt edx, eax
jb 0x7e9ce7
mov ecx, fcn.0078d010
mov edx, fcn.0078d010
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 [0xbb4390]
mov edx, ecx
shr edx, 0x1f
or edx, ecx
xor eax, ecx
and cl, 7
mov dword [0xbb4390], eax
not eax
imul edx, eax
mov eax, dword [0xbb4394]
lea esi, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbb4394], eax
or esi, edx
not eax
mov edx, dword [0xbb4398]
imul eax, esi
lea esi, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbb4398], edx
or esi, eax
not edx
mov eax, dword [0xbb439c]
imul edx, esi
lea esi, [edx*8]
xor eax, edx
shr edx, 0x1c
mov dword [0xbb439c], eax
or esi, edx
not eax
mov edx, dword [0xbb43a0]
imul eax, esi
mov esi, eax
shl esi, 4
xor edx, eax
shr eax, 0x1b
mov dword [0xbb43a0], edx
or eax, esi
not edx
mov ebx, dword [0xbb43a4]
imul edx, eax
mov esi, edx
shl esi, 5
xor ebx, edx
shr edx, 0x1a
mov dword [0xbb43a4], ebx
or edx, esi
not ebx
imul ebx, edx
mov edx, dword [0xbb43a8]
mov esi, ebx
shl esi, 6
xor edx, ebx
shr ebx, 0x19
mov dword [0xbb43a8], edx
or ebx, esi
not edx
mov edi, dword [0xbb43ac]
imul edx, ebx
mov esi, edx
shl esi, 7
xor edi, edx
shr edx, 0x18
mov dword [0xbb43ac], edi
or edx, esi
not edi
imul edi, edx
mov edx, dword [0xbb43b0]
mov esi, edi
shl esi, 8
xor edx, edi
shr edi, 0x17
mov dword [0xbb43b0], edx
or edi, esi
not edx
mov ebx, dword [0xbb43b4]
imul edx, edi
mov esi, edx
shl esi, 9
xor ebx, edx
shr edx, 0x16
mov dword [0xbb43b4], ebx
or edx, esi
not ebx
imul ebx, edx
mov edx, dword [0xbb43b8]
mov esi, ebx
shl esi, 0xa
xor edx, ebx
shr ebx, 0x15
mov dword [0xbb43b8], edx
or ebx, esi
not edx
mov edi, dword [0xbb43bc]
imul edx, ebx
mov esi, edx
shl esi, 0xb
xor edi, edx
shr edx, 0x14
mov dword [0xbb43bc], edi
or edx, esi
not edi
imul edi, edx
mov edx, dword [0xbb43c0]
mov esi, edi
shl esi, 0xc
xor edx, edi
shr edi, 0x13
mov dword [0xbb43c0], edx
or edi, esi
not edx
imul edx, edi
xor dword [0xbb43c4], edx
mov dl, 1
shl dl, cl
or byte [0xbb43cb], dl
mov eax, fcn.0078d010
mov ecx, fcn.0078d010
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 [0xbb43cb], al
push 0xbb4390
jmp 0x7e96eb
test edx, edx
je 0x7ea16b
mov ecx, dword [esp + 4]
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0
push eax
push 0x41
push 1
call fcn.007f1000
add esp, 0xc
test eax, eax
jne 0x7e96f7
mov ecx, dword [esp + 0x24]
test ecx, ecx
jne 0x7ea162
mov edx, 0x777ec0
movzx ecx, byte [0xbb4403]
imul edx, edx
and edx, 3
cmp edx, 2
sete al
or al, 6
movzx eax, al
bt ecx, eax
jb 0x7e9f7d
mov al, byte [0xbb4403]
cmp edx, 2
mov ah, 1
sete cl
or cl, 6
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb4403], ah
jne 0x7e9d82
mov ecx, 0x777ec0
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 0x7e9ddc
cmp ecx, 2
movzx edx, byte [0xbb4403]
sete al
or al, 6
movzx eax, al
bt edx, eax
jae 0x7e9dc0
jmp 0x7e9f7d
cmp ecx, 2
movzx edx, byte [0xbb4403]
sete al
or al, 6
movzx eax, al
bt edx, eax
jb 0x7e9f5c
mov edx, 0x777ec0
mov eax, dword [0xbb43d0]
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 [0xbb43d0], eax
imul edx, ecx
and cl, 7
mov eax, dword [0xbb43d4]
lea esi, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbb43d4], eax
or esi, edx
not eax
mov edx, dword [0xbb43d8]
imul eax, esi
lea esi, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbb43d8], edx
or esi, eax
not edx
mov eax, dword [0xbb43dc]
imul edx, esi
lea esi, [edx*8]
xor eax, edx
shr edx, 0x1c
mov dword [0xbb43dc], eax
or esi, edx
not eax
mov edx, dword [0xbb43e0]
imul eax, esi
mov esi, eax
shl esi, 4
xor edx, eax
shr eax, 0x1b
mov dword [0xbb43e0], edx
or eax, esi
not edx
mov edi, dword [0xbb43e4]
imul edx, eax
mov esi, edx
shl esi, 5
xor edi, edx
shr edx, 0x1a
mov dword [0xbb43e4], edi
or edx, esi
not edi
imul edi, edx
mov edx, dword [0xbb43e8]
mov esi, edi
shl esi, 6
xor edx, edi
shr edi, 0x19
mov dword [0xbb43e8], edx
or edi, esi
not edx
mov ebx, dword [0xbb43ec]
imul edx, edi
mov esi, edx
shl esi, 7
xor ebx, edx
shr edx, 0x18
mov dword [0xbb43ec], ebx
or edx, esi
not ebx
imul ebx, edx
mov edx, dword [0xbb43f0]
mov esi, ebx
shl esi, 8
xor edx, ebx
shr ebx, 0x17
mov dword [0xbb43f0], edx
or ebx, esi
not edx
mov edi, dword [0xbb43f4]
imul edx, ebx
mov esi, edx
shl esi, 9
xor edi, edx
shr edx, 0x16
mov dword [0xbb43f4], edi
or edx, esi
not edi
imul edi, edx
mov edx, dword [0xbb43f8]
mov esi, edi
shl esi, 0xa
xor edx, edi
shr edi, 0x15
mov dword [0xbb43f8], edx
or edi, esi
not edx
imul edx, edi
xor dword [0xbb43fc], edx
mov dl, 1
shl dl, cl
or byte [0xbb4403], dl
mov eax, 0x777ec0
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 [0xbb4403], al
push 0xbb43d0
jmp 0x7e96eb
test al, 0x40
je 0x7ea16b
mov edx, fcn.00775160
xor eax, eax
movzx esi, byte [0xbb442f]
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 0x7ea158
mov al, byte [0xbb442f]
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 [0xbb442f], ah
jne 0x7e9fc0
mov ecx, fcn.00775160
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 0x7ea030
xor eax, eax
cmp ecx, 1
movzx esi, byte [0xbb442f]
seta al
mov edx, eax
xor edx, 1
lea eax, [eax + edx*2 + 2]
bt esi, eax
jae 0x7ea00e
jmp 0x7ea158
xor eax, eax
cmp ecx, 1
movzx edx, byte [0xbb442f]
seta al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 2]
bt edx, eax
jb 0x7ea12f
mov ecx, fcn.00775160
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 [0xbb4410]
mov edx, ecx
shr edx, 0x1f
or edx, ecx
xor eax, ecx
and cl, 7
mov dword [0xbb4410], eax
not eax
imul edx, eax
mov eax, dword [0xbb4414]
lea esi, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbb4414], eax
or esi, edx
not eax
mov edx, dword [0xbb4418]
imul eax, esi
lea esi, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbb4418], edx
or esi, eax
not edx
mov eax, dword [0xbb441c]
imul edx, esi
lea esi, [edx*8]
xor eax, edx
shr edx, 0x1c
mov dword [0xbb441c], eax
or esi, edx
not eax
mov edx, dword [0xbb4420]
imul eax, esi
mov esi, eax
shl esi, 4
xor edx, eax
shr eax, 0x1b
mov dword [0xbb4420], edx
or eax, esi
not edx
mov edi, dword [0xbb4424]
imul edx, eax
mov esi, edx
shl esi, 5
xor edi, edx
shr edx, 0x1a
mov dword [0xbb4424], edi
or edx, esi
not edi
imul edi, edx
mov dl, 1
xor dword [0xbb4428], edi
shl dl, cl
or byte [0xbb442f], dl
mov eax, fcn.00775160
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 [0xbb442f], al
push 0xbb4410
jmp 0x7e96eb
call fcn.0077dcf0
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.007bf5a0
add esp, 8
test eax, eax
je 0x7ea4ee
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 0x7ea1c3
add eax, edx
movzx ecx, byte [eax]
cmp ecx, 0x3b
je 0x7ea1b4
test byte [ecx + 0xb436b8], 1
je 0x7ea1bc
mov byte [eax], 0
dec eax
cmp eax, edx
ja 0x7ea1a3
mov eax, dword [esp + 4]
mov ebp, dword [eax + 0x18]
mov esi, 0x83a490
xor eax, eax
mov dword [esp + 0x10], edx
and esi, 1
movzx edx, byte [0xbb4443]
inc esi
mov ecx, esi
xor ecx, 0x83a490
sete al
mov ecx, eax
not ecx
lea eax, [eax + ecx*2 + 4]
and al, 7
movzx eax, al
bt edx, eax
jb 0x7ea367
mov al, byte [0xbb4443]
mov edx, esi
xor ecx, ecx
xor edx, 0x83a490
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 [0xbb4443], dl
jne 0x7ea1ff
mov ecx, 0x83a490
xor edx, edx
movzx eax, al
and ecx, 1
inc ecx
mov esi, ecx
xor esi, 0x83a490
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 0x7ea288
mov ebx, dword [esp + 8]
mov edx, ecx
xor eax, eax
movzx esi, byte [0xbb4443]
xor edx, 0x83a490
sete al
mov edx, eax
not edx
lea eax, [eax + edx*2 + 4]
and al, 7
movzx eax, al
bt esi, eax
jae 0x7ea25d
jmp 0x7ea367
xor eax, eax
xor ecx, 0x83a490
movzx edx, byte [0xbb4443]
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 0x7ea33c
mov ecx, 0x83a490
xor eax, eax
and ecx, 1
inc ecx
xor ecx, 0x83a490
sete al
mov ecx, eax
not ecx
and ecx, 0x83
lea ecx, [eax + ecx*2 - 0x6b770284]
mov eax, dword [0xbb4430]
mov edx, ecx
shr edx, 0x1f
or edx, ecx
xor eax, ecx
and cl, 7
mov dword [0xbb4430], eax
not eax
imul edx, eax
mov eax, dword [0xbb4434]
lea esi, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbb4434], eax
or esi, edx
not eax
mov edx, dword [0xbb4438]
imul eax, esi
lea esi, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbb4438], edx
or esi, eax
not edx
mov al, 1
imul edx, esi
shl al, cl
xor dword [0xbb443c], edx
or byte [0xbb4443], al
mov eax, 0x83a490
xor ecx, ecx
and eax, 1
inc eax
xor eax, 0x83a490
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 [0xbb4443], al
mov edx, fcn.007a4bd0
xor eax, eax
movzx esi, byte [0xbb44c3]
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 0x7ea4ac
mov al, byte [0xbb44c3]
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 [0xbb44c3], ah
jne 0x7ea397
mov ecx, fcn.007a4bd0
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 0x7ea408
mov ebx, dword [esp + 8]
xor eax, eax
cmp ecx, 1
movzx esi, byte [0xbb44c3]
seta al
mov edx, eax
xor edx, 3
lea eax, [edx + eax*2]
bt esi, eax
jae 0x7ea3e7
jmp 0x7ea4ac
xor eax, eax
cmp ecx, 1
movzx esi, byte [0xbb44c3]
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 0x7ea480
mov esi, 0xbb4450
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 0x7ea436
mov eax, fcn.007a4bd0
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 [0xbb44c3], dl
mov edi, dword [esp + 0x14]
mov eax, fcn.007a4bd0
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 [0xbb44c3], 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 0xbb4430
push edi
push 0xbb4450
push dword [esp + 0x1c]
call fcn.007f6930
add esp, 0x20
mov ecx, esi
mov edx, ebx
call fcn.00774f10
mov eax, dword [esp + 0xc]
mov dword [esi + 0x18], eax
mov esi, dword [esp]
mov ecx, esi
call fcn.007ebd10
mov ebp, dword [esp + 0x20]
test eax, eax
je 0x7ea571
mov ecx, esi
mov ebx, eax
call fcn.007f1720
mov edi, eax
mov ecx, ebx
mov edx, 0x5d
push 2
push eax
push ebp
call fcn.007c5800
add esp, 0xc
mov ecx, ebx
mov edx, ebp
call fcn.007827e0
mov ecx, ebx
mov edx, 0x52
push 0xfffffffffffffffe
push edi
call fcn.007c57e0
add esp, 8
mov ecx, ebx
call fcn.007f2430
add eax, 2
mov ecx, ebx
mov edx, 0x30
push eax
push edi
call fcn.007c57e0
add esp, 8
mov ecx, ebx
mov edx, 0x5e
push 3
push 2
push ebp
call fcn.007c5800
add esp, 0xc
mov ecx, esi
mov edx, edi
call fcn.007f0bc0
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.00980459
mov ecx, esi
mov edx, ebp
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.0082f7e0