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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x5ab3e8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov eax, dword [ebx + 0x14]
mov esi, dword [ebx + 0x74]
mov ecx, dword [eax + 0x28]
mov eax, 0xaaaaaaab
add ecx, ecx
mul ecx
mov ecx, edx
shr ecx, 1
xor eax, eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], eax
cmp dword [esi + 0x14], 0
jge 0x4dbf10
push esi
call fcn.004de2e0
add esp, 4
test eax, eax
jne 0x4dc21f
mov ecx, dword [ebp - 0x1c]
mov al, byte [esi + 0xc]
test al, al
jne 0x4dbf20
cmp dword [esi + 0x14], ecx
jle 0x4dc21f
movsx ecx, byte [ebx + 0x44]
mov dword [ebp - 0x24], ecx
test ecx, ecx
jne 0x4dbf8b
test al, al
je 0x4dc21f
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 8]
test eax, eax
je 0x4dbf5c
lea ecx, [ecx]
cmp eax, ebx
je 0x4dbf55
cmp byte [eax], 0
jne 0x4dbf55
mov ecx, dword [eax + 0x74]
cmp ecx, dword [ebx + 0x74]
je 0x4dc1fc
mov eax, dword [eax + 0x18]
test eax, eax
jne 0x4dbf40
lea eax, [ebx + 0x7c]
push eax
push esi
call fcn.004dc250
mov edi, eax
add esp, 8
test edi, edi
jne 0x4dc21f
mov ecx, dword [ebp - 0x1c]
mov byte [ebx + 0x44], 1
mov dword [ebx + 0x78], esi
mov esi, dword [ebx + 0x7c]
mov dword [ebx + 0x46], eax
mov dword [ebx + 0x74], esi
jmp 0x4dbef6
mov edi, dword [ebx + ecx*4 + 0x74]
movzx eax, word [ebx + ecx*2 + 0x46]
mov dword [ebp - 0x28], eax
mov ecx, dword [edi + 0x48]
test byte [ecx + 0x1c], 4
mov edx, dword [ecx + 0x14]
je 0x4dbfb9
mov eax, dword [edx + 0x18]
cmp eax, dword [ecx + 0x18]
jb 0x4dbfb9
cmp dword [edx + 0x60], 0
je 0x4dbff0
push ecx
call fcn.005453a0
jmp 0x4dbfe2
mov eax, dword [edx + 0x28]
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x4dc185
mov eax, dword [edx + 0x94]
push ecx
cmp eax, dword [edx + 0x98]
jbe 0x4dbfdd
call fcn.004f6e30
jmp 0x4dbfe2
call fcn.004f8110
add esp, 4
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x4dc185
cmp dword [edi + 0x14], 0
jge 0x4dc00a
push edi
call fcn.004de2e0
add esp, 4
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x4dc185
cmp byte [esi + 3], 0
je 0x4dc045
cmp byte [esi + 0xc], 1
jne 0x4dc045
mov ax, word [esi + 0x1c]
cmp ax, word [esi + 0x18]
jne 0x4dc045
cmp dword [edi + 4], 1
je 0x4dc045
movzx eax, word [edi + 0x18]
cmp eax, dword [ebp - 0x28]
jne 0x4dc045
lea eax, [ebp - 0x14]
push eax
push esi
push edi
call fcn.004ddb40
add esp, 0xc
mov dword [ebp - 0x18], eax
jmp 0x4dc185
mov eax, dword [ebx + 0x14]
push dword [eax + 0x24]
call fcn.004f9840
movzx ecx, byte [ebx + 3]
and ecx, 1
mov dword [ebp - 0x2c], eax
push ecx
xor ecx, ecx
cmp dword [ebp - 0x24], 1
sete cl
push ecx
push eax
push dword [ebp - 0x28]
push edi
call fcn.004dc490
mov edi, dword [ebp - 0x20]
add esp, 0x18
mov dword [ebp - 0x18], eax
test edi, edi
je 0x4dc17f
cmp edi, dword [0x5b711c]
jb 0x4dc0ec
cmp edi, dword [0x5b7120]
jae 0x4dc0ec
mov eax, dword [0x5b7124]
test eax, eax
je 0x4dc0a3
push eax
call dword [0x5ac218]
add esp, 4
mov eax, dword [0x5b7128]
dec dword [0x5b6e24]
mov dword [edi], eax
xor eax, eax
mov ecx, dword [0x5b712c]
inc ecx
mov dword [0x5b7128], edi
cmp ecx, dword [0x5b7118]
mov dword [0x5b712c], ecx
setl al
mov dword [0x5b7130], eax
mov eax, dword [0x5b7124]
test eax, eax
je 0x4dc17f
push eax
call dword [0x5ac220]
jmp 0x4dc17c
push edi
call dword [0x5ac1f4]
mov ecx, dword [0x5b7124]
add esp, 4
mov dword [ebp - 0x24], eax
test ecx, ecx
je 0x4dc116
push ecx
call dword [0x5ac218]
mov ecx, dword [0x5b7124]
add esp, 4
mov eax, dword [ebp - 0x24]
sub dword [0x5b6e28], eax
test ecx, ecx
je 0x4dc12a
push ecx
call dword [0x5ac220]
add esp, 4
cmp dword [0x5ac1c8], 0
je 0x4dc175
mov eax, dword [0x5b6e80]
test eax, eax
je 0x4dc146
push eax
call dword [0x5ac218]
add esp, 4
push edi
call dword [0x5ac1f4]
sub dword [0x5b6e20], eax
dec dword [0x5b6e44]
push edi
call dword [0x5ac1ec]
mov eax, dword [0x5b6e80]
add esp, 8
test eax, eax
je 0x4dc17f
push eax
call dword [0x5ac220]
jmp 0x4dc17c
push edi
call dword [0x5ac1ec]
add esp, 4
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x20], eax
mov edx, dword [esi + 0x48]
mov byte [esi + 0xc], 0
test byte [edx + 0x1c], 0x20
je 0x4dc1d1
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov edi, dword [esi]
cdq
push edx
push eax
push 0
push ecx
call fcn.0048c6e0
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x4dc1da
push edx
call fcn.0051fb60
add esp, 4
mov cl, byte [ebx + 0x44]
mov edi, dword [ebp - 0x18]
lea eax, [ecx - 1]
mov byte [ebx + 0x44], al
movsx eax, cl
mov esi, dword [ebx + eax*4 + 0x74]
mov dword [ebx + 0x74], esi
test edi, edi
jne 0x4dc21f
mov ecx, dword [ebp - 0x1c]
jmp 0x4dbef6
push 0x595f94
push 0x11bf0
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004d8010
add esp, 0x14
mov edi, 0xb
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x4dc22f
push eax
call fcn.004f9d30
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048b6e9
mov esp, ebp
pop ebp
ret