Function at 0x402220
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by fnv-1a hash
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x419040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword fs:[0x30]
push ebx
push esi
push edi
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov ecx, eax
mov dword [ebp - 0x234], eax
mov edx, eax
mov dword [ebp - 0x238], ecx
mov ebx, dword [ecx + 0x18]
mov eax, dword [ebx + 0x3c]
mov eax, dword [eax + ebx + 0x78]
add eax, ebx
mov dword [ebp - 0x23c], eax
cmp eax, ebx
je 0x4022c2
mov esi, dword [eax + 0x18]
test esi, esi
je 0x4022c2
mov eax, dword [eax + 0x20]
lea edi, [eax + esi*4]
add edi, ebx
nop dword [eax]
mov eax, dword [edi - 4]
lea edi, [edi - 4]
add eax, ebx
dec esi
mov edx, 0x811c9dc5
mov cl, byte [eax]
inc eax
test cl, cl
je 0x4022b2
movsx ecx, cl
lea eax, [eax + 1]
xor ecx, edx
imul edx, ecx, 0x1000193
mov cl, byte [eax - 1]
test cl, cl
jne 0x402295
cmp edx, 0x185776b5
je 0x402300
test esi, esi
jne 0x402280
mov ecx, dword [ebp - 0x238]
mov edx, dword [ebp - 0x234]
mov eax, dword [ecx]
mov ecx, eax
mov dword [ebp - 0x238], ecx
cmp eax, edx
je 0x4022da
cmp dword [ecx + 0x18], 0
jne 0x402254
xor eax, eax
push 0
push 2
call eax
mov dword [ebp - 0x23c], eax
cmp eax, 0xffffffff
jne 0x40231d
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406b41
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x23c]
mov eax, dword [edx + 0x24]
lea eax, [eax + esi*2]
movzx ecx, word [eax + ebx]
mov eax, dword [edx + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + ebx]
add eax, ebx
jmp 0x4022dc
push 0x228
lea eax, [ebp - 0x22c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword fs:[0x30]
add esp, 0xc
mov dword [ebp - 0x230], 0x22c
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov ecx, eax
mov dword [ebp - 0x238], eax
mov edx, eax
mov dword [ebp - 0x234], ecx
nop dword [eax + eax]
mov ebx, dword [ecx + 0x18]
mov eax, dword [ebx + 0x3c]
mov eax, dword [eax + ebx + 0x78]
add eax, ebx
mov dword [ebp - 0x240], eax
cmp eax, ebx
je 0x4023d1
mov esi, dword [eax + 0x18]
test esi, esi
je 0x4023d1
mov eax, dword [eax + 0x20]
lea edi, [eax + esi*4]
add edi, ebx
mov ecx, dword [edi - 4]
lea edi, [edi - 4]
add ecx, ebx
dec esi
mov edx, 0x811c9dc5
mov al, byte [ecx]
inc ecx
test al, al
je 0x4023c1
nop word [eax + eax]
movsx eax, al
lea ecx, [ecx + 1]
xor eax, edx
imul edx, eax, 0x1000193
mov al, byte [ecx - 1]
test al, al
jne 0x4023a0
cmp edx, 0xa4c8c8f
je 0x4024cf
test esi, esi
jne 0x402385
mov ecx, dword [ebp - 0x234]
mov edx, dword [ebp - 0x238]
mov eax, dword [ecx]
mov ecx, eax
mov dword [ebp - 0x234], ecx
cmp eax, edx
je 0x4023e9
cmp dword [ecx + 0x18], 0
jne 0x402360
xor eax, eax
lea ecx, [ebp - 0x230]
push ecx
push dword [ebp - 0x23c]
call eax
mov ecx, dword fs:[0x30]
mov dword [ebp - 0x244], eax
mov ecx, dword [ecx + 0xc]
mov ecx, dword [ecx + 0xc]
mov eax, dword [ecx]
mov ecx, eax
mov dword [ebp - 0x238], eax
mov edx, eax
mov dword [ebp - 0x234], ecx
nop
mov ebx, dword [ecx + 0x18]
mov eax, dword [ebx + 0x3c]
mov eax, dword [eax + ebx + 0x78]
add eax, ebx
mov dword [ebp - 0x240], eax
cmp eax, ebx
je 0x40248d
mov esi, dword [eax + 0x18]
test esi, esi
je 0x40248d
mov eax, dword [eax + 0x20]
lea edi, [eax + esi*4]
add edi, ebx
mov ecx, dword [edi - 4]
lea edi, [edi - 4]
add ecx, ebx
dec esi
mov edx, 0x811c9dc5
mov al, byte [ecx]
inc ecx
test al, al
je 0x40247d
nop word [eax + eax]
movsx eax, al
lea ecx, [ecx + 1]
xor eax, edx
imul edx, eax, 0x1000193
mov al, byte [ecx - 1]
test al, al
jne 0x402460
cmp edx, 0xfaba0065
je 0x4024ef
test esi, esi
jne 0x402445
mov ecx, dword [ebp - 0x234]
mov edx, dword [ebp - 0x238]
mov eax, dword [ecx]
mov ecx, eax
mov dword [ebp - 0x234], ecx
cmp eax, edx
je 0x4024a5
cmp dword [ecx + 0x18], 0
jne 0x402420
xor eax, eax
push dword [ebp - 0x23c]
call eax
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [ebp - 0x244], eax
pop edi
cmovne eax, dword [ebp - 0x228]
xor ecx, ebp
pop esi
pop ebx
call fcn.00406b41
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x240]
mov eax, dword [edx + 0x24]
lea eax, [eax + esi*2]
movzx ecx, word [eax + ebx]
mov eax, dword [edx + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + ebx]
add eax, ebx
jmp 0x4023eb
mov edx, dword [ebp - 0x240]
mov eax, dword [edx + 0x24]
lea eax, [eax + esi*2]
movzx ecx, word [eax + ebx]
mov eax, dword [edx + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + ebx]
add eax, ebx
jmp 0x4024a7