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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x7cdffc]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
push edi
mov edi, edx
xor esi, esi
mov edx, dword [ebp + 0xc]
mov ebx, ecx
mov ecx, dword [ebp + 8]
mov eax, edx
and eax, 1
mov dword [esp + 0x10], edi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], eax
cmp edi, 1
je 0x4c1d52
cmp byte [ebx + 0x16], 0
je 0x4c1d52
cmp byte [ebx + 0x10], 1
je 0x4c1d42
test dl, 2
je 0x4c1d52
mov dword [esp + 0x20], 1
cmp dword [ebx + 0xc8], esi
je 0x4c1d56
mov dword [esp + 0x20], esi
test edi, edi
jne 0x4c1d88
push 0x7961e4
push 0xb5c1
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.004b68a0
add esp, 0x10
lea eax, [edi + 0xb]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.006a7b19
mov esp, ebp
pop ebp
ret
mov edx, dword [ebx + 0x28]
mov byte [ebx + 0x17], 1
test edx, edx
je 0x4c1d9a
mov esi, edx
jmp 0x4c1f25
cmp dword [esp + 0x20], esi
je 0x4c1eb8
mov ecx, dword [ebx + 0xe0]
test ecx, ecx
je 0x4c1dd1
lea eax, [esp + 0x18]
mov edx, edi
push eax
call fcn.004c4f80
mov esi, eax
add esp, 4
test esi, esi
jne 0x4c209f
cmp dword [esp + 0x18], eax
jne 0x4c1eb8
mov eax, dword [ebx + 0x98]
mov ecx, edi
push 0
dec ecx
cdq
push ecx
push edx
push eax
mov dword [esp + 0x40], 0
mov dword [esp + 0x38], ecx
call fcn.006a8720
mov ecx, dword [ebx + 0x3c]
lea edi, [esp + 0x30]
push edi
mov edi, dword [ebx + 0x98]
mov esi, eax
push edi
mov eax, dword [ecx]
push edx
push esi
push ecx
mov eax, dword [eax + 0x44]
call eax
mov esi, eax
add esp, 0x14
mov dword [esp + 0x2c], esi
test esi, esi
jne 0x4c209f
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0x10]
test eax, eax
je 0x4c1eb8
cmp byte [ebx + 0x10], 1
jbe 0x4c1e7a
mov edx, edi
mov ecx, ebx
call fcn.004c20e0
mov dword [esp + 0x14], eax
test eax, eax
je 0x4c1e76
push dword [esp + 0x30]
mov eax, dword [ebx + 0x98]
mov esi, dword [ebx + 0x3c]
push 0
push dword [esp + 0x30]
cdq
mov edi, dword [esi]
push edx
push eax
call fcn.006a8720
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
mov esi, dword [esp + 0x3c]
add esp, 0x10
mov edi, dword [esp + 0x10]
jmp 0x4c1e8e
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x14]
mov edx, edi
push ecx
push eax
mov ecx, ebx
call fcn.004c0950
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4c1eb0
mov ecx, dword [esp + 0x24]
mov dword [ecx], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.006a7b19
mov esp, ebp
pop ebp
ret
test esi, esi
jne 0x4c209f
mov ecx, dword [ebx + 0xdc]
movzx eax, byte [ecx + 0x1d]
and eax, 3
push eax
push edi
push dword [ecx + 0x28]
call dword [0x81ea84]
add esp, 0xc
mov dword [esp + 0x14], eax
test eax, eax
jne 0x4c1efe
mov ecx, dword [ebx + 0xdc]
lea eax, [esp + 0x14]
push eax
mov edx, edi
call fcn.004bca00
mov esi, eax
add esp, 4
test esi, esi
jne 0x4c209f
mov eax, dword [esp + 0x14]
mov ecx, dword [ebx + 0xdc]
mov edx, edi
push eax
call fcn.004bcaf0
mov ecx, dword [esp + 0x28]
add esp, 4
mov dword [ecx], eax
test eax, eax
jne 0x4c1f21
lea esi, [eax + 7]
jmp 0x4c209f
mov eax, dword [esp + 0x1c]
test esi, esi
jne 0x4c209f
mov ecx, dword [ecx]
mov dword [esp + 0x10], ecx
cmp dword [ecx + 0x10], esi
je 0x4c1f54
test eax, eax
jne 0x4c1f54
inc dword [ebx + 0xb8]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.006a7b19
mov esp, ebp
pop ebp
ret
mov dword [ecx + 0x10], ebx
cmp edi, 0x7fffffff
ja 0x4c2047
mov eax, dword [0x7d097c]
cdq
idiv dword [ebx + 0x98]
inc eax
cmp edi, eax
je 0x4c2047
cmp byte [ebx + 0xf], 0
mov edx, dword [esp + 0x1c]
jne 0x4c1fdb
cmp dword [ebx + 0x18], edi
jb 0x4c1fdb
test edx, edx
jne 0x4c1fdb
mov eax, dword [ebx + 0x3c]
cmp dword [eax], edx
je 0x4c1fdb
mov eax, dword [ebx + 0xe0]
test eax, eax
je 0x4c1fc1
cmp dword [esp + 0x20], edx
jne 0x4c1fc1
lea ecx, [esp + 0x18]
mov edx, edi
push ecx
mov ecx, eax
call fcn.004c4f80
mov ecx, dword [esp + 0x14]
mov esi, eax
add esp, 4
test esi, esi
jne 0x4c2069
mov edx, dword [esp + 0x18]
inc dword [ebx + 0xbc]
call fcn.004bfcc0
mov esi, eax
test esi, esi
je 0x4c2033
jmp 0x4c2065
cmp edi, dword [ebx + 0x9c]
jbe 0x4c1fea
mov esi, 0xd
jmp 0x4c2069
test edx, edx
je 0x4c2020
mov eax, dword [0x8b2648]
test eax, eax
je 0x4c1ff9
call eax
cmp edi, dword [ebx + 0x1c]
ja 0x4c2008
mov ecx, dword [ebx + 0x38]
mov edx, edi
call fcn.004bc370
mov edx, edi
mov ecx, ebx
call fcn.004beca0
mov eax, dword [0x8b264c]
test eax, eax
je 0x4c201c
call eax
mov ecx, dword [esp + 0x10]
push dword [ebx + 0x98]
push 0
push dword [ecx + 4]
call fcn.006e6ec0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.006a7b19
mov esp, ebp
pop ebp
ret
push 0x7961e4
push 0xb611
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.004b68a0
add esp, 0x10
mov esi, 0xb
mov ecx, dword [esp + 0x10]
test byte [ecx + 0x18], 2
je 0x4c2076
mov dl, 1
call fcn.004bc8c0
mov eax, dword [ecx + 0x1c]
dec dword [eax + 0xc]
cmp dword [ecx + 0x14], 1
jne 0x4c208c
mov eax, dword [ecx + 0x1c]
mov dword [eax + 0x2c], 0
mov eax, dword [ecx + 0x1c]
push 1
push dword [ecx]
push dword [eax + 0x28]
call dword [0x81ea88]
add esp, 0xc
cmp dword [ebx + 0x78], 0
jne 0x4c20b8
mov eax, dword [ebx + 0xdc]
cmp dword [eax + 0xc], 0
jne 0x4c20b8
mov ecx, ebx
call fcn.004bf0e0
mov ecx, dword [esp + 0x24]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword [ecx], 0
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.006a7b19
mov esp, ebp
pop ebp
ret