Function at 0x4717f9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x10ba0
call 0x4b1f10
push esi
push edi
lea eax, [esp + 0x320]
call fcn.00470651
lea eax, [esp + 0x38]
call fcn.00471415
push 0
push dword [ebx + 4]
xor edi, edi
push dword [ebx]
inc edi
mov dword [esp + 0x28], edi
call 0x4affa3
add esp, 0xc
lea eax, [esp + 0x998]
push eax
push dword [ebp + 8]
mov esi, ebx
call fcn.00471c56
test eax, eax
je 0x471854
push 6
pop eax
jmp 0x471ade
push dword [ebx]
lea eax, [esp + 0x13]
push edi
push edi
push eax
call 0x4b05fe
push dword [ebx]
lea eax, [esp + 0x28]
push edi
push 4
pop esi
push esi
push eax
call 0x4b05fe
push dword [ebx]
mov edi, dword [esp + 0x38]
push 1
lea eax, [esp + 0x3c]
push esi
xor edi, 0x87bc
push eax
mov dword [esp + 0x48], edi
call 0x4b05fe
push dword [ebx]
lea eax, [esp + 0x48]
push 1
push esi
push eax
call 0x4b05fe
mov eax, dword [esp + 0x54]
add esp, 0x40
push dword [ebx]
xor eax, 0xa685
push 1
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x3c]
push esi
push eax
call 0x4b05fe
push dword [ebx]
lea eax, [esp + 0x44]
push 1
push esi
push eax
call 0x4b05fe
push dword [ebx]
lea eax, [esp + 0x50]
push 1
push esi
push eax
call 0x4b05fe
push dword [ebx]
lea eax, [esp + 0x5c]
push 1
push esi
push eax
call 0x4b05fe
add esp, 0x40
lea eax, [esp + 0x788]
push eax
push 0x104
call dword [0x466184]
lea eax, [esp + 0x110]
push eax
push 0
push 0x46c4d8
lea eax, [esp + 0x794]
push eax
call dword [0x466188]
lea eax, [esp + 0x110]
push 0x46c4e0
push eax
call 0x4aff09
test eax, eax
pop ecx
pop ecx
mov dword [esp + 0x20], eax
jne 0x471941
push 9
jmp 0x47184e
mov eax, dword [ebx + 8]
add eax, 0x2477
push eax
lea esi, [esp + 0x3c]
call fcn.00471555
xor esi, esi
cmp edi, esi
mov dword [esp + 0x10], esi
jle 0x4719ef
jmp 0x471967
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
add eax, 0x10000
cmp eax, edi
jle 0x47197c
mov esi, edi
sub esi, dword [esp + 0x10]
jmp 0x471981
mov esi, 0x10000
push dword [ebx]
add dword [esp + 0x14], esi
push esi
lea eax, [esp + 0xbb0]
push 1
push eax
call 0x4b05fe
add esp, 0x10
xor edi, edi
test esi, esi
jle 0x4719b6
lea eax, [esp + 0x38]
push eax
call fcn.00471527
xor byte [esp + edi + 0xba8], al
inc edi
cmp edi, esi
jl 0x4719a0
push esi
lea eax, [esp + 0xbac]
push eax
lea edi, [esp + 0x24]
call fcn.004705fd
push dword [esp + 0x20]
lea eax, [esp + 0xbac]
push esi
push 1
push eax
call 0x4b01f2
mov eax, dword [esp + 0x20]
add esp, 0x10
cmp eax, dword [esp + 0x18]
jl 0x471963
xor esi, esi
push dword [esp + 0x20]
call 0x4b02e6
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x28], eax
pop ecx
je 0x471a1b
push 0xa
pop esi
lea eax, [esp + 0x110]
push eax
call dword [0x46615c]
mov eax, esi
jmp 0x471ade
cmp byte [esp + 0xf], 1
jne 0x471a78
lea eax, [esp + 0x320]
call fcn.00470651
lea eax, [esp + 0x110]
push eax
lea eax, [esp + 0x348]
push eax
mov dword [esp + 0x33c], esi
mov dword [esp + 0x340], esi
call 0x4ac9b8
push dword [ebp + 0xc]
lea eax, [esp + 0x55a]
push eax
call 0x4ac9b8
add esp, 0x10
lea eax, [esp + 0x320]
call fcn.0047067f
test eax, eax
je 0x471a95
push 0xb
jmp 0x471a05
push esi
push dword [ebp + 0xc]
lea eax, [esp + 0x118]
push eax
call dword [0x46611c]
test eax, eax
jne 0x471a95
push 7
jmp 0x471a05
lea eax, [esp + 0x110]
push eax
call dword [0x46615c]
push esi
push 0x80
push 3
push esi
push 1
push 0x40000000
push dword [ebp + 0xc]
call dword [0x4661d4]
mov edi, eax
cmp edi, 0xffffffff
je 0x471adc
lea eax, [esp + 0x28]
push eax
push esi
lea eax, [esp + 0x38]
push eax
push edi
call dword [0x466138]
push edi
call dword [0x4662c8]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8