Function at 0x4039c0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a16dd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
mov eax, dword [ebp + 0x14]
mov edx, ecx
push ebx
push esi
push edi
mov esi, dword [edx + 0x14]
xor bl, bl
mov dword [ebp - 0x10], esi
mov edi, dword [esi + 8]
mov dword [ebp - 0x1c], edi
cmp eax, dword [edx + 0x10]
jb 0x403c00
mov eax, dword [ebp + 0xc]
cmp dword [edx + 0xc], eax
jne 0x403c00
mov esi, dword [ebp + 8]
or ecx, 0xffffffff
mov dword [ebp - 0x18], esi
mov esi, dword [ebp - 0x10]
test eax, eax
je 0x403a40
mov edi, dword [ebp - 0x18]
mov esi, eax
nop dword [eax + eax]
movzx eax, byte [edi]
lea edi, [edi + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4b9b78]
sub esi, 1
jne 0x403a20
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0x1c]
not ecx
cmp dword [edx + 8], ecx
jne 0x403c00
mov eax, dword [edx + 4]
cmp eax, 0x50445342
jg 0x403b47
je 0x403a72
cmp eax, 0x30445342
je 0x403a72
cmp eax, 0x474f5043
je 0x403b59
jmp 0x403c00
lea ebx, [esi + 4]
cmp edi, dword [esi]
jbe 0x403a8f
mov ecx, dword [esi + 0x10]
mov eax, edi
sub eax, dword [esi]
push eax
mov eax, dword [ebx]
add eax, dword [esi]
mov edx, dword [ecx]
push eax
push dword [esi]
call dword [edx + 8]
mov dword [esi], edi
mov ecx, dword [ebx]
cmp edi, 0x20
jb 0x403bfe
mov al, byte [ecx + 3]
cmp al, 4
jne 0x403b1e
lea eax, [edi - 0x18]
add ecx, 0x18
push 0x18
lea edx, [ebp - 0x10]
mov dword [ebp - 0x10], eax
call fcn.00403210
push dword [ebp + 0xc]
mov edx, dword [ebp - 0x10]
mov esi, eax
push dword [ebp + 8]
mov ecx, esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00403040
add esp, 0x14
mov bl, al
test esi, esi
je 0x403c00
mov eax, dword [0x4c9b6c]
mov dword [ebp - 0x58], 0x10
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0x4b362c
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
test eax, eax
je 0x403c00
lea ecx, [ebp - 0x58]
push ecx
push eax
mov eax, dword [eax + 0x10]
call eax
add esp, 8
jmp 0x403c00
cmp al, 2
jne 0x403bfe
push dword [ebp + 0xc]
lea edx, [edi - 0x18]
add ecx, 0x18
push dword [ebp + 8]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00403040
add esp, 0x10
mov bl, al
jmp 0x403c00
cmp eax, 0x50554f43
je 0x403b9d
cmp eax, 0x59504f43
jne 0x403c00
mov eax, dword [edx]
lea ecx, [ebp + 0xc]
push ecx
mov ecx, edx
mov dword [ebp + 0xc], 0
call dword [eax + 0x14]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
lea ecx, [edx + eax]
cmp esi, ecx
jae 0x403b8e
lea ecx, [edx + esi]
cmp ecx, eax
jbe 0x403b8e
push edx
push eax
push esi
call fcn.00474950
add esp, 0xc
mov bl, 1
jmp 0x403c00
push edx
push eax
push esi
call fcn.00474950
add esp, 0xc
mov bl, 1
jmp 0x403c00
mov ebx, dword [esi]
cmp edi, ebx
jbe 0x403bbb
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
mov edx, dword [eax + 8]
mov eax, edi
sub eax, ebx
push eax
mov eax, dword [esi + 4]
add eax, ebx
push eax
push ebx
call edx
mov dword [esi], edi
mov ecx, 0x4cfeb8
mov dword [ebp - 0x20], 0x4cfeb8
call fcn.00436390
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
cmp eax, 1
jne 0x403bf4
push 0
push 0x4b362c
push str.Courgette_support_isnt_included_in_this_build__please_recompile_with_Courgette_support_enabled.
push str.false
call fcn.00430100
add esp, 0x10
mov ecx, 0x4cfeb8
call fcn.004363a0
xor bl, bl
mov ecx, dword [ebp - 0xc]
mov al, bl
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10