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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x780784]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
push edi
mov eax, dword [ebx + 0x14]
mov ecx, dword [eax + 0x24]
mov eax, 0xaaaaaaab
add ecx, ecx
mul ecx
mov ecx, edx
shr ecx, 1
xor eax, eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], eax
mov edi, dword [ebx + 0x74]
cmp dword [edi + 0x14], 0
jge 0x4d5cb0
push edi
call fcn.004d7d90
add esp, 4
test eax, eax
jne 0x4d5eda
mov ecx, dword [ebp - 0x20]
mov al, byte [edi + 0xc]
test al, al
jne 0x4d5cc0
cmp dword [edi + 0x14], ecx
jle 0x4d5eda
movsx edx, byte [ebx + 0x44]
mov dword [ebp - 0x2c], edx
test edx, edx
jne 0x4d5d2b
test al, al
je 0x4d5eda
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 8]
test eax, eax
je 0x4d5cfc
nop dword [eax]
cmp eax, ebx
je 0x4d5cf5
cmp byte [eax], 0
jne 0x4d5cf5
mov ecx, dword [eax + 0x74]
cmp ecx, dword [ebx + 0x74]
je 0x4d5eb7
mov eax, dword [eax + 0x18]
test eax, eax
jne 0x4d5ce0
lea eax, [ebx + 0x7c]
push eax
push edi
call fcn.004d5f00
mov esi, eax
add esp, 8
test esi, esi
jne 0x4d5eda
mov ecx, dword [ebp - 0x20]
mov byte [ebx + 0x44], 1
mov dword [ebx + 0x46], eax
mov eax, dword [ebx + 0x7c]
mov dword [ebx + 0x78], edi
mov dword [ebx + 0x74], eax
jmp 0x4d5c93
mov ecx, dword [ebx + edx*4 + 0x74]
movzx eax, word [ebx + edx*2 + 0x46]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x28], eax
mov esi, dword [ecx + 0x48]
test byte [esi + 0x1c], 4
mov edx, dword [esi + 0x14]
je 0x4d5d76
mov eax, dword [edx + 0x18]
cmp eax, dword [esi + 0x18]
jb 0x4d5d76
cmp dword [edx + 0x60], 0
je 0x4d5db0
push esi
call fcn.00539440
add esp, 4
test eax, eax
je 0x4d5d6f
push esi
call fcn.00539540
add esp, 4
mov dword [ebp - 0x18], eax
jmp 0x4d5da5
xor eax, eax
mov dword [ebp - 0x18], eax
jmp 0x4d5da5
mov eax, dword [edx + 0x28]
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x4d5e45
mov eax, dword [edx + 0x94]
push esi
cmp eax, dword [edx + 0x98]
jbe 0x4d5d9a
call fcn.004eef70
jmp 0x4d5d9f
call fcn.004f02b0
mov dword [ebp - 0x18], eax
add esp, 4
mov ecx, dword [ebp - 0x1c]
test eax, eax
jne 0x4d5e45
cmp dword [ecx + 0x14], 0
jge 0x4d5dc9
push ecx
call fcn.004d7d90
add esp, 4
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x4d5e45
mov ecx, dword [ebp - 0x1c]
cmp byte [edi + 3], 0
je 0x4d5e01
cmp byte [edi + 0xc], 1
jne 0x4d5e01
mov ax, word [edi + 0x1c]
cmp ax, word [edi + 0x18]
jne 0x4d5e01
cmp dword [ecx + 4], 1
je 0x4d5e01
movzx eax, word [ecx + 0x18]
cmp eax, dword [ebp - 0x28]
jne 0x4d5e01
lea eax, [ebp - 0x14]
push eax
push edi
push ecx
call fcn.004d7640
add esp, 0xc
mov dword [ebp - 0x18], eax
jmp 0x4d5e45
mov eax, dword [ebx + 0x14]
push dword [eax + 0x20]
call fcn.004f1440
movzx ecx, byte [ebx + 3]
mov esi, eax
and ecx, 1
push ecx
xor ecx, ecx
cmp dword [ebp - 0x2c], 1
sete cl
push ecx
push esi
push dword [ebp - 0x28]
push dword [ebp - 0x1c]
call fcn.004d6000
mov dword [ebp - 0x18], eax
add esp, 0x18
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4d5e42
push eax
call fcn.004f18a0
add esp, 4
mov dword [ebp - 0x24], esi
mov edx, dword [edi + 0x48]
mov byte [edi + 0xc], 0
test byte [edx + 0x1c], 0x20
je 0x4d5e91
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.0060d430
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x4d5e9a
push edx
call fcn.00515ff0
add esp, 4
dec byte [ebx + 0x44]
movsx eax, byte [ebx + 0x44]
mov esi, dword [ebp - 0x18]
mov eax, dword [ebx + eax*4 + 0x78]
mov dword [ebx + 0x74], eax
test esi, esi
jne 0x4d5eda
mov ecx, dword [ebp - 0x20]
jmp 0x4d5c93
push 0x6d8534
push 0x11afe
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004c19e0
add esp, 0x14
mov esi, 0xb
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4d5eea
push eax
call fcn.004f18a0
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0060cdfa
mov esp, ebp
pop ebp
ret