Function at 0x7c1060
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x58
mov eax, dword [0xbd33e0]
mov esi, edx
mov ebx, ecx
xor eax, ebp
mov dword [esp + 0x50], eax
cmp byte [edx + 0x4f], 0
jne 0x7c12ce
mov edx, 0x7d2680
mov eax, 0x7d2680
movzx ecx, byte [str.L_4_f]
and edx, 1
xor edx, eax
cmp edx, 0xffffffff
sete al
not al
add al, 0x90
and al, 7
movzx eax, al
bt ecx, eax
jb 0x7c12b3
mov al, byte [str.L_4_f]
cmp edx, 0xffffffff
mov ah, 1
sete cl
not cl
add cl, 0x90
and cl, 7
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [str.L_4_f], ah
jne 0x7c10b8
mov ecx, 0x7d2680
mov edx, 0x7d2680
movzx eax, al
and ecx, 1
xor ecx, edx
cmp ecx, 0xffffffff
sete dl
not dl
add dl, 0x90
and dl, 7
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x7c1124
cmp ecx, 0xffffffff
movzx edx, byte [str.L_4_f]
sete al
not al
add al, 0x90
and al, 7
movzx eax, al
bt edx, eax
jae 0x7c1104
jmp 0x7c12b3
cmp ecx, 0xffffffff
movzx ecx, byte [str.L_4_f]
sete al
not al
add al, 0x90
and al, 7
movzx eax, al
bt ecx, eax
jb 0x7c1289
mov edx, 0x7d2680
mov eax, 0x7d2680
xor ecx, ecx
and edx, 1
xor edx, eax
mov eax, dword [0xbb6600]
cmp edx, 0xffffffff
sete cl
xor ecx, 0x10578527
or ecx, 0x90
xor eax, ecx
mov dword [0xbb6600], eax
not eax
mov edx, dword [0xbb6604]
imul eax, ecx
and cl, 7
lea edi, [eax + eax]
xor edx, eax
shr eax, 0x1e
mov dword [0xbb6604], edx
or eax, edi
not edx
imul edx, eax
mov eax, dword [0xbb6608]
lea edi, [edx*4]
xor eax, edx
shr edx, 0x1d
mov dword [0xbb6608], eax
or edx, edi
not eax
imul eax, edx
mov edx, dword [0xbb660c]
lea edi, [eax*8]
xor edx, eax
shr eax, 0x1c
mov dword [0xbb660c], edx
or eax, edi
not edx
imul edx, eax
mov eax, dword [0xbb6610]
mov edi, edx
shl edi, 4
xor eax, edx
shr edx, 0x1b
mov dword [0xbb6610], eax
or edx, edi
not eax
imul eax, edx
mov edx, dword [0xbb6614]
mov edi, eax
shl edi, 5
xor edx, eax
shr eax, 0x1a
mov dword [0xbb6614], edx
or eax, edi
not edx
imul edx, eax
mov eax, dword [0xbb6618]
mov edi, edx
shl edi, 6
xor eax, edx
shr edx, 0x19
mov dword [0xbb6618], eax
or edx, edi
not eax
imul eax, edx
mov edx, dword [0xbb661c]
mov edi, eax
shl edi, 7
xor edx, eax
shr eax, 0x18
mov dword [0xbb661c], edx
or eax, edi
not edx
imul edx, eax
mov eax, dword [0xbb6620]
mov edi, edx
shl edi, 8
xor eax, edx
shr edx, 0x17
mov dword [0xbb6620], eax
or edx, edi
not eax
imul eax, edx
mov edx, dword [0xbb6624]
mov edi, eax
shl edi, 9
xor edx, eax
shr eax, 0x16
mov dword [0xbb6624], edx
or eax, edi
not edx
imul edx, eax
xor dword [0xbb6628], edx
mov dl, 1
shl dl, cl
or byte [str.L_4_f], dl
mov ecx, 0x7d2680
mov eax, 0x7d2680
and ecx, 1
xor ecx, eax
mov al, 0xfe
cmp ecx, 0xffffffff
sete cl
not cl
add cl, 0x90
and cl, 7
xor cl, 7
rol al, cl
and byte [str.L_4_f], al
mov ecx, ebx
mov edx, esi
push 0xbb6600
call fcn.007c9d60
add esp, 4
mov edi, 1
jmp 0x7c2753
cmp dword [esi + 0xb0], 2
jl 0x7c1506
mov edx, fcn.00792ba0
mov edi, fcn.00792ba0
movzx ecx, byte [0xbb665f]
or edx, 2
xor edi, 2
mov eax, edx
add eax, edi
sete al
or al, 4
movzx eax, al
bt ecx, eax
jb 0x7c14f8
mov al, byte [0xbb665f]
mov ecx, edx
mov ah, 1
add ecx, edi
sete cl
or cl, 4
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb665f], ah
jne 0x7c130c
mov ecx, fcn.00792ba0
mov edx, fcn.00792ba0
or ecx, 2
xor edx, 2
mov edi, ecx
add edi, edx
sete ah
or ah, 4
xor ah, 7
movzx edi, ah
movzx eax, al
bt eax, edi
jae 0x7c136e
mov eax, ecx
movzx edi, byte [0xbb665f]
add eax, edx
sete al
or al, 4
movzx eax, al
bt edi, eax
jae 0x7c1351
jmp 0x7c14f8
add ecx, edx
movzx ecx, byte [0xbb665f]
sete al
or al, 4
movzx eax, al
bt ecx, eax
jb 0x7c14d3
mov eax, fcn.00792ba0
mov edx, fcn.00792ba0
xor ecx, ecx
xor edx, 2
or eax, 2
add eax, edx
mov eax, dword [0xbb6630]
sete cl
or ecx, 0x625a3d24
add ecx, 0x120
mov edx, ecx
xor eax, ecx
shr edx, 0x1f
mov dword [0xbb6630], eax
not eax
or edx, ecx
and cl, 7
imul edx, eax
mov eax, dword [0xbb6634]
lea edi, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbb6634], eax
or edx, edi
not eax
imul eax, edx
mov edx, dword [0xbb6638]
lea edi, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbb6638], edx
or eax, edi
not edx
imul edx, eax
mov eax, dword [0xbb663c]
lea edi, [edx*8]
xor eax, edx
shr edx, 0x1c
mov dword [0xbb663c], eax
or edx, edi
not eax
imul eax, edx
mov edx, dword [0xbb6640]
mov edi, eax
shl edi, 4
xor edx, eax
shr eax, 0x1b
mov dword [0xbb6640], edx
or eax, edi
not edx
imul edx, eax
mov eax, dword [0xbb6644]
mov edi, edx
shl edi, 5
xor eax, edx
shr edx, 0x1a
mov dword [0xbb6644], eax
or edx, edi
not eax
imul eax, edx
mov edx, dword [0xbb6648]
mov edi, eax
shl edi, 6
xor edx, eax
shr eax, 0x19
mov dword [0xbb6648], edx
or eax, edi
not edx
imul edx, eax
mov eax, dword [0xbb664c]
mov edi, edx
shl edi, 7
xor eax, edx
shr edx, 0x18
mov dword [0xbb664c], eax
or edx, edi
not eax
imul eax, edx
mov edx, dword [0xbb6650]
mov edi, eax
shl edi, 8
xor edx, eax
shr eax, 0x17
mov dword [0xbb6650], edx
or eax, edi
not edx
imul edx, eax
mov eax, dword [0xbb6654]
mov edi, edx
shl edi, 9
xor eax, edx
shr edx, 0x16
mov dword [0xbb6654], eax
or edx, edi
not eax
imul eax, edx
mov dl, 1
xor dword [0xbb6658], eax
shl dl, cl
or byte [0xbb665f], dl
mov eax, fcn.00792ba0
mov ecx, fcn.00792ba0
xor ecx, 2
or eax, 2
add eax, ecx
mov al, 0xfe
sete cl
or cl, 4
xor cl, 7
rol al, cl
and byte [0xbb665f], al
mov ecx, ebx
mov edx, esi
push 0xbb6630
jmp 0x7c12bc
mov edi, dword [ebp + 0xc]
mov eax, dword [esi + 0x3c]
test edi, edi
mov dword [esp + 8], eax
jne 0x7c1525
mov dword [esp + 0x14], ebx
mov dword [esp + 0xc], 0xc26b98
jmp 0x7c16ff
push edi
call fcn.00789490
add esp, 4
cmp eax, 3
je 0x7c16e2
mov edx, fcn.00800500
mov eax, fcn.00800500
movzx edi, byte [0xbb6677]
and edx, 1
xor edx, eax
xor eax, eax
cmp edx, 0xffffffff
sete al
mov ecx, eax
xor ecx, 3
lea eax, [ecx + eax*2]
bt edi, eax
jb 0x7c16d4
mov al, byte [0xbb6677]
mov edi, ebx
xor ecx, ecx
cmp edx, 0xffffffff
mov ah, 1
sete cl
mov ebx, ecx
xor ebx, 3
lea ecx, [ebx + ecx*2]
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb6677], ah
jne 0x7c156d
mov ecx, fcn.00800500
mov edx, fcn.00800500
movzx eax, al
and ecx, 1
xor ecx, edx
xor edx, edx
cmp ecx, 0xffffffff
sete dl
mov ebx, edx
xor ebx, 3
lea edx, [ebx + edx*2]
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x7c15e0
mov ebx, edi
xor eax, eax
cmp ecx, 0xffffffff
movzx edi, byte [0xbb6677]
sete al
mov edx, eax
xor edx, 3
lea eax, [edx + eax*2]
bt edi, eax
jae 0x7c15bf
jmp 0x7c16d4
xor eax, eax
cmp ecx, 0xffffffff
movzx edx, byte [0xbb6677]
mov ebx, edi
sete al
mov ecx, eax
xor ecx, 3
lea eax, [ecx + eax*2]
bt edx, eax
jb 0x7c16a8
mov ecx, fcn.00800500
mov eax, fcn.00800500
and ecx, 1
xor ecx, eax
xor eax, eax
cmp ecx, 0xffffffff
sete al
mov ecx, eax
xor ecx, 0x98dc49f3
lea ecx, [ecx + eax*2 + 0xc08]
mov eax, dword [0xbb6660]
mov edx, ecx
shr edx, 0x1f
or edx, ecx
xor eax, ecx
and cl, 7
mov dword [0xbb6660], eax
not eax
imul edx, eax
mov eax, dword [0xbb6664]
lea edi, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbb6664], eax
or edx, edi
not eax
imul eax, edx
mov edx, dword [0xbb6668]
lea edi, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbb6668], edx
or eax, edi
not edx
imul edx, eax
mov eax, dword [0xbb666c]
lea edi, [edx*8]
xor eax, edx
shr edx, 0x1c
mov dword [0xbb666c], eax
or edx, edi
not eax
imul eax, edx
mov dl, 1
xor dword [0xbb6670], eax
shl dl, cl
or byte [0xbb6677], dl
mov ecx, fcn.00800500
mov eax, fcn.00800500
and ecx, 1
xor ecx, eax
xor eax, eax
cmp ecx, 0xffffffff
sete al
mov ecx, eax
xor ecx, 3
lea ecx, [ecx + eax*2]
mov al, 0xfe
xor cl, 7
rol al, cl
and byte [0xbb6677], al
mov ecx, ebx
mov edx, esi
push 0xbb6660
jmp 0x7c12bc
mov dword [esp + 0x14], ebx
push edi
call fcn.007892b0
add esp, 4
mov ecx, dword [esi + 0x3c]
mov dword [esp + 0xc], eax
and ecx, 0xfffffff8
or ecx, 6
mov dword [esi + 0x3c], ecx
mov edx, fcn.007d1810
mov ebx, fcn.007d1810
movzx ecx, byte [0xbb669b]
or edx, 2
xor ebx, 2
mov eax, edx
add eax, ebx
sete al
or al, 4
movzx eax, al
bt ecx, eax
jb 0x7c188f
mov al, byte [0xbb669b]
mov ecx, edx
mov ah, 1
add ecx, ebx
sete cl
or cl, 4
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb669b], ah
jne 0x7c1730
mov ecx, fcn.007d1810
mov edx, fcn.007d1810
or ecx, 2
xor edx, 2
mov ebx, ecx
add ebx, edx
sete ah
or ah, 4
xor ah, 7
movzx ebx, ah
movzx eax, al
bt eax, ebx
jae 0x7c1792
mov eax, ecx
movzx ebx, byte [0xbb669b]
add eax, edx
sete al
or al, 4
movzx eax, al
bt ebx, eax
jae 0x7c1775
jmp 0x7c188f
add ecx, edx
movzx ecx, byte [0xbb669b]
sete al
or al, 4
movzx eax, al
bt ecx, eax
jb 0x7c186a
mov eax, dword [0xbb6680]
mov edx, fcn.007d1810
mov ebx, fcn.007d1810
xor ecx, ecx
xor ebx, 2
or edx, 2
add edx, ebx
sete cl
mov edx, eax
xor edx, ecx
or ecx, 0xe06ea924
xor eax, ecx
xor edx, 0x1f9156db
and cl, 5
mov dword [0xbb6680], eax
imul eax, edx, 0xe06ea925
mov edx, dword [0xbb6684]
lea ebx, [eax + eax]
xor edx, eax
shr eax, 0x1e
mov dword [0xbb6684], edx
or ebx, eax
not edx
mov eax, dword [0xbb6688]
imul edx, ebx
lea ebx, [edx*4]
xor eax, edx
shr edx, 0x1d
mov dword [0xbb6688], eax
or ebx, edx
not eax
mov edx, dword [0xbb668c]
imul eax, ebx
lea ebx, [eax*8]
xor edx, eax
shr eax, 0x1c
mov dword [0xbb668c], edx
or ebx, eax
not edx
mov eax, dword [0xbb6690]
imul edx, ebx
mov ebx, edx
shl ebx, 4
xor eax, edx
shr edx, 0x1b
mov dword [0xbb6690], eax
or edx, ebx
not eax
imul eax, edx
mov dl, 1
xor dword [0xbb6694], eax
shl dl, cl
or byte [0xbb669b], dl
mov eax, fcn.007d1810
mov ecx, fcn.007d1810
xor ecx, 2
or eax, 2
add eax, ecx
mov al, 0xfe
sete cl
or cl, 4
xor cl, 7
rol al, cl
and byte [0xbb669b], al
mov bl, byte [esi + 0x58]
mov ecx, dword [esi + 0x18]
mov edi, dword [esi + 0x24]
mov edx, dword [esi + 0x20]
mov eax, dword [esi + 0x10]
mov byte [esp + 0x1b], bl
mov ebx, dword [esi + 0x64]
mov dword [esp + 0x34], ecx
or ecx, 6
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edx
mov dword [esp + 0x2c], ebx
mov ebx, dword [esi + 0x68]
mov dword [esi + 0x18], ecx
mov ecx, edi
mov edi, dword [ebp + 8]
and ecx, 0xfffffffe
mov dword [esi + 0x24], ecx
mov ecx, edx
and ecx, 0xefffadfe
or ecx, 0x201
shl edi, 4
mov dword [esp + 0x30], ebx
mov dword [esi + 0x20], ecx
mov byte [esi + 0x58], 0
mov ecx, dword [eax + edi]
mov dword [esp + 0x1c], ecx
mov ecx, dword [eax + edi + 4]
mov dword [esp + 4], ecx
call fcn.00780670
mov ecx, eax
call fcn.007ab1a0
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x14]
mov dword [esp + 0x28], eax
push dword [esp + 0xc]
push 0xbb6680
mov ebx, dword [esp + 0x1c]
push ebx
push esi
call fcn.007cf550
add esp, 0x10
mov edx, dword [esp + 8]
mov ecx, eax
test ecx, ecx
mov dword [esi + 0x3c], edx
je 0x7c193e
mov eax, ecx
mov ecx, dword [esp + 4]
xor ebx, ebx
mov edi, eax
jmp 0x7c26ec
mov ecx, dword [esp + 0x28]
mov eax, dword [esi + 0x10]
mov dword [esp + 0xc], edi
shl ecx, 4
cmp dword [ebp + 0xc], 0
mov edi, dword [eax + ecx + 4]
lea edx, [eax + ecx]
mov dword [esp + 8], edx
je 0x7c19a9
mov ecx, edi
call fcn.00780670
mov ecx, eax
call fcn.00788360
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], 0
cmp dword [eax], 0
je 0x7c19a5
lea edx, [esp + 0x48]
mov ecx, eax
call fcn.007a5380
test eax, eax
jne 0x7c1a7c
mov eax, dword [esp + 0x48]
xor ecx, ecx
neg eax
sbb ecx, dword [esp + 0x4c]
jl 0x7c1a7c
or byte [esi + 0x18], 8
mov ecx, dword [esp + 4]
call fcn.007ab170
cmp dword [esi + 0x5c], 0
mov dword [esp + 0x24], eax
je 0x7c19dd
sub esp, 0x10
lea eax, [esp + 0x54]
mov dword [esp + 0xc], eax
call fcn.00798f00
add esp, 0x10
cmp dword [esp + 0x44], 0
je 0x7c19dd
mov dword [esi + 0x5c], 0
mov edx, fcn.007887e0
mov ebx, fcn.007887e0
movzx ecx, byte [0xbb66cb]
or edx, 2
xor ebx, 2
mov eax, edx
add eax, ebx
sete al
not al
and al, 7
movzx eax, al
bt ecx, eax
jb 0x7c1ce8
mov al, byte [0xbb66cb]
mov ecx, edx
mov ah, 1
add ecx, ebx
sete cl
not cl
and cl, 7
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb66cb], ah
jne 0x7c1a10
mov ecx, fcn.007887e0
mov edx, fcn.007887e0
or ecx, 2
xor edx, 2
mov ebx, ecx
add ebx, edx
sete ah
not ah
and ah, 7
xor ah, 7
movzx ebx, ah
movzx eax, al
bt eax, ebx
jae 0x7c1c5b
mov eax, ecx
movzx ebx, byte [0xbb66cb]
add eax, edx
sete al
not al
and al, 7
movzx eax, al
bt ebx, eax
jae 0x7c1a5d
jmp 0x7c1ce8
mov edx, fcn.00780820
xor eax, eax
movzx edi, byte [0xbb66bf]
imul edx, edx
and edx, 3
cmp edx, 1
seta al
mov ecx, eax
xor ecx, 5
lea eax, [ecx + eax*2]
bt edi, eax
jb 0x7c1c40
mov al, byte [0xbb66bf]
mov edi, ebx
xor ecx, ecx
cmp edx, 1
mov ah, 1
seta cl
mov ebx, ecx
xor ebx, 5
lea ecx, [ebx + ecx*2]
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb66bf], ah
jne 0x7c1aae
mov ecx, fcn.00780820
xor edx, edx
movzx eax, al
imul ecx, ecx
and ecx, 3
cmp ecx, 1
seta dl
mov ebx, edx
xor ebx, 5
lea edx, [ebx + edx*2]
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x7c1b1d
mov ebx, edi
xor eax, eax
cmp ecx, 1
movzx edi, byte [0xbb66bf]
seta al
mov edx, eax
xor edx, 5
lea eax, [edx + eax*2]
bt edi, eax
jae 0x7c1afc
jmp 0x7c1c40
xor eax, eax
cmp ecx, 1
movzx edx, byte [0xbb66bf]
mov ebx, edi
seta al
mov ecx, eax
xor ecx, 5
lea eax, [ecx + eax*2]
bt edx, eax
jb 0x7c1c18
mov eax, fcn.00780820
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 1
seta cl
mov eax, ecx
xor eax, 0x4967111d
lea ecx, [eax + ecx*2 + 0xd80]
mov eax, dword [0xbb66a0]
mov edx, ecx
shr edx, 0x1f
or edx, ecx
xor eax, ecx
and cl, 7
mov dword [0xbb66a0], eax
not eax
imul edx, eax
mov eax, dword [0xbb66a4]
lea edi, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbb66a4], eax
or edi, edx
not eax
mov edx, dword [0xbb66a8]
imul eax, edi
lea edi, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbb66a8], edx
or edi, eax
not edx
mov eax, dword [0xbb66ac]
imul edx, edi
lea edi, [edx*8]
xor eax, edx
shr edx, 0x1c
mov dword [0xbb66ac], eax
or edi, edx
not eax
mov edx, dword [0xbb66b0]
imul eax, edi
mov edi, eax
shl edi, 4
xor edx, eax
shr eax, 0x1b
mov dword [0xbb66b0], edx
or eax, edi
not edx
imul edx, eax
mov eax, dword [0xbb66b4]
mov edi, edx
shl edi, 5
xor eax, edx
shr edx, 0x1a
mov dword [0xbb66b4], eax
or edx, edi
not eax
imul eax, edx
mov dl, 1
xor dword [0xbb66b8], eax
shl dl, cl
or byte [0xbb66bf], dl
mov eax, fcn.00780820
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 1
seta cl
mov eax, ecx
xor eax, 5
lea ecx, [eax + ecx*2]
mov al, 0xfe
xor cl, 7
rol al, cl
and byte [0xbb66bf], al
mov ecx, ebx
mov edx, esi
push 0xbb66a0
call fcn.007c9d60
add esp, 4
mov edi, 1
jmp 0x7c1fb2
add ecx, edx
movzx ecx, byte [0xbb66cb]
sete al
not al
and al, 7
movzx eax, al
bt ecx, eax
jb 0x7c1cc1
mov eax, fcn.007887e0
mov edx, fcn.007887e0
xor ecx, ecx
xor edx, 2
or eax, 2
add eax, edx
mov eax, dword [0xbb66c0]
sete cl
xor ecx, 0x4e69d227
add ecx, 0xb00
mov edx, ecx
xor eax, ecx
shr edx, 0x1f
mov dword [0xbb66c0], eax
not eax
or edx, ecx
and cl, 7
imul edx, eax
xor dword [0xbb66c4], edx
mov dl, 1
shl dl, cl
or byte [0xbb66cb], dl
mov eax, fcn.007887e0
mov ecx, fcn.007887e0
xor ecx, 2
or eax, 2
add eax, ecx
mov al, 0xfe
sete cl
not cl
and cl, 7
xor cl, 7
rol al, cl
and byte [0xbb66cb], al
mov eax, dword [esi + 0x10]
mov ecx, dword [esp + 0xc]
mov eax, dword [eax + ecx + 0xc]
mov ecx, edi
mov edx, dword [eax + 0x50]
call fcn.007c9d90
mov ebx, esi
mov esi, dword [esp + 4]
xor edx, edx
mov ecx, esi
call fcn.007cf5c0
mov ecx, edi
mov edx, eax
call fcn.007cf5c0
mov ecx, edi
mov edx, 0x21
call fcn.007cf5f0
mov edx, dword [esp + 0x14]
mov dword [esp + 0x10], ebx
mov ecx, ebx
push 0xbb66c0
call fcn.007cf620
add esp, 4
test eax, eax
je 0x7c1d49
mov ebx, dword [esp + 8]
mov edi, eax
mov ecx, esi
jmp 0x7c26e8
xor edx, edx
cmp dword [ebp + 0xc], 0
mov dword [esp + 0xc], edi
mov ecx, esi
sete dl
add edx, edx
push 0
call fcn.00787cb0
add esp, 4
test eax, eax
jne 0x7c1d3c
mov ecx, esi
call fcn.00780670
mov ecx, eax
call fcn.00787f40
mov esi, dword [esp + 0x10]
cmp eax, 5
jne 0x7c1d86
mov dword [esi + 0x5c], 0
mov ecx, dword [esp + 4]
call fcn.00787f30
mov ecx, dword [esp + 0xc]
mov edx, eax
push 0
mov ebx, dword [esp + 0x28]
push ebx
call fcn.00798540
add esp, 8
test eax, eax
mov eax, dword [esp + 0x20]
mov edi, 7
je 0x7c1dbe
mov ebx, dword [esp + 8]
mov ecx, dword [esp + 4]
jmp 0x7c26ec
mov ecx, dword [esp + 4]
test eax, eax
jne 0x7c1de9
mov ecx, dword [esp + 0xc]
mov edx, dword [esi + 0x5c]
push 0
push ebx
call fcn.00798540
mov ecx, dword [esp + 0xc]
add esp, 8
test eax, eax
je 0x7c1de9
mov ebx, dword [esp + 8]
jmp 0x7c26ec
cmp byte [esi + 0x51], 0
je 0x7c1df8
mov ebx, dword [esp + 8]
jmp 0x7c26ec
movsx eax, byte [esi + 0x54]
test eax, eax
jns 0x7c1e05
call fcn.007cf9c0
mov edi, 0x7a2ee0
mov dword [esp + 0x20], eax
xor eax, eax
not edi
movzx edx, byte [0xbb6743]
mov ebx, dword [esp + 0x14]
and edi, 1
mov ecx, edi
add ecx, 0x7a2ee0
sete al
mov ecx, eax
xor ecx, 1
lea eax, [ecx + eax*2]
or al, 4
movzx eax, al
bt edx, eax
jb 0x7c1f82
mov al, byte [0xbb6743]
mov ebx, edi
xor ecx, ecx
mov ah, 1
add ebx, 0x7a2ee0
sete cl
mov ebx, ecx
xor ebx, 1
lea ecx, [ebx + ecx*2]
or cl, 4
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb6743], ah
jne 0x7c1e46
mov ecx, 0x7a2ee0
xor edx, edx
movzx eax, al
not ecx
and ecx, 1
mov edi, ecx
add edi, 0x7a2ee0
sete dl
mov ebx, edx
xor ebx, 1
lea edx, [ebx + edx*2]
or dl, 4
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x7c1ed0
mov ebx, dword [esp + 0x14]
mov edx, ecx
xor eax, eax
movzx edi, byte [0xbb6743]
add edx, 0x7a2ee0
sete al
mov edx, eax
xor edx, 1
lea eax, [edx + eax*2]
or al, 4
movzx eax, al
bt edi, eax
jae 0x7c1ea5
jmp 0x7c1f82
xor eax, eax
add ecx, 0x7a2ee0
movzx edx, byte [0xbb6743]
sete al
mov ecx, eax
xor ecx, 0xad538dc1
lea ebx, [ecx + eax*2 + 0x474]
mov eax, ebx
and al, 7
movzx eax, al
bt edx, eax
jb 0x7c1f52
mov edi, 0xbb66d0
xor eax, eax
mov edx, dword [edi]
mov ecx, eax
mov esi, ebx
inc eax
shl esi, cl
xor cl, 0x1f
xor edx, ebx
shr ebx, cl
mov dword [edi], edx
or ebx, esi
not edx
add edi, 4
imul ebx, edx
cmp eax, 0x1c
jne 0x7c1f04
mov eax, 0x7a2ee0
xor ecx, ecx
not eax
and eax, 1
add eax, 0x7a2ee0
sete cl
mov eax, ecx
xor eax, 1
lea ecx, [eax + ecx*2]
mov al, 1
or cl, 4
shl al, cl
or byte [0xbb6743], al
mov esi, dword [esp + 0x10]
mov eax, 0x7a2ee0
xor ecx, ecx
not eax
and eax, 1
add eax, 0x7a2ee0
sete cl
mov eax, ecx
xor eax, 1
lea ecx, [eax + ecx*2]
mov al, 0xfe
or cl, 4
xor cl, 7
rol al, cl
and byte [0xbb6743], al
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x20]
call fcn.007cf970
mov eax, dword [esp + 0x28]
mov byte [esi + 0xa4], al
push dword [esp + 0x1c]
push 0xbb66d0
push ebx
push esi
call fcn.007cf550
add esp, 0x10
test eax, eax
je 0x7c1fbf
mov edi, eax
mov ecx, dword [esp + 4]
mov ebx, dword [esp + 8]
jmp 0x7c26ec
mov edx, fcn.00789c30
mov edi, fcn.00789c30
xor eax, eax
movzx ebx, byte [0xbb678b]
or edx, 2
xor edi, 2
mov ecx, edx
add ecx, edi
sete al
mov ecx, eax
not ecx
lea eax, [eax + ecx*2]
and al, 3
movzx eax, al
bt ebx, eax
jb 0x7c2267
mov al, byte [0xbb678b]
mov ebx, edx
xor ecx, ecx
mov ah, 1
add ebx, edi
sete cl
mov ebx, ecx
not ebx
lea ecx, [ecx + ebx*2]
and cl, 3
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb678b], ah
jne 0x7c1ff9
mov ecx, fcn.00789c30
mov edx, fcn.00789c30
xor ebx, ebx
movzx eax, al
or ecx, 2
xor edx, 2
mov edi, ecx
add edi, edx
sete bl
mov edi, ebx
not ebx
lea ebx, [edi + ebx*2]
and bl, 3
xor bl, 7
movzx edi, bl
bt eax, edi
jae 0x7c2076
mov edi, ecx
xor eax, eax
add edi, edx
movzx edi, byte [0xbb678b]
sete al
mov ebx, eax
not ebx
lea eax, [eax + ebx*2]
and al, 3
movzx eax, al
bt edi, eax
jae 0x7c2050
jmp 0x7c2267
xor eax, eax
add ecx, edx
movzx edx, byte [0xbb678b]
sete al
mov ecx, eax
not ecx
lea eax, [eax + ecx*2]
and al, 3
movzx eax, al
bt edx, eax
jb 0x7c2239
mov ecx, fcn.00789c30
mov edx, fcn.00789c30
xor eax, eax
xor edx, 2
or ecx, 2
add ecx, edx
sete al
mov ecx, eax
not ecx
and ecx, 0x405
lea ecx, [eax + ecx*2 + 0x3ad84b70]
mov eax, dword [0xbb6750]
xor eax, ecx
mov dword [0xbb6750], eax
not eax
mov edx, dword [0xbb6754]
imul eax, ecx
and cl, 7
lea edi, [eax + eax]
xor edx, eax
shr eax, 0x1e
mov dword [0xbb6754], edx
or edi, eax
not edx
mov eax, dword [0xbb6758]
imul edx, edi
lea edi, [edx*4]
xor eax, edx
shr edx, 0x1d
mov dword [0xbb6758], eax
or edi, edx
not eax
mov edx, dword [0xbb675c]
imul eax, edi
lea edi, [eax*8]
xor edx, eax
shr eax, 0x1c
mov dword [0xbb675c], edx
or edi, eax
not edx
mov eax, dword [0xbb6760]
imul edx, edi
mov edi, edx
shl edi, 4
xor eax, edx
shr edx, 0x1b
mov dword [0xbb6760], eax
or edx, edi
not eax
imul eax, edx
mov edx, dword [0xbb6764]
mov edi, eax
shl edi, 5
xor edx, eax
shr eax, 0x1a
mov dword [0xbb6764], edx
or eax, edi
not edx
imul edx, eax
mov eax, dword [0xbb6768]
mov edi, edx
shl edi, 6
xor eax, edx
shr edx, 0x19
mov dword [0xbb6768], eax
or edx, edi
not eax
imul eax, edx
mov edx, dword [0xbb676c]
mov edi, eax
shl edi, 7
xor edx, eax
shr eax, 0x18
mov dword [0xbb676c], edx
or eax, edi
not edx
imul edx, eax
mov eax, dword [0xbb6770]
mov edi, edx
shl edi, 8
xor eax, edx
shr edx, 0x17
mov dword [0xbb6770], eax
or edx, edi
not eax
imul eax, edx
mov edx, dword [0xbb6774]
mov edi, eax
shl edi, 9
xor edx, eax
shr eax, 0x16
mov dword [0xbb6774], edx
or eax, edi
not edx
imul edx, eax
mov eax, dword [0xbb6778]
mov edi, edx
shl edi, 0xa
xor eax, edx
shr edx, 0x15
mov dword [0xbb6778], eax
or edx, edi
not eax
imul eax, edx
mov edx, dword [0xbb677c]
mov edi, eax
shl edi, 0xb
xor edx, eax
shr eax, 0x14
mov dword [0xbb677c], edx
or eax, edi
not edx
mov ebx, dword [0xbb6780]
imul edx, eax
mov edi, edx
shl edi, 0xc
xor ebx, edx
shr edx, 0x13
mov dword [0xbb6780], ebx
or edx, edi
not ebx
imul ebx, edx
mov dl, 1
xor dword [0xbb6784], ebx
shl dl, cl
or byte [0xbb678b], dl
mov eax, fcn.00789c30
mov ecx, fcn.00789c30
xor edx, edx
xor ecx, 2
or eax, 2
add eax, ecx
sete dl
mov eax, edx
not eax
lea ecx, [edx + eax*2]
mov al, 0xfe
and cl, 3
xor cl, 7
rol al, cl
and byte [0xbb678b], al
mov ebx, dword [esp + 0x1c]
push ebx
push 0xbb6750
push dword [esp + 0x1c]
push esi
call fcn.007cf550
add esp, 0x10
test eax, eax
jne 0x7c1fb0
mov edx, fcn.00833a30
xor eax, eax
movzx esi, byte [0xbb682b]
and edx, 1
inc edx
mov ecx, edx
xor ecx, fcn.00833a30
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2]
bt esi, eax
jb 0x7c23e2
mov al, byte [0xbb682b]
mov edi, edx
xor ecx, ecx
mov ah, 1
xor edi, fcn.00833a30
sete cl
mov ebx, ecx
xor ebx, 1
lea ecx, [ecx + ebx*2]
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb682b], ah
jne 0x7c22b9
mov ecx, fcn.00833a30
xor edx, edx
movzx eax, al
and ecx, 1
inc ecx
mov edi, ecx
xor edi, fcn.00833a30
sete dl
mov ebx, edx
xor ebx, 1
lea edx, [edx + ebx*2]
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x7c2337
mov ebx, dword [esp + 0x1c]
mov edx, ecx
xor eax, eax
movzx esi, byte [0xbb682b]
xor edx, fcn.00833a30
sete al
mov edx, eax
xor edx, 1
lea eax, [eax + edx*2]
bt esi, eax
jae 0x7c2311
jmp 0x7c23e2
xor eax, eax
xor ecx, fcn.00833a30
movzx esi, byte [0xbb682b]
sete al
mov ecx, eax
not ecx
and ecx, 0x401
lea edx, [eax + ecx*2 + 0x31e15338]
mov eax, edx
and al, 3
movzx eax, al
bt esi, eax
jb 0x7c23b6
mov edi, 0xbb6790
xor eax, eax
mov ebx, dword [edi]
mov ecx, eax
mov esi, edx
inc eax
shl esi, cl
and cl, 0x1f
xor cl, 0x1f
xor ebx, edx
shr edx, cl
mov dword [edi], ebx
or edx, esi
not ebx
add edi, 4
imul edx, ebx
cmp eax, 0x26
jne 0x7c236d
mov eax, fcn.00833a30
xor ecx, ecx
mov dl, 1
and eax, 1
inc eax
xor eax, fcn.00833a30
sete cl
mov eax, ecx
xor eax, 1
lea ecx, [ecx + eax*2]
shl dl, cl
or byte [0xbb682b], dl
mov eax, fcn.00833a30
xor ecx, ecx
and eax, 1
inc eax
xor eax, fcn.00833a30
sete cl
mov eax, ecx
xor eax, 1
lea ecx, [ecx + eax*2]
mov al, 0xfe
xor cl, 7
rol al, cl
and byte [0xbb682b], al
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x10]
mov byte [esi + 0xa4], 0
push ebx
push 0xbb6790
push dword [esp + 0x1c]
push esi
call fcn.007cf550
add esp, 0x10
and byte [esi + 0x18], 0xfb
test eax, eax
je 0x7c2417
mov ebx, dword [esp + 8]
mov ecx, dword [esp + 4]
mov edi, eax
jmp 0x7c26e8
mov edx, fcn.007f7040
movzx ecx, byte [0xbb68b7]
imul edx, edx
and edx, 3
cmp edx, 3
sete al
or al, 4
add al, 0x94
and al, 7
movzx eax, al
bt ecx, eax
jb 0x7c254d
mov al, byte [0xbb68b7]
cmp edx, 3
mov ah, 1
sete cl
or cl, 4
add cl, 0x94
and cl, 7
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb68b7], ah
jne 0x7c2446
mov ecx, fcn.007f7040
movzx eax, al
imul ecx, ecx
and ecx, 3
cmp ecx, 3
sete dl
or dl, 4
add dl, 0x94
and dl, 7
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x7c24b0
cmp ecx, 3
movzx edx, byte [0xbb68b7]
sete al
or al, 4
add al, 0x94
and al, 7
movzx eax, al
bt edx, eax
jae 0x7c2490
jmp 0x7c254d
xor edx, edx
cmp ecx, 3
movzx ecx, byte [0xbb68b7]
sete dl
or edx, 0x940ab424
add edx, 0x1094
mov eax, edx
and al, 7
movzx eax, al
bt ecx, eax
jb 0x7c2526
mov edi, 0xbb6830
xor eax, eax
mov ebx, dword [edi]
mov ecx, eax
mov esi, edx
inc eax
shl esi, cl
and cl, 0x1f
xor cl, 0x1f
xor ebx, edx
shr edx, cl
mov dword [edi], ebx
or edx, esi
not ebx
add edi, 4
imul edx, ebx
cmp eax, 0x21
jne 0x7c24de
mov eax, fcn.007f7040
imul eax, eax
and eax, 3
cmp eax, 3
mov al, 1
sete cl
or cl, 4
add cl, 0x94
and cl, 7
shl al, cl
or byte [0xbb68b7], al
mov eax, fcn.007f7040
imul eax, eax
and eax, 3
cmp eax, 3
mov al, 0xfe
sete cl
or cl, 4
add cl, 0x94
and cl, 7
xor cl, 7
rol al, cl
and byte [0xbb68b7], al
push dword [esp + 0x1c]
push 0xbb6830
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call fcn.007cf550
add esp, 0x10
test eax, eax
je 0x7c2575
mov ecx, dword [esp + 4]
mov edi, eax
jmp 0x7c26e4
mov ecx, dword [esp + 4]
lea ebx, [esp + 0x40]
mov edx, 1
push ebx
call fcn.007bcae0
add esp, 4
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0xc]
mov edx, 1
inc eax
push eax
call fcn.00788220
add esp, 4
test eax, eax
jne 0x7c256a
mov ecx, dword [esp + 4]
mov edx, 3
push ebx
call fcn.007bcae0
add esp, 4
mov ecx, dword [esp + 0xc]
mov edx, 3
push dword [esp + 0x40]
call fcn.00788220
add esp, 4
test eax, eax
jne 0x7c256a
mov ecx, dword [esp + 4]
mov edx, 5
push ebx
call fcn.007bcae0
add esp, 4
mov ecx, dword [esp + 0xc]
mov edx, 5
push dword [esp + 0x40]
call fcn.00788220
add esp, 4
test eax, eax
jne 0x7c256a
mov ecx, dword [esp + 4]
mov edx, 6
push ebx
call fcn.007bcae0
add esp, 4
mov ecx, dword [esp + 0xc]
mov edx, 6
push dword [esp + 0x40]
call fcn.00788220
add esp, 4
test eax, eax
jne 0x7c256a
mov ecx, dword [esp + 4]
mov edx, 8
push ebx
call fcn.007bcae0
add esp, 4
mov ecx, dword [esp + 0xc]
mov edx, 8
push dword [esp + 0x40]
call fcn.00788220
add esp, 4
test eax, eax
jne 0x7c256a
cmp dword [ebp + 0xc], 0
jne 0x7c2679
mov ecx, dword [esp + 4]
mov edx, dword [esp + 0xc]
call fcn.007cf9f0
test eax, eax
jne 0x7c256a
cmp dword [ebp + 0xc], 0
mov ecx, dword [esp + 0xc]
setne bl
call fcn.007c9dc0
xor ecx, ecx
test eax, eax
mov edi, eax
setne cl
add ecx, ecx
test eax, eax
jne 0x7c26b2
test bl, bl
jne 0x7c26b2
mov ecx, dword [esp + 0xc]
call fcn.007cf9c0
mov ecx, dword [esp + 4]
mov edx, eax
call fcn.007cf970
xor ecx, ecx
test ecx, ecx
setne al
or al, bl
je 0x7c26c1
mov ecx, dword [esp + 4]
jmp 0x7c26e4
mov ecx, dword [esp + 0xc]
call fcn.00787f30
mov edi, dword [esp + 4]
mov edx, eax
mov ecx, edi
push 1
push dword [esp + 0x28]
call fcn.00798540
mov ecx, edi
add esp, 8
mov edi, eax
mov ebx, dword [esp + 8]
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x34]
mov byte [esi + 0xa4], 0
mov edx, 0xffffffff
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0x3c]
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x38]
mov dword [esi + 0x24], eax
mov eax, dword [esp + 0x2c]
mov dword [esi + 0x64], eax
mov eax, dword [esp + 0x30]
mov dword [esi + 0x68], eax
mov al, byte [esp + 0x1b]
mov byte [esi + 0x58], al
push 1
push 0xffffffffffffffff
call fcn.00798540
add esp, 8
test ebx, ebx
mov byte [esi + 0x4f], 1
je 0x7c274c
mov ecx, dword [ebx + 4]
call fcn.007aec30
mov dword [ebx + 4], 0
mov dword [ebx + 0xc], 0
mov ecx, esi
call fcn.00788280
mov ecx, dword [esp + 0x50]
xor ecx, ebp
call fcn.00989fe9
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret