Function at 0x40ca70
Capabilities:
Resolve function by fnv-1a hash

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x44d008]
xor eax, ebp
mov dword [ebp - 8], eax
cmp dword [0x44e980], 3
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x24], ecx
jle 0x40caaa
xor edi, edi
mov dword [0x44e980], 0
mov dword [esi], edi
mov ebx, 0x447aa0
jmp 0x40ccbf
sub esp, 0x18
mov ecx, esp
push 0x44ebfc
call fcn.0040b2e0
lea eax, [ebp - 0x54]
push eax
call fcn.0041b680
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.0041fe60
cmp dword [eax + 0x14], 8
jb 0x40cad4
mov eax, dword [eax]
push eax
call fcn.004206f0
mov ecx, dword [ebp - 0x28]
mov edi, eax
cmp ecx, 8
jb 0x40cb16
mov edx, dword [ebp - 0x3c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40cb0c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cd04
push ecx
push edx
call fcn.00420d4c
add esp, 8
mov ecx, dword [ebp - 0x40]
xor eax, eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 7
mov word [ebp - 0x3c], ax
cmp ecx, 0x10
jb 0x40cb5e
mov edx, dword [ebp - 0x54]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40cb54
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cd04
push ecx
push edx
call fcn.00420d4c
add esp, 8
push 0x44ed8118
push edi
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0xf
mov byte [ebp - 0x54], 0
call fcn.004205c0
push 0xbdcac9ce
push edi
mov dword [ebp - 0xc], eax
call fcn.004205c0
push 0x15b2461a
push edi
call fcn.004205c0
push 0x3d05404b
push edi
mov dword [ebp - 0x18], eax
call fcn.004205c0
push 0xfaba0065
push edi
mov dword [ebp - 0x1c], eax
call fcn.004205c0
push 0x54fcc943
push edi
mov dword [ebp - 0x10], eax
call fcn.004205c0
push 0x448a98
call fcn.004206f0
push 0x6b372c05
push eax
call fcn.004205c0
sub esp, 0x18
mov dword [ebp - 0x20], eax
lea eax, [ebp + 0xc]
mov ecx, esp
push eax
call fcn.0040b2e0
call fcn.0040cd10
mov ebx, eax
mov dword [ebp - 0x14], ebx
cmp ebx, 0xffffffff
je 0x40cc87
test ebx, ebx
je 0x40cc87
push 0
push ebx
call dword [ebp - 0xc]
mov edi, eax
cmp edi, 0xffffffff
je 0x40cc70
push 0
push 0
push 0
push 2
push 0
push ebx
call dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x40cc31
push ebx
call dword [ebp - 0x10]
mov dword [esi], edi
mov ebx, 0x447aa0
jmp 0x40ccbf
push 0
push 0
push 0
push 4
push eax
call dword [ebp - 0x1c]
push dword [ebp - 0xc]
mov ebx, eax
test ebx, ebx
jne 0x40cc59
mov ebx, dword [ebp - 0x10]
call ebx
push dword [ebp - 0x14]
call ebx
mov dword [esi], edi
mov ebx, 0x447aa0
jmp 0x40ccbf
call dword [ebp - 0x10]
push dword [ebp - 0x14]
mov dword [esi], edi
call dword [ebp - 0x20]
mov dword [0x44e980], 0
jmp 0x40ccbf
mov dword [0x44e980], 0
mov ebx, 0x447aa0
mov dword [esi], 0
jmp 0x40ccbf
sub esp, 0x18
lea eax, [ebp + 0xc]
mov ecx, esp
push eax
call fcn.0040b2e0
call fcn.0040cea0
inc dword [0x44e980]
lea eax, [ebp + 0xc]
sub esp, 0x18
mov dword [esi], 0
mov ecx, esp
push eax
call fcn.0040b2e0
mov ecx, dword [ebp - 0x24]
push esi
call fcn.0040ca70
mov ebx, eax
mov ecx, dword [ebp + 0x20]
cmp ecx, 0x10
jb 0x40ccef
mov edx, dword [ebp + 0xc]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40cce5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cd09
push ecx
push edx
call fcn.00420d4c
add esp, 8
mov ecx, dword [ebp - 8]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004208c0
mov esp, ebp
pop ebp
ret 0x1c
call fcn.00427422
call fcn.00427422
int3