Function at 0x498b74
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x111c0
call 0x4e92e0
push esi
push edi
lea eax, [esp + 0x740]
call fcn.004979b9
lea eax, [esp + 0x38]
call fcn.00498795
push 0
push dword [ebx + 4]
xor edi, edi
push dword [ebx]
inc edi
mov dword [esp + 0x24], edi
call str.j_fh8_G
add esp, 0xc
push 0x470d94
push dword [ebp + 8]
call 0x4d9dcc
pop ecx
pop ecx
test eax, eax
lea eax, [esp + 0xba8]
push eax
push dword [ebp + 8]
mov esi, ebx
jne 0x498c9b
call fcn.004990a8
test eax, eax
je 0x498be6
push 6
pop eax
jmp 0x498f32
lea eax, [esp + 0x320]
push eax
lea eax, [esp + 0xfc4]
push eax
lea eax, [esp + 0xdc0]
push eax
lea eax, [esp + 0x2c]
push eax
push dword [ebp + 0xc]
call 0x4da69e
add esp, 0x14
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x534]
push eax
call 0x4d81f7
lea eax, [esp + 0xdc0]
push eax
lea eax, [esp + 0x53c]
push eax
call 0x4d81c6
lea eax, [esp + 0x330]
push eax
lea eax, [esp + 0xfd4]
push eax
lea eax, [esp + 0xdd0]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0xbc8]
push eax
call 0x4da69e
add esp, 0x24
lea eax, [esp + 0xfc0]
push eax
lea eax, [esp + 0x534]
push eax
call 0x4d81c6
lea eax, [esp + 0x328]
push eax
lea eax, [esp + 0x53c]
push eax
call 0x4d81c6
lea eax, [esp + 0x540]
add esp, 0x10
mov dword [ebp + 0xc], eax
jmp 0x498ca8
call fcn.004990a8
test eax, eax
jne 0x498bde
push dword [ebx]
lea eax, [esp + 0xf]
push edi
push edi
push eax
call 0x4db994
push dword [ebx]
lea eax, [esp + 0x24]
push edi
push 4
pop esi
push esi
push eax
call 0x4db994
push dword [ebx]
mov edi, dword [esp + 0x34]
push 1
lea eax, [esp + 0x38]
push esi
xor edi, 0x87bc
push eax
mov dword [esp + 0x44], edi
call 0x4db994
push dword [ebx]
lea eax, [esp + 0x44]
push 1
push esi
push eax
call 0x4db994
mov eax, dword [esp + 0x50]
add esp, 0x40
push dword [ebx]
xor eax, 0xa685
push 1
mov dword [esp + 0x28], eax
lea eax, [esp + 0x34]
push esi
push eax
call 0x4db994
push dword [ebx]
lea eax, [esp + 0x3c]
push 1
push esi
push eax
call 0x4db994
push dword [ebx]
lea eax, [esp + 0x58]
push 1
push esi
push eax
call 0x4db994
push dword [ebx]
lea eax, [esp + 0x64]
push 1
push esi
push eax
call 0x4db994
add esp, 0x40
lea eax, [esp + 0x320]
push eax
push 0x104
call dword [0x46b238]
lea eax, [esp + 0x110]
push eax
push 0
push 0x470d8c
lea eax, [esp + 0x32c]
push eax
call dword [0x46b23c]
lea eax, [esp + 0x110]
push 0x470d98
push eax
call 0x4db652
pop ecx
pop ecx
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x498d95
push 9
jmp 0x498be0
mov eax, dword [ebx + 8]
add eax, 0x2477
push eax
lea esi, [esp + 0x3c]
call fcn.004988d0
xor esi, esi
mov dword [esp + 0xc], esi
cmp edi, esi
jle 0x498e43
jmp 0x498dbb
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
add eax, 0x10000
cmp eax, edi
jle 0x498dd0
mov esi, edi
sub esi, dword [esp + 0xc]
jmp 0x498dd5
mov esi, 0x10000
push dword [ebx]
add dword [esp + 0x10], esi
push esi
lea eax, [esp + 0x11d0]
push 1
push eax
call 0x4db994
add esp, 0x10
xor edi, edi
test esi, esi
jle 0x498e0a
lea eax, [esp + 0x38]
push eax
call fcn.004988a0
xor byte [esp + edi + 0x11c8], al
inc edi
cmp edi, esi
jl 0x498df4
push esi
lea eax, [esp + 0x11cc]
push eax
lea edi, [esp + 0x20]
call fcn.00497965
push dword [esp + 0x1c]
lea eax, [esp + 0x11cc]
push esi
push 1
push eax
call str.j_fh0G
mov eax, dword [esp + 0x1c]
add esp, 0x10
cmp eax, dword [esp + 0x14]
jl 0x498db7
xor esi, esi
push dword [esp + 0x1c]
call 0x4db6d6
mov eax, dword [esp + 0x1c]
pop ecx
cmp dword [esp + 0x20], eax
je 0x498e6f
push 0xa
pop esi
lea eax, [esp + 0x110]
push eax
call dword [0x46b1cc]
mov eax, esi
jmp 0x498f32
cmp byte [esp + 0xb], 1
jne 0x498ecc
lea eax, [esp + 0x740]
call fcn.004979b9
lea eax, [esp + 0x110]
push eax
lea eax, [esp + 0x768]
push eax
mov dword [esp + 0x75c], esi
mov dword [esp + 0x760], esi
call 0x4d81f7
push dword [ebp + 0xc]
lea eax, [esp + 0x97a]
push eax
call 0x4d81f7
add esp, 0x10
lea eax, [esp + 0x740]
call fcn.004979e9
test eax, eax
je 0x498ee9
push 0xb
jmp 0x498e59
push esi
push dword [ebp + 0xc]
lea eax, [esp + 0x118]
push eax
call dword [0x46b1dc]
test eax, eax
jne 0x498ee9
push 7
jmp 0x498e59
lea eax, [esp + 0x110]
push eax
call dword [0x46b1cc]
push esi
push 0x80
push 3
push esi
push 1
push 0x40000000
push dword [ebp + 0xc]
call dword [0x46b198]
mov edi, eax
cmp edi, 0xffffffff
je 0x498f30
lea eax, [esp + 0x30]
push eax
push esi
lea eax, [esp + 0x30]
push eax
push edi
call dword [0x46b1bc]
push edi
call dword [fcn.0046b304]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8