Function at 0x492a00
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x7c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x8c]
push edi
xor edx, edx
mov eax, dword [esi + 0x814]
push 0x4c
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], edx
mov ecx, dword [eax + 0x10]
mov eax, dword [esp + 0x98]
mov dword [esp + 0x1c], edx
and eax, 0x7fffffff
push edx
lea edx, [esp + 0x48]
push eax
push edx
push ecx
mov dword [esp + 0x30], 0xffffffff
mov dword [esp + 0x28], ecx
mov dword [esp + 0x34], eax
call fcn.00487fc0
add esp, 0x14
test eax, eax
je 0x4932d9
mov edi, 0x52cb8c
lea eax, [esp + 0x40]
mov dl, byte [eax]
mov bl, byte [edi]
mov cl, dl
cmp dl, bl
jne 0x492a8c
test cl, cl
je 0x492a88
mov dl, byte [eax + 1]
mov bl, byte [edi + 1]
mov cl, dl
cmp dl, bl
jne 0x492a8c
add eax, 2
add edi, 2
test cl, cl
jne 0x492a64
xor eax, eax
jmp 0x492a91
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x492acf
mov edi, 0x52cb88
lea eax, [esp + 0x40]
mov dl, byte [eax]
mov bl, byte [edi]
mov cl, dl
cmp dl, bl
jne 0x492ac6
test cl, cl
je 0x492ac2
mov dl, byte [eax + 1]
mov bl, byte [edi + 1]
mov cl, dl
cmp dl, bl
jne 0x492ac6
add eax, 2
add edi, 2
test cl, cl
jne 0x492a9e
xor eax, eax
jmp 0x492acb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x492ad9
mov dword [esi + 0x89a0], 1
lea eax, [esp + 0x40]
push 0x48
push eax
call fcn.0048ed50
mov ecx, dword [esp + 0x90]
add esp, 8
cmp eax, ecx
jne 0x4932d9
mov eax, dword [esp + 0x64]
test ah, 0x20
je 0x492b0a
mov dword [esi + 0x8974], 1
mov ecx, dword [esp + 0x54]
cmp ecx, 0x100
mov dword [esi + 0x8b8], ecx
jbe 0x492b24
and eax, 0xfff
shl eax, 0xe
mov ecx, dword [esp + 0x94]
mov dword [esp + 0x10], eax
mov dword [esi + 0x8d4], eax
push ecx
cdq
and edx, 0x7ff
add eax, edx
lea edx, [esp + 0x44]
sar eax, 0xb
push edx
push esi
mov dword [esi + 0x8d8], eax
call fcn.0048fb70
add esp, 0xc
test eax, eax
je 0x4932d9
mov eax, dword [esp + 0x94]
lea ecx, [esp + 0x40]
push eax
push ecx
push esi
call fcn.00490fa0
add esp, 0xc
test eax, eax
je 0x4932d9
mov edx, dword [esp + 0x94]
lea eax, [esp + 0x40]
push edx
push eax
push esi
call fcn.004913a0
add esp, 0xc
test eax, eax
je 0x4932d9
mov edi, 0x52cb84
lea eax, [esp + 0x40]
mov dl, byte [eax]
mov bl, byte [edi]
mov cl, dl
cmp dl, bl
jne 0x492bcb
test cl, cl
je 0x492bc7
mov dl, byte [eax + 1]
mov bl, byte [edi + 1]
mov cl, dl
cmp dl, bl
jne 0x492bcb
add eax, 2
add edi, 2
test cl, cl
jne 0x492ba3
xor eax, eax
jmp 0x492bd0
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x492c4c
mov edi, 0x52cb8c
lea eax, [esp + 0x40]
mov dl, byte [eax]
mov bl, byte [edi]
mov cl, dl
cmp dl, bl
jne 0x492c05
test cl, cl
je 0x492c01
mov dl, byte [eax + 1]
mov bl, byte [edi + 1]
mov cl, dl
cmp dl, bl
jne 0x492c05
add eax, 2
add edi, 2
test cl, cl
jne 0x492bdd
xor eax, eax
jmp 0x492c0a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x492c4c
mov edi, 0x52cb88
lea eax, [esp + 0x40]
mov dl, byte [eax]
mov bl, byte [edi]
mov cl, dl
cmp dl, bl
jne 0x492c3f
test cl, cl
je 0x492c3b
mov dl, byte [eax + 1]
mov bl, byte [edi + 1]
mov cl, dl
cmp dl, bl
jne 0x492c3f
add eax, 2
add edi, 2
test cl, cl
jne 0x492c17
xor eax, eax
jmp 0x492c44
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4932d9
mov eax, dword [esp + 0x50]
cmp eax, 0x4c
jb 0x4932d9
cmp dword [esp + 0x5c], 1
jne 0x4932d9
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x38]
add ecx, eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x68]
push edx
xor edi, edi
push eax
push ecx
mov dword [esp + 0x40], edi
call fcn.00486460
mov edx, dword [esp + 0x80]
lea eax, [esi + 0x808]
push eax
mov eax, dword [esp + 0x80]
push edx
push eax
call fcn.00486460
mov ebx, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
add esp, 0x18
push edi
push 0x800
push ebx
push ecx
call fcn.004b73f0
mov dword [esi + 0x8dc], eax
mov eax, dword [esp + 0x54]
cmp eax, 0x100
jne 0x492cdd
cmp dword [esp + 0x10], 0x10000
jne 0x4932d9
jmp 0x492d4a
cmp eax, 0x110
jne 0x4932cb
mov eax, dword [esp + 0x7d]
mov edx, dword [esp + 0x78]
and eax, 0xff
and edx, 0xff
mov ecx, eax
mov dword [esi + 0x8c4], edx
and ecx, 7
shr eax, 3
mov dword [esi + 0x8944], ecx
mov dword [esi + 0x8940], eax
je 0x492d20
add eax, 0xa
mov dword [esi + 0x8940], eax
cmp dword [esi + 0x8940], edi
jne 0x492d4a
mov edx, dword [esp + 0x10]
mov dword [esi + 0x8940], edi
lea eax, [edx - 1]
cmp eax, edi
je 0x492d4a
mov edx, dword [esi + 0x8940]
inc edx
shr eax, 1
mov dword [esi + 0x8940], edx
jne 0x492d39
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x38]
mov ecx, eax
xor edi, edi
add ecx, edx
mov edx, edi
adc edx, ebx
sub ecx, 1
sbb edx, edi
push edi
push eax
push edx
push ecx
mov dword [esi + 0x8938], edi
call fcn.004b73f0
mov ecx, dword [esp + 0x38]
mov ebp, eax
mov eax, dword [esp + 0x10]
push edi
push eax
push ebx
push ecx
mov dword [esi + 0x8cc], ebp
call fcn.004b74e0
mov ecx, eax
or ecx, edx
je 0x492d97
mov dword [esi + 0x8d0], eax
jmp 0x492da1
mov edx, dword [esp + 0x10]
mov dword [esi + 0x8d0], edx
cmp dword [esi + 0x8b8], 0x100
jne 0x492dfa
lea eax, [ebp + ebp*2]
push eax
mov dword [esi + 0x8e4], eax
call fcn.00487e60
add esp, 4
mov dword [esi + 0x8e0], eax
test eax, eax
je 0x4932d9
mov ecx, dword [esi + 0x8e4]
mov edx, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x1c]
push ecx
push eax
push edx
call fcn.00487fc0
add esp, 0x14
test eax, eax
je 0x4932d9
jmp 0x493244
mov eax, dword [esi + 0x8944]
mov ebx, dword [esi + 0x8940]
add eax, ebx
mov ecx, dword [esp + 0x64]
imul eax, ebp
add eax, 7
shr eax, 3
test ch, 0x40
mov dword [esi + 0x8e4], eax
je 0x492e25
add eax, 0x10000
push eax
call fcn.00487e60
add esp, 4
mov dword [esi + 0x8e0], eax
test eax, eax
je 0x4932d9
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x64]
test eax, 0x80000000
je 0x492e92
mov edi, 1
test ch, 0x40
mov dword [esi + 0x8954], edi
je 0x492e79
mov ebx, dword [esi + 0x808]
mov ebp, dword [esp + 0x79]
xor eax, eax
sub ebx, ebp
mov ebp, dword [esi + 0x80c]
mov dword [esi + 0x8958], edi
sbb ebp, eax
jmp 0x492e9f
mov eax, dword [esi + 0x8e4]
mov ebx, dword [esi + 0x808]
mov ebp, dword [esi + 0x80c]
cdq
sub ebx, eax
sbb ebp, edx
jmp 0x492e9f
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x34]
mov edi, 1
test dword [esp + 0x58], 0x10000000
je 0x492eaf
mov dword [esi + 0x8948], edi
test ecx, 0x20000
je 0x492ebd
mov dword [esi + 0x8950], edi
test ecx, 0x8000000
je 0x492ecb
mov dword [esi + 0x895c], edi
test ecx, 0x80000
je 0x492ed9
mov dword [esi + 0x893c], edi
test ecx, 0x100000
je 0x492eff
mov eax, dword [esp + 0x7e]
lea edx, [esi + 0x8964]
mov dword [esi + 0x8970], edi
mov dword [edx], eax
mov ax, word [esp + 0x82]
mov word [edx + 4], ax
mov edx, dword [esi + 0x89a0]
mov eax, ecx
shr eax, 0x17
and eax, 3
test edx, edx
mov dword [esi + 0x8978], eax
je 0x492f1f
xor eax, edi
mov dword [esi + 0x8978], eax
test ch, 0x40
je 0x492fdd
mov ecx, dword [esp + 0x79]
push ecx
call fcn.00487e70
mov edi, eax
add esp, 4
test edi, edi
mov dword [esp + 0x28], edi
je 0x4932d9
mov edx, dword [esp + 0x79]
mov eax, dword [esp + 0x14]
push edx
push ebp
push ebx
push edi
push eax
call fcn.00487fc0
add esp, 0x14
test eax, eax
je 0x4932d9
mov eax, dword [esi + 0x89a0]
test eax, eax
je 0x492f98
mov eax, dword [esp + 0x79]
xor ecx, ecx
test eax, eax
jle 0x492f98
mov al, cl
mov dl, 0xf9
imul dl
mov dl, byte [ecx + edi]
add dl, al
mov byte [ecx + edi], dl
mov al, dl
mov dl, byte [esp + 0x79]
not dl
xor dl, al
mov byte [ecx + edi], dl
mov eax, dword [esp + 0x79]
inc ecx
cmp ecx, eax
jl 0x492f74
mov eax, dword [esi + 0x8e4]
mov ecx, dword [esp + 0x79]
mov edx, dword [esi + 0x8e0]
add eax, 0x10000
push eax
push ecx
push edx
lea eax, [esi + 0x81c]
push edi
push eax
mov dword [esi + 0x840], 0
call fcn.0048dce0
mov ecx, dword [esi + 0x8e4]
add esp, 0x14
cmp eax, ecx
jne 0x4932d9
jmp 0x493244
mov ecx, dword [esi + 0x8e4]
mov eax, dword [esi + 0x8e0]
push ecx
push ebp
mov ebp, dword [esp + 0x1c]
push ebx
push eax
push ebp
call fcn.00487fc0
add esp, 0x14
test eax, eax
je 0x4932d9
mov eax, dword [esi + 0x895c]
test eax, eax
je 0x49307f
mov eax, dword [esi + 0x89a0]
test eax, eax
je 0x49304b
mov ecx, dword [esp + 0x88]
mov ebx, dword [esi + 0x8e4]
mov edi, dword [esi + 0x8e0]
mov dl, cl
shr ecx, 8
xor eax, eax
test ebx, ebx
jle 0x49307f
mov bl, byte [edi + eax]
add bl, dl
add dl, cl
mov byte [edi + eax], bl
mov ebx, dword [esi + 0x8e4]
inc eax
cmp eax, ebx
jl 0x493034
jmp 0x49307f
mov eax, dword [esi + 0x8dc]
mov ebx, dword [esi + 0x8e4]
mov cl, byte [esi + 0x8dc]
mov edi, dword [esi + 0x8e0]
sar eax, 8
xor edx, edx
test ebx, ebx
jle 0x49307f
mov bl, byte [edi]
sub bl, cl
add cl, al
mov byte [edi], bl
mov ebx, dword [esi + 0x8e4]
inc edx
cmp edx, ebx
jl 0x49306c
mov eax, dword [esi + 0x893c]
test eax, eax
je 0x4931eb
mov ebx, dword [esp + 0x94]
test ebx, 0x80000000
je 0x493170
mov ebp, dword [esp + 0x20]
push ebp
call fcn.00487e70
mov edi, eax
push 0x20000
mov dword [esp + 0x34], edi
call fcn.00487e70
add esp, 8
mov ebx, eax
test edi, edi
mov dword [esp + 0x18], ebx
je 0x4932d9
test ebx, ebx
je 0x4932d9
mov edx, dword [esp + 0x14]
push ebp
push 0
push 0
push edi
push edx
call fcn.00487fc0
add esp, 0x14
test eax, eax
je 0x4932d9
mov eax, dword [edi + 0x10]
mov edx, dword [esp + 0x14]
push 3
push 0
lea ecx, [esp + 0x28]
push eax
push ecx
push edx
call fcn.00487fc0
add esp, 0x14
test eax, eax
je 0x4932d9
mov cl, byte [esp + 0x20]
mov eax, dword [esp + 0x22]
mov edx, dword [esp + 0x21]
and ecx, 0x7f
shl ecx, 8
and eax, 0xff
and edx, 0xff
or ecx, eax
mov eax, dword [edi + 0x28]
shl ecx, 8
or ecx, edx
add eax, 0xffff
shr eax, 0x10
add ecx, 0xfffffffc
push ecx
mov ecx, dword [edi + 0x10]
lea eax, [eax + eax*2]
push ebx
add eax, ecx
lea ecx, [esi + 0x81c]
add eax, edi
push eax
push ecx
call fcn.0048dbf0
add esp, 0x10
test eax, eax
jle 0x4932d9
mov edx, dword [ebx + 0x8b34]
push edx
push ebp
jmp 0x4931a6
push ebx
call fcn.00487e70
mov edi, eax
add esp, 4
test edi, edi
mov dword [esp + 0x18], edi
je 0x4932d9
push ebx
push 0
push 0
push edi
push ebp
call fcn.00487fc0
add esp, 0x14
test eax, eax
je 0x4932d9
mov eax, dword [edi + 0x8b34]
push eax
push ebx
push edi
call fcn.0041f450
mov ecx, dword [esi + 0x8e4]
mov dword [esi + 0x8994], eax
add esp, 0xc
xor eax, eax
test ecx, 0xfffffffc
jle 0x493244
mov ecx, dword [esi + 0x8e0]
mov edx, dword [esi + 0x8994]
add ecx, eax
add eax, 4
mov ebp, dword [ecx]
xor ebp, edx
mov dword [ecx], ebp
mov ecx, dword [esi + 0x8e4]
and ecx, 0xfffffffc
cmp eax, ecx
jl 0x4931c5
jmp 0x493244
mov eax, dword [esi + 0x89a0]
test eax, eax
je 0x493244
mov eax, dword [esi + 0x895c]
test eax, eax
jne 0x493244
mov ecx, dword [esi + 0x8e4]
xor eax, eax
test ecx, ecx
jle 0x493244
mov edx, dword [esi + 0x8e0]
mov bl, byte [edx + eax]
lea ecx, [edx + eax]
mov dl, byte [esp + 0x88]
sub bl, dl
mov byte [ecx], bl
mov ecx, dword [esi + 0x8e0]
mov edx, dword [esi + 0x8e4]
add ecx, eax
sar edx, 2
mov bl, byte [ecx]
xor bl, dl
inc eax
mov byte [ecx], bl
mov ecx, dword [esi + 0x8e4]
cmp eax, ecx
jl 0x49320b
mov eax, dword [esi + 0x8cc]
shl eax, 3
push eax
call fcn.00487e60
mov ecx, eax
add esp, 4
test ecx, ecx
mov dword [esi + 0x8e8], ecx
je 0x4932d9
mov edx, dword [esp + 0x58]
mov eax, dword [esi + 0x8c0]
and edx, 0xffffff
xor ebx, ebx
mov edi, edx
mov ebp, 1
cdq
add edi, eax
adc ebx, edx
mov dword [ecx], edi
mov dword [ecx + 4], ebx
mov eax, dword [esi + 0x8cc]
cmp eax, ebp
jle 0x4932c1
mov eax, dword [esi + 0x8e8]
lea ecx, [ebp - 1]
push ecx
push esi
lea edi, [eax + ebp*8]
call fcn.00492290
mov ecx, dword [edi - 8]
mov ebx, dword [edi - 4]
add esp, 8
xor edx, edx
add eax, ecx
adc edx, ebx
mov dword [edi], eax
mov dword [edi + 4], edx
mov eax, dword [esi + 0x8cc]
inc ebp
cmp ebp, eax
jl 0x49328f
mov dword [esp + 0x1c], 0
jmp 0x4932d9
mov dword [esi + 0x8938], 1
mov dword [esp + 0x1c], edi
mov eax, dword [esp + 0x28]
push eax
call fcn.00487ea0
mov ecx, dword [esp + 0x30]
push ecx
call fcn.00487ea0
mov edx, dword [esp + 0x20]
push edx
call fcn.00487ea0
mov eax, dword [esp + 0x28]
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret