Function at 0x4ca990
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5e5d86
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x65f810]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
lea eax, [esp + 0x3c]
push eax
lea edx, [esp + 0x40]
lea ecx, [esi + 0x3c]
push edx
mov dword [esi], vtable.DBE::CDBase_struct_DBE::_DBINFO__struct_DBE::_ITEMDB_.0
call fcn.004c8dd0
xor ebp, ebp
xor eax, eax
mov dword [esi + 0x78], 7
mov dword [esi + 0x74], ebp
mov dword [esp + 0x34], ebp
mov word [esi + 0x64], ax
mov edi, dword [esp + 0x3c]
push 0x30
lea ecx, [edi + 4]
push ecx
lea edx, [esi + 4]
push 0x30
push edx
mov byte [esp + 0x44], 1
mov dword [esi + 0x5c], 0xffffffff
call fcn.005788de
add esp, 0x10
cmp dword [edi + 0x38], ebp
je 0x4caa70
mov eax, dword [esi + 0x14]
push eax
call fcn.004cf9f2
add esp, 4
mov dword [esi + 0x38], eax
cmp eax, ebp
je 0x4caa3e
mov ecx, dword [edi + 0x14]
mov edx, dword [edi + 0x38]
push ecx
mov ecx, dword [esi + 0x14]
push edx
push ecx
push eax
call fcn.005788de
add esp, 0x10
jmp 0x4caa70
push 0x5fb4ac
push str._DBE::CDBase_struct_DBE::_DBINFO_struct_DBE::_ITEMDB_::CDBase_
push 0x66ded8
call fcn.00432d30
add esp, 8
push eax
call fcn.00432d30
add esp, 8
mov ebx, eax
push 0xa
mov ecx, ebx
call fcn.0047bab0
mov ecx, ebx
call fcn.00435770
cmp dword [edi + 0x34], ebp
je 0x4caae7
mov eax, dword [esi + 8]
xor ecx, ecx
mov edx, 0x20
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004cf9f2
add esp, 4
mov dword [esi + 0x34], eax
cmp eax, ebp
je 0x4caab5
mov ecx, dword [edi + 8]
mov edx, dword [edi + 0x34]
shl ecx, 5
push ecx
mov ecx, dword [esi + 8]
push edx
shl ecx, 5
push ecx
push eax
call fcn.005788de
add esp, 0x10
jmp 0x4caae7
push 0x5fb454
push str._DBE::CDBase_struct_DBE::_DBINFO_struct_DBE::_ITEMDB_::CDBase_
push 0x66ded8
call fcn.00432d30
add esp, 8
push eax
call fcn.00432d30
add esp, 8
mov edi, eax
push 0xa
mov ecx, edi
call fcn.0047bab0
mov ecx, edi
call fcn.00435770
mov dword [esp + 0x3c], ebp
cmp dword [esi + 8], ebp
jbe 0x4cabc6
xor ebx, ebx
mov edx, dword [esi + 0x34]
mov ecx, dword [ebx + edx]
lea eax, [ebx + edx]
lea edx, [esp + 0x18]
mov dword [esp + 0x1c], eax
push edx
lea eax, [esp + 0x24]
mov dword [esp + 0x1c], ecx
push eax
lea ecx, [esi + 0x3c]
call fcn.004c49d0
cmp byte [eax + 8], 0
jne 0x4cabb1
mov ecx, dword [esi + 0x34]
mov edx, dword [ebx + ecx]
push 0x5fb250
push edx
push 0x5fb23c
push str._DBE::CDBase_struct_DBE::_DBINFO_struct_DBE::_ITEMDB_::CDBase_
push 0x66ded8
call fcn.00432d30
add esp, 8
push eax
call fcn.00432d30
add esp, 8
mov ecx, eax
call fcn.004c2b10
push eax
call fcn.00432d30
add esp, 8
mov edi, eax
push 0xa
mov ecx, edi
call fcn.0047bab0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx + edi]
xor ebp, ebp
test byte [eax + 8], 6
jne 0x4cab90
mov eax, dword [eax + 0x28]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x30]
call eax
cmp eax, 0xffffffff
jne 0x4cab90
mov ebp, 4
mov ecx, dword [edi]
mov ecx, dword [ecx + 4]
add ecx, edi
test ebp, ebp
je 0x4cabb1
mov eax, dword [ecx + 8]
or eax, ebp
cmp dword [ecx + 0x28], 0
jne 0x4caba9
or eax, 4
push 0
push eax
call fcn.00435570
mov eax, dword [esp + 0x3c]
inc eax
add ebx, 0x20
mov dword [esp + 0x3c], eax
cmp eax, dword [esi + 8]
jb 0x4caaf6
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4