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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x65e374]
xor eax, esp
mov dword [esp + 0x28], eax
movsx eax, byte [ecx + 0x44]
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov eax, dword [ecx + eax*4 + 0x78]
mov dword [esp + 0x14], eax
mov eax, dword [ecx + 4]
push edi
mov edi, edx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], eax
call fcn.004cd3c0
mov edx, dword [esp + 0x30]
movzx eax, word [edx + 0x20]
mov ecx, dword [edx + 0x18]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0xc], ecx
sub ecx, dword [eax + 0x38]
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 0x24]
sub eax, dword [esp + 0x10]
cmp ecx, eax
jbe 0x4cd63e
push 0x6376e4
push 0xf815
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004ba090
add esp, 0x14
lea eax, [ebx + 0xb]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.005b8427
mov esp, ebp
pop ebp
ret
movzx eax, word [edx + 0x20]
cmp edi, eax
jae 0x4cd6b4
mov eax, dword [ebp + 8]
mov ecx, eax
mov edx, dword [esp + 0x10]
mov dword [esp + 0x14], eax
add eax, edi
cmp eax, edx
jbe 0x4cd661
mov ecx, edx
sub ecx, edi
mov dword [esp + 0x14], ecx
add edi, dword [esp + 0xc]
cmp dword [ebp + 0x10], ebx
je 0x4cd684
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x48]
call fcn.004c5f80
mov ebx, eax
test ebx, ebx
jne 0x4cd691
push dword [esp + 0x14]
push esi
push edi
jmp 0x4cd687
push ecx
push edi
push esi
call fcn.005cfab0
add esp, 0xc
xor ebx, ebx
add esi, dword [esp + 0x14]
xor edi, edi
mov eax, dword [ebp + 8]
sub eax, dword [esp + 0x14]
mov dword [esp + 0x24], esi
mov dword [esp + 0x14], eax
test ebx, ebx
jne 0x4cd93c
mov edx, dword [esp + 0x30]
jmp 0x4cd6bd
sub edi, eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], eax
test eax, eax
je 0x4cd93c
mov eax, dword [esp + 0x2c]
movzx ecx, word [edx + 0x20]
mov dword [esp + 0x1c], ecx
mov eax, dword [eax + 0x24]
add eax, 0xfffffffc
test byte [edx + 0x40], 4
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0xc]
mov esi, dword [ecx + eax]
lea ecx, [edx + 0xc]
bswap esi
mov dword [esp + 0x18], esi
mov dword [esp + 0xc], ecx
jne 0x4cd795
mov eax, dword [edx + 0x1c]
sub eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
dec edx
add eax, edx
xor edx, edx
div dword [esp + 0x20]
mov edx, eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x1c], edx
cmp edx, dword [eax + 0x38]
jle 0x4cd76d
lea ecx, [edx*8]
push 0
push ecx
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx]
call fcn.004b7df0
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4cd753
mov eax, 7
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.005b8427
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x30]
lea eax, [edx + edx]
mov dword [ecx + 0x38], eax
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov dword [ecx], eax
jmp 0x4cd771
mov dword [esp + 0xc], ecx
lea eax, [edx*4]
push eax
push 0
push dword [ecx]
call fcn.005d05b0
mov eax, dword [esp + 0x3c]
add esp, 0xc
mov edx, dword [esp + 0xc]
or byte [eax + 0x40], 4
mov eax, esi
jmp 0x4cd7c8
xor edx, edx
mov eax, edi
div dword [esp + 0x20]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0xc]
mov dword [esp + 0x1c], eax
mov ecx, dword [edx]
mov ecx, dword [ecx + eax*4]
mov eax, esi
test ecx, ecx
je 0x4cd7cc
mov eax, dword [esp + 0x1c]
mov esi, ecx
mov edi, dword [esp + 0x10]
mov dword [esp + 0x28], eax
mov eax, ecx
mov dword [esp + 0x18], esi
mov dword [esp + 0xc], edx
test eax, eax
je 0x4cd900
mov ecx, dword [esp + 0x28]
shl ecx, 2
mov dword [esp + 0x1c], ecx
nop
mov eax, dword [edx]
mov dword [ecx + eax], esi
cmp edi, dword [esp + 0x20]
jb 0x4cd828
mov eax, dword [edx]
mov eax, dword [ecx + eax + 4]
test eax, eax
je 0x4cd804
sub edi, dword [esp + 0x20]
mov esi, eax
mov dword [esp + 0x18], esi
jmp 0x4cd8e5
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x18]
push eax
push 0
mov edx, esi
call fcn.004cd430
mov esi, dword [esp + 0x20]
add esp, 8
sub edi, dword [esp + 0x20]
mov ebx, eax
jmp 0x4cd8e5
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
sub ecx, edi
lea eax, [edi + edx]
cmp eax, dword [esp + 0x20]
mov eax, dword [esp + 0x2c]
cmovbe ecx, edx
mov edx, 2
mov dword [esp + 0x10], ecx
mov ecx, dword [eax]
xor eax, eax
cmp dword [ebp + 0x10], eax
cmove eax, edx
push eax
lea eax, [esp + 0x34]
push eax
mov eax, dword [ecx + 0xd0]
push esi
push ecx
call eax
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x4cd8d7
mov ebx, dword [esp + 0x30]
add edi, 4
mov eax, dword [ebx + 4]
add edi, eax
cmp dword [ebp + 0x10], 0
mov esi, dword [eax]
bswap esi
mov dword [esp + 0x18], esi
je 0x4cd8af
mov ecx, ebx
call fcn.004c5f80
mov dword [esp + 0x28], eax
test eax, eax
je 0x4cd89b
mov ebx, dword [esp + 0x30]
jmp 0x4cd8c6
push dword [esp + 0x10]
push dword [esp + 0x28]
push edi
call fcn.005cfab0
mov ebx, dword [esp + 0x3c]
jmp 0x4cd8bd
push dword [esp + 0x10]
push edi
push dword [esp + 0x2c]
call fcn.005cfab0
add esp, 0xc
xor eax, eax
mov dword [esp + 0x28], eax
test ebx, ebx
je 0x4cd8d1
mov ecx, ebx
call fcn.004c5760
mov ebx, dword [esp + 0x28]
xor edi, edi
mov eax, dword [esp + 0x10]
sub dword [esp + 0x14], eax
je 0x4cd93c
add dword [esp + 0x24], eax
test ebx, ebx
jne 0x4cd93c
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0xc]
add ecx, 4
mov dword [esp + 0x1c], ecx
test esi, esi
jne 0x4cd7e0
cmp dword [esp + 0x14], 0
jbe 0x4cd93c
push 0x6376e4
push 0xf8a8
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004ba090
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.005b8427
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x34]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005b8427
mov esp, ebp
pop ebp
ret