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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a2771
mov eax, dword fs:[0]
push eax
sub esp, 0x284
mov eax, dword [0x4d63e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
push 0x208
mov dword [ebp - 0x28c], eax
mov dword [ebp - 0x290], eax
lea eax, [ebp - 0x240]
push 0
push eax
call fcn.0046edf0
add esp, 0xc
lea eax, [ebp - 0x240]
push 0x104
push eax
push dword [esi + 0x44]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
mov dword [ebp - 0x248], 0
lea ecx, [ebp - 0x240]
mov dword [ebp - 0x244], 7
mov word [ebp - 0x258], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409e10
sub ecx, edx
lea eax, [ebp - 0x240]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x258]
call fcn.00402e30
mov eax, dword [ebp - 0x248]
lea edi, [ebp - 0x258]
cmp dword [ebp - 0x244], 8
mov esi, 0x811c9dc5
mov edx, dword [ebp - 0x258]
cmovae edi, edx
xor ecx, ecx
lea ebx, [eax + eax]
test ebx, ebx
je 0x409e71
lea esp, [esp]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, ebx
jb 0x409e60
mov eax, dword [ebp - 0x244]
cmp eax, 8
jb 0x409eab
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x409ea1
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a174
push ecx
push edx
call fcn.0046c40b
add esp, 8
lea eax, [ebp - 0x240]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
lea eax, [ebp - 0x240]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov edx, eax
mov dword [ebp - 0x248], 0
mov ecx, edx
mov dword [ebp - 0x244], 7
xor eax, eax
mov word [ebp - 0x258], ax
lea edi, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409ef0
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x258]
call fcn.00402e30
xor eax, eax
mov dword [ebp - 4], 0
push esi
push str.__08X
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x38]
push 0x14
push eax
call fcn.0040d3b0
add esp, 0x10
mov dword [ebp - 0x260], 0
xor eax, eax
mov dword [ebp - 0x25c], 7
lea ecx, [ebp - 0x38]
mov word [ebp - 0x270], ax
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409f70
sub ecx, edx
lea eax, [ebp - 0x38]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x270]
call fcn.00402e30
lea eax, [ebp - 0x258]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x288]
push str.Child_
push eax
call fcn.004064e0
add esp, 0xc
mov ecx, eax
mov edi, dword [ecx + 0x14]
mov eax, edi
mov edx, dword [ecx + 0x10]
sub eax, edx
mov esi, dword [ebp - 0x260]
mov ebx, dword [ebp - 0x25c]
mov byte [ebp - 4], 2
cmp esi, eax
jbe 0x409ffc
mov eax, ebx
sub eax, esi
cmp eax, edx
jb 0x409ffc
cmp edi, 8
jb 0x409fdd
mov ecx, dword [ecx]
push edx
push ecx
push 0
lea ecx, [ebp - 0x270]
call fcn.004050a0
mov ebx, dword [ebp - 0x28c]
mov ecx, ebx
push eax
call fcn.00406f20
jmp 0x40a05e
cmp ebx, 8
lea eax, [ebp - 0x270]
push esi
cmovae eax, dword [ebp - 0x270]
push eax
call fcn.00402cb0
mov ebx, dword [ebp - 0x28c]
mov ecx, eax
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
mov eax, dword [ecx]
mov dword [ebx], eax
mov eax, dword [ecx + 4]
mov dword [ebx + 4], eax
mov eax, dword [ecx + 8]
mov dword [ebx + 8], eax
mov eax, dword [ecx + 0xc]
mov dword [ebx + 0xc], eax
mov eax, dword [ecx + 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [ecx + 0x14]
mov dword [ebx + 0x14], eax
xor eax, eax
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], ax
mov edx, dword [ebp - 0x274]
cmp edx, 8
jb 0x40a09e
mov ecx, dword [ebp - 0x288]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a094
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a179
push edx
push ecx
call fcn.0046c40b
add esp, 8
mov edx, dword [ebp - 0x25c]
xor eax, eax
mov dword [ebp - 0x278], 0
mov dword [ebp - 0x274], 7
mov word [ebp - 0x288], ax
cmp edx, 8
jb 0x40a0fb
mov ecx, dword [ebp - 0x270]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a0f1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a179
push edx
push ecx
call fcn.0046c40b
add esp, 8
mov edx, dword [ebp - 0x244]
xor eax, eax
mov dword [ebp - 0x260], 0
mov dword [ebp - 0x25c], 7
mov word [ebp - 0x270], ax
cmp edx, 8
jb 0x40a154
mov ecx, dword [ebp - 0x258]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a14a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a179
push edx
push ecx
call fcn.0046c40b
add esp, 8
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046c678
mov esp, ebp
pop ebp
ret 4
call fcn.00477ce9
call fcn.00477ce9
int3