Function at 0x417130
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x3c]
xor ecx, ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], ecx
mov eax, dword [edi]
mov dword [esp + 0x30], ecx
cmp eax, 0x103
mov dword [esp + 0x2c], ecx
je 0x417163
pop edi
pop esi
pop ebp
mov eax, 0xe103
pop ebx
add esp, 0x28
ret
mov ebp, dword [esp + 0x40]
cmp dword [ebp], 0x105
je 0x41717d
pop edi
pop esi
pop ebp
mov eax, 0xe112
pop ebx
add esp, 0x28
ret
cmp dword [ebp + 0x1c], ecx
jne 0x41718f
pop edi
pop esi
pop ebp
mov eax, 0xe112
pop ebx
add esp, 0x28
ret
mov ebx, dword [edi + 4]
mov eax, dword [ebp + 0x28]
lea esi, [ebx + 7]
add ebx, 0x1f
shr esi, 3
shr ebx, 5
cmp eax, ecx
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], ebx
je 0x41750e
mov ebx, dword [esp + 0x4c]
mov edx, dword [ebp + 8]
lea ecx, [esp + 0x10]
push ebx
push ecx
push eax
push edx
call fcn.0041d800
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4175dc
mov ecx, dword [ebp + 0x2c]
mov edx, dword [ebp + 0xc]
lea eax, [esp + 0x18]
push ebx
push eax
push ecx
push edx
call fcn.0041d800
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4175dc
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov eax, dword [eax + 4]
mov esi, dword [ecx + 4]
cmp eax, esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], esi
jbe 0x41720e
mov esi, eax
mov eax, dword [edi + 8]
lea ebp, [esi*4]
test eax, eax
mov dword [esp + 0x34], ebp
mov ebx, ebp
je 0x41724f
mov eax, 0x10
lea ecx, [esi + esi*2]
sub eax, esi
add ebx, ecx
test eax, eax
mov dword [esp + 0x2c], eax
jle 0x41723a
add ebx, eax
jmp 0x417242
mov dword [esp + 0x2c], 0
mov eax, 5
sub eax, ecx
test eax, eax
jle 0x41724f
add ebx, eax
mov edx, dword [esp + 0x4c]
shl ebx, 2
push edx
push ebx
mov dword [esp + 0x1c], ebx
call fcn.0040fd90
mov edi, eax
add esp, 8
test edi, edi
jne 0x417274
mov esi, 0xf001
jmp 0x4175bc
mov eax, dword [esp + 0x4c]
push eax
push ebx
push 0
push edi
call fcn.0040fe30
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x54]
add esi, ecx
mov eax, dword [esp + 0x38]
lea ebx, [edi + esi*4]
mov esi, dword [esp + 0x34]
add ebp, ebx
push ebp
push esi
push edx
push eax
call fcn.00418f70
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x30]
push ecx
push edi
push ebp
push esi
push edx
call fcn.0041e270
mov esi, eax
add esp, 0x34
test esi, esi
jne 0x4175b8
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x417363
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x1c]
lea ecx, [eax + ebp]
add eax, ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], eax
xor eax, eax
test esi, esi
jbe 0x41730e
mov edx, ebp
mov ecx, edi
sub edx, edi
mov esi, dword [esp + 0x40]
add ecx, 4
mov esi, dword [esi + 0x28]
mov esi, dword [esi + eax*4]
xor esi, dword [edx + ecx - 4]
inc eax
mov dword [ecx - 4], esi
mov esi, dword [esp + 0x1c]
cmp eax, esi
jb 0x4172f1
lea ecx, [esi - 1]
cmp ecx, 0x10
jb 0x41732c
lea eax, [edi + ecx*4 - 0x40]
add ecx, 0xfffffff1
mov edx, dword [eax + 0x40]
mov esi, dword [eax]
xor esi, edx
mov dword [eax], esi
sub eax, 4
dec ecx
jne 0x41731d
mov eax, dword [esp + 0x34]
push eax
push edi
call fcn.00419ad0
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x54]
push ecx
mov ecx, dword [esp + 0x3c]
mov eax, dword [edx + 0x10]
push eax
mov eax, dword [esp + 0x50]
push ecx
push eax
mov edx, dword [eax + 0x30]
mov eax, dword [esp + 0x28]
push ebx
push edx
push ebp
push eax
call fcn.00417620
add esp, 0x28
jmp 0x41738c
mov edx, dword [eax + 0x10]
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x40]
push ecx
push edx
push ebx
mov ecx, dword [eax + 0x30]
mov eax, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x2c]
mov edx, dword [eax + 4]
push edx
push ebp
push ecx
push eax
call fcn.0041de80
add esp, 0x20
mov esi, eax
test esi, esi
jne 0x4175b8
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x28]
push ebp
push esi
push edx
push eax
call fcn.00418f70
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x28]
push ecx
push edi
push ebp
push esi
push edx
call fcn.0041e270
mov esi, eax
add esp, 0x24
test esi, esi
jne 0x4175b8
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0x10]
test ecx, ecx
mov ecx, dword [esp + 0x4c]
push ecx
push edx
je 0x4173fa
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x4c]
push eax
push edi
mov ecx, dword [eax + 0x34]
push ecx
push ebp
push edx
call fcn.00417620
jmp 0x417417
mov eax, dword [esp + 0x48]
push edi
mov ecx, dword [eax + 0x34]
mov eax, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x30]
mov edx, dword [eax + 4]
push edx
push ebp
push ecx
push eax
call fcn.0041de80
mov esi, eax
add esp, 0x20
test esi, esi
jne 0x4175b8
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
push edi
push edx
lea esi, [eax + 1]
push ebx
push esi
mov dword [esp + 0x4c], esi
mov dword [ebx + eax*4], 0
call fcn.0041de30
add esp, 0x10
cmp eax, 0xffffffff
jne 0x417475
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x1c]
push ebx
mov ecx, dword [eax + 0x28]
push ecx
push edx
push ebx
push esi
call fcn.0041dc80
mov eax, dword [esp + 0x34]
push edi
push eax
push ebx
push esi
call fcn.0041de30
add esp, 0x24
cmp eax, 0xffffffff
je 0x41744b
mov ecx, dword [esp + 0x20]
push ebx
push edi
push ecx
push ebx
push esi
call fcn.0041dad0
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x54]
push edx
mov edx, dword [esp + 0x28]
mov ecx, dword [eax + 0x38]
push ebp
push ebx
push ecx
push ebx
push edx
call fcn.0041da30
mov esi, eax
add esp, 0x2c
test esi, esi
jne 0x4175b8
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x24]
push ecx
mov dword [ebx + eax*4], esi
mov eax, dword [esp + 0x44]
push ebp
push edx
mov ecx, dword [eax + 0x2c]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x48]
push ecx
push edx
push ebx
push eax
call fcn.0041c130
mov esi, eax
add esp, 0x1c
test esi, esi
jne 0x4175b8
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
push ebp
push edi
push ecx
push ebp
push ebx
call fcn.0041dc80
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x3c]
push edx
push eax
push ebp
push ebx
push 1
call fcn.00415e30
add esp, 0x28
jmp 0x4175b8
mov ecx, dword [esp + 0x4c]
lea eax, [ebx*4]
push ecx
push eax
mov dword [esp + 0x1c], eax
call fcn.0040fd90
mov edi, eax
add esp, 8
test edi, edi
jne 0x417537
mov esi, 0xf001
jmp 0x4175b8
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x14]
push edx
push eax
push 0
push edi
call fcn.0040fe30
mov ecx, dword [esp + 0x54]
push edi
push ebx
push ecx
push esi
call fcn.00418f70
mov edx, dword [esp + 0x6c]
mov ecx, dword [ebp + 0x1c]
push edx
mov edx, dword [esp + 0x60]
lea eax, [esp + 0x34]
push eax
mov eax, dword [edx + 4]
push ecx
push eax
call fcn.0041d800
mov esi, eax
add esp, 0x30
test esi, esi
jne 0x4175b8
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x4c]
push ecx
mov ecx, dword [ebp + 0x24]
mov eax, dword [edx + 0x10]
mov edx, dword [esp + 0x14]
push eax
push edi
push ecx
push ebx
push edi
push ebx
push edx
call fcn.0041de80
mov esi, eax
add esp, 0x20
test esi, esi
jne 0x4175b8
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x28]
push eax
push ecx
push edi
push ebx
push 1
call fcn.00415e30
add esp, 0x14
mov ebx, dword [esp + 0x14]
test edi, edi
je 0x4175d8
mov ebp, dword [esp + 0x4c]
push ebp
push ebx
push 0
push edi
call fcn.0040fe30
push ebp
push edi
call fcn.0040fdc0
add esp, 0x18
mov ebx, dword [esp + 0x4c]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4175f2
lea edx, [esp + 0x10]
push ebx
push edx
call fcn.0041c680
add esp, 8
mov eax, dword [esp + 0x18]
test eax, eax
je 0x417608
lea eax, [esp + 0x18]
push ebx
push eax
call fcn.0041c680
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret