Function at 0x422710
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, 0x6d579926
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x2c], esi
mov eax, dword [0x497f44]
shl eax, 0xa
imul eax, eax, 0x73b343d4
or eax, 0xa96ef27f
cmp edi, eax
jg 0x4227b4
mov eax, 0x942361da
mov ecx, dword [0x4a926c]
shl ecx, 2
mov dx, word [0x4ab2a4]
mov si, dx
inc esi
mov di, si
mov word [0x4ab2a4], di
movsx esi, dx
or ecx, esi
mov esi, dword [0x49af74]
or ecx, esi
cmp eax, ecx
je 0x4227af
mov eax, dword [0x4a3fec]
dec eax
mov dword [0x4a3fec], eax
xor eax, 0x9f163122
mov ecx, dword [0x4a0c78]
imul ecx, eax
mov dword [0x4a0c78], ecx
jmp 0x4227b4
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov eax, dword [0x49ce60]
and eax, 0xc52ea2fe
mov dword [0x49ce60], eax
mov cx, word [0x4ad5aa]
mov ax, cx
and eax, 0x5d6b
mov cx, ax
mov word [0x4ad5aa], cx
cmp dword [esp + 0x2c], 0
jle 0x422af2
mov eax, dword [0x49ce84]
add eax, 0xf79cd385
cmp eax, 0x91fc2a90
jle 0x422820
mov eax, dword [0x4978f8]
add eax, 0xdeedb52e
mov dword [0x4978f8], eax
jmp 0x422875
mov eax, 0xa689d200
mov ecx, dword [0x499180]
dec ecx
mov dword [0x499180], ecx
or ecx, 0xf6bdf7e2
cmp eax, ecx
jle 0x422870
mov eax, 0xc4e54424
mov ecx, dword [0x4981b8]
dec ecx
mov dword [0x4981b8], ecx
and ecx, 0x96c3b0b2
and ecx, 0x6d2a623e
cmp eax, ecx
jne 0x42286b
jmp 0x42286b
jmp 0x422870
jmp 0x422875
mov eax, 0x404162dd
mov cx, word [0x4b1b5e]
movsx edx, cx
xor edx, 0xffffffff
and edx, 0x144a8cee
xor edx, 0xcc611243
cmp eax, edx
jge 0x4228aa
mov eax, dword [0x49e120]
or eax, 0xf7ff1f7b
mov dword [0x49e120], eax
mov eax, dword [0x49bf88]
and eax, 0x80005409
mov dword [0x49bf88], eax
mov cx, word [0x4adcce]
mov ax, cx
mov edx, eax
inc edx
mov cx, dx
mov word [0x4adcce], cx
mov cx, word [0x4ad8a4]
mov dx, cx
and edx, eax
mov cx, dx
mov word [0x4ad8a4], cx
mov eax, dword [esp + 0x30]
mov edx, eax
add edx, 4
mov dword [esp + 0x30], edx
mov eax, dword [eax]
mov edx, dword [esp + 0x38]
mul edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], eax
mov dword [0x49b95c], 0x2d9c90aa
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], eax
mov eax, dword [0x49e874]
mov edx, eax
inc edx
mov dword [0x49e874], edx
mov edx, dword [0x49c86c]
not edx
and eax, edx
mov edx, dword [0x498f44]
or edx, eax
mov dword [0x498f44], edx
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x10], eax
mov eax, dword [0x4a1574]
and eax, 0x872ac9a1
mov dword [0x4a1574], eax
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x14]
add edx, eax
mov dword [esp + 0x14], edx
mov eax, dword [0x4a8378]
mov cx, word [0x4ad47c]
mov dx, cx
not edx
sub eax, edx
and eax, 0xcd3b
mov cx, word [0x4b0722]
mov dx, cx
xor edx, eax
mov cx, dx
mov word [0x4b0722], cx
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x28]
sub eax, edx
mov edx, dword [esp + 0x10]
adc edx, 0
mov dword [esp + 0x10], edx
mov edx, dword [0x49bf50]
and edx, 0xd7b5a24d
mov dword [0x49bf50], edx
mov edx, dword [esp + 0x34]
mov edx, dword [edx]
mov esi, dword [esp + 0x14]
add esi, edx
mov dword [esp + 0x14], esi
mov edx, dword [0x4a5204]
add edx, 0xe2ec96
mov dword [0x4a5204], edx
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x34]
mov esi, dword [esi]
sub edx, esi
mov esi, dword [esp + 0x10]
adc esi, 0
mov dword [esp + 0x10], esi
mov esi, dword [0x49e778]
add esi, 0xf07dc1fb
mov dword [0x49e778], esi
mov esi, dword [esp + 0x10]
mov dword [esp + 0x28], esi
mov esi, dword [0x4a0e98]
mov edi, esi
dec edi
mov dword [0x4a0e98], edi
add esi, 0xe3449706
mov cx, word [0x4adec4]
mov di, cx
inc edi
mov bx, di
mov word [0x4adec4], bx
movsx edi, cx
and esi, edi
cmp esi, 0xc100e80c
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
jg 0x422a5a
mov eax, dword [0x4a22e4]
add eax, 0x33c9275e
mov dword [0x4a22e4], eax
mov eax, 0xeeffbf7b
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x34]
mov esi, edx
add esi, 4
mov dword [esp + 0x34], esi
mov dword [edx], ecx
mov ecx, dword [0x4a811c]
and ecx, 0x52ef5064
cmp eax, ecx
je 0x422aaf
mov eax, dword [0x4a1994]
mov ecx, dword [0x4a300c]
shl ecx, 9
add ecx, 0x2fbe4325
or eax, ecx
mov ecx, dword [0x4a31d8]
sub ecx, eax
mov dword [0x4a31d8], ecx
jmp 0x422ad3
mov eax, dword [0x49c558]
shl eax, 6
add eax, 0x438831ad
mov cx, word [0x4b27cc]
mov dx, cx
imul edx, eax
mov cx, dx
mov word [0x4b27cc], cx
mov eax, dword [0x49ffec]
or eax, 0xfddeee78
mov dword [0x49ffec], eax
mov eax, dword [esp + 0x2c]
add eax, 0xffffffff
mov dword [esp + 0x2c], eax
jmp 0x4227ec
mov eax, 0x3f302b6a
mov ecx, dword [0x4a6ea4]
xor ecx, 0xffffffff
xor ecx, 0x3e8b5712
cmp eax, ecx
jge 0x422b1d
mov eax, dword [0x4a262c]
add eax, 0x81524231
mov dword [0x4a262c], eax
mov eax, dword [esp + 0x24]
inc eax
mov dword [esp + 0x24], eax
mov eax, dword [0x49c038]
mov ecx, eax
inc ecx
mov dword [0x49c038], ecx
add eax, 0x6cb836be
mov dx, ax
mov word [0x4b41a6], dx
mov ax, word [0x4b1182]
mov cx, ax
xor ecx, 0x5ffc
mov ax, cx
mov word [0x4b1182], ax
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x34]
mov esi, dword [edx]
add esi, ecx
mov dword [edx], esi
mov ax, word [0x4b2fea]
mov cx, ax
xor ecx, 0x8914
mov ax, cx
mov word [0x4b2fea], ax
mov ecx, dword [esp + 0x34]
mov ecx, dword [ecx]
mov edx, dword [esp + 0x28]
sub ecx, edx
sbb edx, edx
and edx, 1
mov dword [esp + 0x28], edx
mov edx, dword [0x498db0]
mov esi, edx
dec esi
mov dword [0x498db0], esi
or edx, 0xe388be
mov esi, dword [0x4a81bc]
sub esi, edx
mov dword [0x4a81bc], esi
mov edx, dword [esp + 0x34]
add edx, 4
mov dword [esp + 0x34], edx
mov edx, dword [0x49ee74]
add edx, 0x9000c6
mov dword [0x49ee74], edx
mov dword [esp + 4], ecx
cmp dword [esp + 0x28], 0
jne 0x422b43
mov eax, dword [0x49c914]
mov ecx, eax
inc ecx
mov dword [0x49c914], ecx
xor eax, 0xf47c
mov dx, word [0x4b1e86]
mov cx, dx
sub ecx, eax
mov dx, cx
mov word [0x4b1e86], dx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret