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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xa29a8c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x58
push esi
push edi
mov dword [ebp - 0x28], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 4], 2
mov eax, dword fs:[0x2c]
mov edx, dword [eax]
mov eax, dword [0xa598ec]
cmp eax, dword [edx + 4]
jg 0xca8c04
push 0xa598b4
call fcn.00c14799
add esp, 4
test eax, eax
jne 0xca8c4f
cmp dword [0xa598e0], 0x7fffffff
je 0xca8c56
cmp dword [0xa56dd0], 0xf
mov dword [0xa56dcc], eax
mov byte [0xa590b0], al
mov eax, 0xa56dbc
cmova eax, dword [0xa56dbc]
push 0
push 0x2bc9
mov byte [eax], 0
call fcn.00ccc020
mov edi, dword [0xa55b24]
mov esi, eax
mov dword [ebp - 0x20], 0xdf9be3e9
mov dword [ebp - 0x1c], 0xf940fadb
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], edx
lea edx, [ebx + 8]
mov dword [ebp - 0x20], 0x7dbb92e6
mov dword [ebp - 0x1c], 0x14d846fe
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x20], 0xdf9be395
mov dword [ebp - 0x1c], 0xf940fadb
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x20], 0x7dbb92e6
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x1c], 0x14d846fe
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
movaps xmm1, xmmword [ebp - 0x40]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x44], ecx
lea ecx, [ebp - 0x68]
xorps xmm1, xmmword [ebp - 0x50]
push eax
movaps xmmword [ebp - 0x40], xmm1
call fcn.00bfc720
mov byte [ebp - 4], 4
sub esp, 0xc
lea edx, [ebx + 0x20]
mov dword [ebp - 0x24], esp
mov ecx, esp
push edx
mov edx, eax
call fcn.00bfc980
add esp, 4
mov byte [ebp - 4], 5
mov byte [ebp - 4], 4
mov edx, esi
mov ecx, edi
call fcn.00beae80
add esp, 0x18
mov byte [ebp - 0x11], al
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x68]
call fcn.00be49f0
cmp byte [ebp - 0x11], 0
je 0xca8bb5
cmp byte [0xa590b0], 0
jne 0xca8bb5
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
nop
mov edx, dword [eax + 0x18]
mov dword [ebp - 0x24], edx
mov ecx, dword [edx + 0x3c]
mov ecx, dword [ecx + edx + 0x78]
add ecx, edx
mov dword [ebp - 0x1c], ecx
cmp ecx, edx
je 0xca8b87
mov edi, dword [ecx + 0x18]
test edi, edi
je 0xca8b87
mov ecx, dword [ecx + 0x20]
lea ecx, [ecx + edi*4]
add ecx, edx
sub ecx, 4
dec edi
mov dword [ebp - 0x18], ecx
mov esi, 0x811c9dc5
mov ecx, dword [ecx]
add ecx, edx
mov dl, byte [ecx]
inc ecx
test dl, dl
je 0xca8b7d
nop dword [eax]
movsx edx, dl
lea ecx, [ecx + 1]
xor edx, esi
imul esi, edx, 0x1000193
mov dl, byte [ecx - 1]
test dl, dl
jne 0xca8b60
cmp esi, 0x2fa62ca8
je 0xca8b8b
mov ecx, dword [ebp - 0x18]
mov edx, dword [eax + 0x18]
test edi, edi
jne 0xca8b45
mov eax, dword [eax]
jmp 0xca8b20
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
push 2
mov ecx, dword [eax + 0x1c]
mov eax, dword [eax + 0x24]
add ecx, edx
add eax, edx
movzx eax, word [eax + edi*2]
mov eax, dword [ecx + eax*4]
add eax, edx
call eax
cmp byte [0xa590b0], 0
je 0xca8b12
mov ecx, dword [ebp - 0x28]
push 0xa56dbc
call fcn.00bf7fb0
push 0xa598b4
mov dword [ebp - 0x2c], 1
call fcn.00c147aa
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebx + 8]
call fcn.00be49f0
mov byte [ebp - 4], 0
lea ecx, [ebx + 0x20]
call fcn.00be49f0
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0xa598ec
call fcn.00c155b3
add esp, 4
cmp dword [0xa598ec], 0xffffffff
jne 0xca89e2
mov byte [ebp - 4], 3
mov ecx, 0xa598b4
call fcn.00bea310
push 0xa2c7d0
call fcn.00c154de
add esp, 4
mov byte [ebp - 4], 2
push 0xa598ec
call fcn.00c15562
add esp, 4
jmp 0xca89e2
push 5
call fcn.00c14134
push 6
mov dword [0xa598e0], 0x7ffffffe
call fcn.00c14134
int3