Function at 0x511530
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x66f881
mov eax, dword fs:[0]
push eax
sub esp, 0x948
mov eax, dword [0x73bb00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x938], edi
mov esi, dword [ebp + 8]
mov ecx, esi
mov dword [ebp - 0x940], esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x511573
sub ecx, edx
mov eax, 0x811c9dc5
xor edx, edx
mov dword [ebp - 0x93c], ecx
test ecx, ecx
je 0x5115b3
mov edi, eax
nop
movzx eax, byte [edx + esi]
inc edx
xor eax, edi
imul edi, eax, 0x1000193
cmp edx, ecx
jb 0x511590
mov dword [ebp - 0x934], edi
mov edi, dword [ebp - 0x938]
mov eax, dword [ebp - 0x934]
push eax
lea eax, [ebp - 0x940]
push eax
lea eax, [ebp - 0x948]
push eax
lea ecx, [edi + 8]
call fcn.00510570
mov eax, dword [eax + 4]
test eax, eax
jne 0x5115d4
mov eax, dword [edi + 0xc]
cmp eax, dword [edi + 0xc]
je 0x5115e1
mov eax, dword [eax + 0x10]
jmp 0x511b0d
push str.default
push esi
call fcn.00623ad0
add esp, 8
test eax, eax
je 0x511b0b
cmp dword [0x7807a8], 0
je 0x511b0b
push esi
call fcn.00511bd0
add esp, 4
test al, al
je 0x511b0b
mov ecx, esi
mov dword [ebp - 0x940], esi
lea eax, [edi + 0x28]
mov dword [ebp - 0x934], eax
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x511630
sub ecx, edx
mov edi, 0x811c9dc5
xor edx, edx
mov dword [ebp - 0x93c], ecx
test ecx, ecx
je 0x511661
nop word [eax + eax]
movzx eax, byte [edx + esi]
inc edx
xor eax, edi
imul edi, eax, 0x1000193
cmp edx, ecx
jb 0x511650
mov ecx, dword [ebp - 0x934]
lea eax, [ebp - 0x940]
push edi
push eax
lea eax, [ebp - 0x948]
push eax
call fcn.00510570
mov edi, dword [eax + 4]
test edi, edi
jne 0x51168b
mov eax, dword [ebp - 0x934]
mov edi, dword [eax + 4]
mov eax, dword [ebp - 0x938]
cmp edi, dword [eax + 0x2c]
je 0x5117f7
mov eax, dword [edi + 0x10]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x511765
mov eax, dword [eax + 0x728]
nop
cmp eax, 2
jne 0x511765
mov ecx, dword [edi + 0x10]
mov eax, dword [ecx + 0x18]
cmp dword [eax + 0x768], 0
je 0x511765
push ecx
push str.downloadedskins__s.png
lea eax, [ebp - 0x310]
push 0x200
push eax
call fcn.00623dd0
mov ecx, dword [ebp - 0x938]
add esp, 0x10
call fcn.005d29a0
push 0
lea ecx, [ebp - 0x310]
push ecx
mov ecx, dword [edi + 0x10]
mov edx, dword [eax]
add ecx, 0x20
push ecx
mov ecx, eax
call dword [edx + 0x3c]
mov ecx, dword [edi + 0x10]
mov eax, dword [ecx + 0x18]
add eax, 0x75c
push eax
push ecx
mov ecx, dword [ebp - 0x938]
call fcn.00511c50
mov ecx, dword [edi + 0x10]
mov esi, eax
lea eax, [ebp - 0x940]
mov dword [ebp - 0x940], 0
push eax
add ecx, 0x18
mov dword [ebp - 0x93c], 0
call fcn.00511190
lea ecx, [ebp - 0x940]
call fcn.0042fbe0
mov eax, dword [ebp - 0x938]
dec dword [eax + 0x100]
mov eax, esi
jmp 0x511b0d
mov eax, dword [edi + 0x10]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x511b0b
mov eax, dword [eax + 0x728]
nop
cmp eax, 0xffffffff
je 0x511795
mov eax, dword [edi + 0x10]
mov eax, dword [eax + 0x18]
mov eax, dword [eax + 0x728]
nop
cmp eax, 3
jne 0x511b0b
mov ecx, dword [edi + 0x10]
lea eax, [ebp - 0x940]
push eax
add ecx, 0x18
mov dword [ebp - 0x940], 0
mov dword [ebp - 0x93c], 0
call fcn.00511190
mov edi, dword [ebp - 0x93c]
test edi, edi
je 0x5117e6
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x5117e6
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x5117e6
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov eax, dword [ebp - 0x938]
dec dword [eax + 0x100]
jmp 0x511b0b
mov dword [ebp - 0x918], 0
mov dword [ebp - 0x914], 0
push 0x18
lea eax, [ebp - 0x930]
mov dword [ebp - 4], 0
push esi
push eax
call fcn.00623c10
push esi
lea eax, [ebp - 0x110]
mov dword [ebp - 4], 1
push 0x100
push eax
call fcn.0060aa90
cmp dword [0x7807ac], 0
lea eax, [ebp - 0x110]
push eax
mov ecx, 0x7806db
mov eax, 0x78073f
cmove eax, ecx
push eax
push str._s_s.png
lea eax, [ebp - 0x510]
push 0x200
push eax
call fcn.00623dd0
push esi
lea eax, [ebp - 0x710]
push 0x200
push eax
call fcn.00614780
push eax
push str.downloadedskins__s
lea eax, [ebp - 0x910]
push 0x200
push eax
call fcn.00623dd0
mov edi, dword [ebp - 0x938]
add esp, 0x48
mov ecx, edi
call fcn.005d29a0
push 0x780
mov dword [ebp - 0x934], eax
call fcn.006326f1
add esp, 4
mov dword [ebp - 0x944], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x51198b
xorps xmm0, xmm0
lea esi, [eax + 0x10]
movq qword [eax], xmm0
mov ecx, esi
mov dword [eax + 8], 0
mov dword [eax + 4], 1
mov dword [eax + 8], 1
mov dword [eax], vtable.std::_Ref_count_obj2_class_CSkins::CGetPngFile_.0
lea eax, [ebp - 0x510]
push eax
mov dword [ebp - 0x93c], esi
call fcn.0060a100
push 0
lea eax, [ebp - 0x910]
mov dword [esi], vtable.CSkins::CGetPngFile.0
push eax
push dword [ebp - 0x934]
mov ecx, esi
mov byte [ebp - 4], 3
mov dword [esi + 0x758], edi
mov dword [esi + 0x75c], 0
mov dword [esi + 0x760], 0
mov dword [esi + 0x764], 0xffffffff
mov dword [esi + 0x768], 0
call fcn.0060c440
mov dword [esi + 0x114], 0
mov dword [esi + 0x118], 0
mov dword [esi + 0x11c], 0
mov dword [esi + 0x120], 0
mov ecx, dword [ebp - 0x944]
mov dword [esi + 0x61c], 0
jmp 0x51198d
xor ecx, ecx
mov edi, dword [ebp - 0x914]
lea eax, [ecx + 0x10]
mov byte [ebp - 4], 1
mov dword [ebp - 0x918], eax
mov dword [ebp - 0x914], ecx
test edi, edi
je 0x5119cb
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x5119cb
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x5119cb
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov esi, dword [ebp - 0x938]
mov ecx, esi
call fcn.005d28f0
mov edx, eax
sub esp, 8
mov ecx, dword [edx]
mov edi, dword [ecx + 8]
mov ecx, esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp - 0x914]
test eax, eax
je 0x5119ff
lock inc dword [eax + 4]
mov eax, dword [ebp - 0x918]
test eax, eax
je 0x511a0e
add eax, 8
jmp 0x511a10
xor eax, eax
mov dword [ecx], eax
mov eax, dword [ebp - 0x914]
mov dword [ecx + 4], eax
mov ecx, edx
call edi
push 0x220
call fcn.006326f1
mov edx, eax
mov dword [ebp - 0x934], eax
add esp, 4
test edx, edx
je 0x511a9b
movups xmm0, xmmword [ebp - 0x930]
lea edi, [edx + 0x20]
mov ecx, pe_nt_image_headers32
lea esi, [ebp - 0x910]
movups xmmword [edx], xmm0
movq xmm0, qword [ebp - 0x920]
movq qword [edx + 0x10], xmm0
mov dword [edx + 0x18], 0
mov dword [edx + 0x1c], 0
mov eax, dword [ebp - 0x918]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 0x914]
mov dword [edx + 0x1c], eax
mov dword [ebp - 0x918], 0
mov dword [ebp - 0x914], 0
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x938]
jmp 0x511aa3
xor edx, edx
mov dword [ebp - 0x934], edx
mov dword [ebp - 0x954], edx
lea ecx, [edx + 1]
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x511ab0
mov eax, dword [ebp - 0x934]
sub edx, ecx
mov dword [ebp - 0x950], edx
mov dword [ebp - 0x93c], 0
mov dword [ebp - 0x94c], eax
lea eax, [ebp - 0x954]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x948]
push eax
lea ecx, [esi + 0x28]
call fcn.005106e0
lea ecx, [ebp - 0x94c]
call fcn.005110b0
inc dword [esi + 0x100]
lea ecx, [ebp - 0x930]
call fcn.00511150
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0063292f
mov esp, ebp
pop ebp
ret 4