Function at 0x4038d1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x476060]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, dword [ebp + 0xc]
mov ecx, 0x476df0
mov dword [0x476e00], ebx
mov dword [0x476e04], ebx
mov dword [0x476e08], ebx
mov byte [0x476e0e], bl
call fcn.00401fbc
push 3
call fcn.004088d0
pop ecx
call fcn.004087f0
mov dword [0x476e28], eax
test eax, eax
jne 0x403931
mov dword [0x476e28], ebx
xor al, al
jmp 0x403ba6
push esi
push 0x2712
push eax
call fcn.004088a0
add esp, 0xc
push edi
push 0x2722
push dword [0x476e28]
call fcn.004088a0
add esp, 0xc
push 1
push 0x50
push dword [0x476e28]
call fcn.004088a0
add esp, 0xc
push 0x403532
push 0x4e2b
push dword [0x476e28]
call fcn.004088a0
add esp, 0xc
push 3
push 0x54
push dword [0x476e28]
call fcn.004088a0
add esp, 0xc
push 0x1e
push 0x4e
push dword [0x476e28]
call fcn.004088a0
add esp, 0xc
push 0xb4
push 0xd
pop esi
push esi
push dword [0x476e28]
call fcn.004088a0
add esp, 0xc
xor edi, edi
inc edi
push edi
push 0x2b
push dword [0x476e28]
call fcn.004088a0
add esp, 0xc
push edi
push 0x34
push dword [0x476e28]
call fcn.004088a0
add esp, 0xc
push ebx
push 0x40
push dword [0x476e28]
call fcn.004088a0
add esp, 0xc
push ebx
push 0x51
push dword [0x476e28]
call fcn.004088a0
add esp, 0xc
push edi
push 0x4a
push dword [0x476e28]
call fcn.004088a0
add esp, 0xc
push ebx
push 0x2a
push dword [0x476e28]
call fcn.004088a0
add esp, 0xc
push ebx
push 0x29
push dword [0x476e28]
call fcn.004088a0
add esp, 0xc
push edi
push 0x71
push dword [0x476e28]
call fcn.004088a0
movaps xmm0, xmmword [0x473370]
add esp, 0xc
movups xmmword [ebp - 0x60], xmm0
push 0x10
pop edi
mov dword [ebp - 0x14], esi
lea edx, [ebp - 0x48]
mov byte [ebp - 0x50], bl
mov esi, ebx
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], 1
mov dword [ebp - 0x40], 2
mov dword [ebp - 0x3c], 3
mov dword [ebp - 0x38], 4
mov dword [ebp - 0x34], 5
mov dword [ebp - 0x30], 6
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x28], 8
mov dword [ebp - 0x24], 9
mov dword [ebp - 0x20], 0xa
mov dword [ebp - 0x1c], 0xb
mov dword [ebp - 0x18], 0xc
mov dword [ebp - 0x10], 0xe
mov dword [ebp - 0xc], 0xf
test edi, edi
je 0x403ada
mov ecx, dword [edx]
lea edx, [edx + 4]
lea eax, [ecx + 0x36]
xor byte [ebp + ecx - 0x60], al
inc esi
cmp esi, edi
jne 0x403ac9
lea eax, [ebp - 0x60]
mov byte [ebp - 0x50], 1
push eax
push 0x27e3
push dword [0x476e28]
call fcn.004088a0
add esp, 0xc
push dword [0x476e28]
call fcn.00408890
pop ecx
test eax, eax
je 0x403b38
mov ecx, 0x476df0
mov dword [0x476e00], ebx
mov dword [0x476e04], ebx
mov dword [0x476e08], ebx
mov byte [0x476e0e], bl
call fcn.00401fbc
push dword [0x476e28]
call fcn.004087b0
pop ecx
jmp 0x403924
lea eax, [ebp - 0x64]
mov dword [ebp - 0x64], ebx
push eax
push 0x200002
push dword [0x476e28]
call fcn.004087d0
add esp, 0xc
push dword [0x476e28]
call fcn.004087b0
cmp dword [ebp - 0x64], 0xc8
pop ecx
mov dword [0x476e28], ebx
je 0x403b9d
cmp dword [ebp - 0x64], 0x130
je 0x403b9d
mov ecx, 0x476df0
mov dword [0x476e00], ebx
mov dword [0x476e04], ebx
mov dword [0x476e08], ebx
mov byte [0x476e0e], bl
call fcn.00401fbc
jmp 0x40392a
cmp dword [0x476e04], ebx
setg al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00443f7b
mov esp, ebp
pop ebp
ret 8