Function at 0x4757b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4ab4ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], ecx
test ebx, ebx
jne 0x4757ef
pop edi
mov eax, 0xffffff9a
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045718a
mov esp, ebp
pop ebp
ret 0x14
cmp dword [ebx + 0x38], 0
je 0x4757d8
cmp dword [ebx + 0x9c], 0
je 0x475804
push ebx
call fcn.00475450
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x20]
push ecx
mov eax, ebx
call fcn.00474ff0
add esp, 0xc
test eax, eax
je 0x475835
pop edi
mov eax, 0xffffff99
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045718a
mov esp, ebp
pop ebp
ret 0x14
push esi
push 0x90
call fcn.0045dbc3
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
test esi, esi
je 0x475882
push 0x4000
call fcn.0045dbc3
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
mov dword [esi + 0x48], ecx
xor ecx, ecx
mov dword [esi + 0x44], edx
mov edx, dword [ebp + 0x14]
add esp, 4
mov dword [esi], eax
mov dword [esi + 0x4c], ecx
mov dword [esi + 0x8c], edx
cmp eax, ecx
jne 0x47589a
push esi
call fcn.00457575
add esp, 4
pop esi
pop edi
mov eax, 0xffffff98
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045718a
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x40], ecx
cmp eax, ecx
je 0x4758a9
mov edx, dword [ebx + 0x54]
mov dword [eax], edx
cmp edi, ecx
je 0x4758de
mov dword [edi], 6
mov eax, dword [ebx + 0x50]
and eax, 6
sub eax, 2
je 0x4758d8
sub eax, 2
je 0x4758d0
sub eax, 2
jne 0x4758de
mov dword [edi], 1
jmp 0x4758de
mov dword [edi], 2
jmp 0x4758de
mov dword [edi], 9
mov eax, dword [ebx + 0x5c]
mov dword [esi + 0x50], ecx
mov dword [esi + 0x54], eax
mov ecx, dword [ebx + 0x54]
mov dword [esi + 0x84], ecx
mov edx, dword [ebx + 0x20]
mov dword [esi + 0x80], edx
lea edi, [esi + 0x60]
mov ecx, 8
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 0x2c]
mov edi, dword [ebp - 0x18]
xor esi, esi
mov dword [edi + 0x88], eax
mov dword [edi + 0x18], esi
cmp dword [ebx + 0x54], 8
jne 0x475953
cmp dword [ebp + 0x14], esi
jne 0x475953
push 0x38
push 0x494b94
lea eax, [edi + 4]
push 0xfffffffffffffff1
push eax
mov dword [edi + 0x24], esi
mov dword [edi + 0x28], esi
mov dword [edi + 0x2c], esi
mov dword [eax], esi
mov dword [edi + 8], esi
call fcn.00475e20
mov dword [ebp - 0x18], eax
cmp eax, esi
jne 0x475a55
mov dword [edi + 0x40], 1
mov ecx, dword [ebx + 0x60]
mov dword [edi + 0x58], ecx
mov edx, dword [ebx + 0x64]
mov ecx, dword [ebp - 0x20]
mov dword [edi + 0x5c], edx
mov eax, dword [ebx + 0x98]
lea edx, [eax + ecx + 0x1e]
mov dword [edi + 0x3c], edx
mov dword [edi + 8], esi
mov dword [ebx + 0x9c], edi
cmp dword [ebp - 0x14], esi
je 0x475a40
call fcn.00475aa0
mov dword [ebx + 0xb0], eax
lea esi, [ebx + 0xa4]
mov edi, eax
mov eax, dword [ebp - 0x14]
mov edx, esi
call fcn.00474810
mov eax, dword [ebx + 0x9c]
mov ecx, dword [eax + 0x88]
add ecx, dword [eax + 0x3c]
mov edx, dword [ebx + 0x20]
mov eax, dword [ebx + 0x1c]
push 0
push ecx
mov ecx, dword [ebx + 0x10]
push edx
push eax
call ecx
add esp, 0x10
test eax, eax
jne 0x475882
mov eax, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x1c]
push 0xc
lea edx, [ebp - 0x10]
push edx
mov edx, dword [ebx + 4]
push eax
push ecx
call edx
add esp, 0x10
cmp eax, 0xc
jb 0x475882
mov dword [ebp - 0x14], 0
mov edi, edi
mov eax, dword [ebx + 0xac]
mov edi, dword [ebp - 0x14]
and eax, 0xfffd
or eax, 2
mov ecx, eax
xor ecx, 1
imul ecx, eax
lea edi, [ebp + edi - 0x10]
shr ecx, 8
xor byte [edi], cl
movsx eax, byte [edi]
mov edi, dword [ebx + 0xb0]
call fcn.004747d0
mov eax, dword [ebp - 0x14]
inc eax
cmp eax, 0xc
mov dword [ebp - 0x14], eax
jl 0x4759f0
mov eax, dword [ebx + 0x9c]
add dword [eax + 0x3c], 0xc
mov dword [ebx + 0xa0], 1
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045718a
mov esp, ebp
pop ebp
ret 0x14
push edi
call fcn.00457575
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x18]
add esp, 4
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.0045718a
mov esp, ebp
pop ebp
ret 0x14