Function at 0x408ac0
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc4
mov eax, dword fs:[0x2c]
push ebx
push ebp
push esi
mov esi, dword [eax]
mov eax, dword [0x509b8c]
push edi
mov dword [esp + 0x2c], ecx
cmp eax, dword [esi + 4]
jle 0x408b13
push 0x509b8c
call fcn.0040fcde
add esp, 4
cmp dword [0x509b8c], 0xffffffff
jne 0x408b13
push 0x410d30
call fcn.00410033
add esp, 4
push 0x509b8c
call fcn.0040fc94
add esp, 4
mov eax, dword [0x509ba0]
cmp eax, dword [esi + 4]
jle 0x408b50
push 0x509ba0
call fcn.0040fcde
add esp, 4
cmp dword [0x509ba0], 0xffffffff
jne 0x408b50
push 0x410cd0
call fcn.00410033
add esp, 4
push 0x509ba0
call fcn.0040fc94
add esp, 4
mov eax, dword [0x509b7c]
cmp eax, dword [0x509b80]
jne 0x408e7b
mov eax, dword fs:[0x18]
mov ebp, dword [0x509ba4]
mov ebx, dword [0x509ba8]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x14]
mov eax, dword [eax]
mov edi, dword [eax + 0x10]
cmp ebp, ebx
jne 0x408c80
mov eax, dword [edi + 0x3c]
xor ebx, ebx
xor esi, esi
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], ebx
mov eax, dword [eax + edi + 0x78]
add eax, edi
mov dword [esp + 0x28], eax
mov edx, dword [eax + 0x1c]
mov ecx, dword [eax + 0x20]
add edx, edi
mov dword [esp + 0x24], edx
add ecx, edi
mov edx, dword [eax + 0x24]
add edx, edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x20], edx
xor edx, edx
mov dword [esp + 0x1c], edx
cmp dword [eax + 0x18], edx
jbe 0x408c2c
nop dword [eax]
mov eax, dword [esp + 0x20]
mov ebp, dword [esp + 0x24]
mov ecx, dword [ecx + esi*4]
add ecx, edi
movzx eax, word [eax + esi*2]
mov dword [esp + 0x30], ecx
mov eax, dword [ebp + eax*4]
add eax, edi
mov dword [esp + 0x34], eax
cmp ebx, edx
je 0x408c01
mov dword [ebx], ecx
mov dword [ebx + 4], eax
add ebx, 8
mov dword [esp + 0x18], ebx
jmp 0x408c18
lea eax, [esp + 0x30]
push eax
push ebx
lea ecx, [esp + 0x1c]
call fcn.0040c2f0
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x28]
inc esi
mov ecx, dword [esp + 0x10]
cmp esi, dword [ebp + 0x18]
jb 0x408bd0
mov ebp, dword [0x509ba4]
test ebp, ebp
je 0x408c5f
mov ecx, dword [0x509bac]
sub ecx, ebp
and ecx, 0xfffffff8
cmp ecx, 0x1000
jb 0x408c55
mov edx, dword [ebp - 4]
add ecx, 0x23
sub ebp, edx
lea eax, [ebp - 4]
cmp eax, 0x1f
ja 0x408cc3
mov ebp, edx
push ecx
push ebp
call fcn.0040fdb9
add esp, 8
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov dword [0x509ba4], ebp
mov dword [0x509ba8], ebx
mov dword [0x509bac], eax
cmp ebp, ebx
je 0x408e7b
mov dword [esp + 0x10], 0x50f
mov edi, 0xd2ff
nop dword [eax]
mov esi, dword [ebp + 4]
xor eax, eax
movzx ecx, word [eax + esi]
mov edx, ecx
cmp cx, word [esp + 0x10]
jne 0x408cae
mov ecx, 0x2ecd
cmp word [eax + esi + 3], cx
je 0x408cc9
cmp dl, 0xc3
je 0x408cd3
cmp dl, 0xc2
je 0x408cce
inc eax
cmp eax, 0x18
jb 0x408c95
jmp 0x408e70
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
lea ecx, [eax + 5]
jmp 0x408cd6
lea ecx, [eax + 3]
jmp 0x408cd6
lea ecx, [eax + 1]
test ecx, ecx
je 0x408e70
mov al, byte [esi]
cmp al, 0x4c
jne 0x408d1f
cmp byte [esi + 1], 0x8b
jne 0x408e70
cmp byte [esi + 2], 0xd1
jne 0x408e70
lea eax, [ecx - 1]
cmp eax, 0x1e
ja 0x408e70
test ecx, ecx
je 0x408d1b
xor eax, eax
nop word [eax + eax]
cmp byte [eax + esi], 0xb8
je 0x408d52
inc eax
cmp eax, ecx
jb 0x408d10
xor edi, edi
jmp 0x408d56
cmp al, 0xb8
jne 0x408e70
xor eax, eax
test ecx, ecx
je 0x408e70
cmp word [eax + esi], di
je 0x408d41
inc eax
cmp eax, ecx
jb 0x408d31
jmp 0x408e70
xor eax, eax
cmp word [eax + esi], di
je 0x408d08
inc eax
cmp eax, ecx
jb 0x408d43
xor edi, edi
jmp 0x408d56
mov edi, dword [eax + esi + 1]
push 0x40
lea eax, [esp + 0x3c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, esi
cdq
mov dword [esp + 0x80], eax
lea eax, [esp + 0x90]
mov dword [esp + 0x84], edx
push 0x40
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x90]
push dword [ebp]
push 0x40
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
movups xmm0, xmmword [esp + 0xac]
add esp, 0xc
xor ecx, ecx
movups xmm1, xmmword [esp + 0x90]
movups xmmword [esp + 0x48], xmm0
movups xmm0, xmmword [esp + 0xb0]
movd eax, xmm1
movups xmmword [esp + 0x58], xmm0
movups xmm0, xmmword [esp + 0xc0]
movups xmmword [esp + 0x38], xmm1
movups xmmword [esp + 0x68], xmm0
test al, al
je 0x408de8
inc ecx
cmp byte [esp + ecx + 0x38], 0
jne 0x408de0
xor edx, edx
mov esi, 0x811c9dc5
test ecx, ecx
je 0x408e05
movzx eax, byte [esp + edx + 0x38]
inc edx
xor eax, esi
imul esi, eax, 0x1000193
cmp edx, ecx
jb 0x408df3
mov eax, dword [0x509b80]
mov dword [esp + 0x78], esi
mov dword [esp + 0x88], edi
cmp eax, dword [0x509b84]
je 0x408e5b
movups xmmword [eax], xmm1
movups xmm0, xmmword [esp + 0x48]
movups xmmword [eax + 0x10], xmm0
movups xmm0, xmmword [esp + 0x58]
movups xmmword [eax + 0x20], xmm0
movups xmm0, xmmword [esp + 0x68]
movups xmmword [eax + 0x30], xmm0
movups xmm0, xmmword [esp + 0x78]
movups xmmword [eax + 0x40], xmm0
movq xmm0, qword [esp + 0x88]
movq qword [eax + 0x50], xmm0
add dword [0x509b80], 0x58
jmp 0x408e6b
lea ecx, [esp + 0x38]
push ecx
push eax
mov ecx, 0x509b7c
call fcn.00407320
mov edi, 0xd2ff
add ebp, 8
cmp ebp, ebx
jne 0x408c90
mov ecx, dword [esp + 0x2c]
push 0x509b7c
call fcn.0040c180
mov eax, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc4
ret