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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
push esi
mov ebx, ecx
mov dword [esp + 0x10], 0
push edi
mov edi, edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], edi
dec dword [ebx + 0x38]
mov esi, dword [ebx + 8]
mov edx, dword [edi + 0x1c]
mov ecx, dword [ebx + 0x38]
and edx, 0x80
cmp byte [ebp + 0x24], 0
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x2c], edx
jne 0x4ccc6a
test edx, edx
lea edi, [esi + 0x70]
mov edx, 0x21
mov dword [esp + 0x20], edi
mov eax, 0x1e
cmove eax, edx
mov edx, dword [esi + 0x74]
mov dword [esp + 0x28], eax
cmp dword [esi + 0x78], edx
jg 0x4ccc01
push dword [ebp + 0x14]
mov edx, eax
push ecx
push dword [ebp + 0xc]
mov ecx, esi
call fcn.00497c60
add esp, 0xc
mov edx, eax
jmp 0x4ccc45
mov ebx, dword [esp + 0x28]
lea eax, [edx + 1]
mov dword [esi + 0x74], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x70]
xor edi, edi
mov byte [eax + ecx*4], bl
mov ebx, dword [ebp + 0xc]
mov dword [eax + ecx*4 + 4], ebx
mov ebx, dword [esp + 0x18]
mov dword [eax + ecx*4 + 8], ebx
mov ebx, dword [ebp + 0x14]
mov dword [eax + ecx*4 + 0xc], ebx
mov ebx, dword [esp + 0x24]
mov word [eax + ecx*4 + 2], di
mov dword [eax + ecx*4 + 0x10], edi
mov byte [eax + ecx*4 + 1], 0
lea eax, [esi + 0x70]
mov dword [esp + 0x20], eax
mov eax, dword [esi]
mov edi, dword [esp + 0x1c]
cmp byte [eax + 0x57], 0
jne 0x4ccc6a
mov eax, dword [esp + 0x20]
lea ecx, [edx + edx*4]
mov eax, dword [eax]
mov byte [eax + ecx*4 + 1], 0xfd
lea ecx, [eax + ecx*4]
mov ax, word [ebp + 0x18]
cwde
mov dword [ecx + 0x10], eax
push 0
push 0
mov edx, edi
mov ecx, ebx
call fcn.004d3a20
mov esi, dword [ebp + 8]
add esp, 8
test eax, eax
jne 0x4ccc91
test esi, esi
jne 0x4ccc91
mov eax, dword [ebp + 0x28]
mov dword [esp + 0x20], eax
jmp 0x4ccf05
mov dword [esp + 0x20], 0
mov edi, esi
test esi, esi
je 0x4cccec
mov esi, dword [esp + 0x1c]
cmp byte [edi + 8], 0x80
jne 0x4ccce2
test byte [edi + 9], 3
je 0x4ccce2
cmp byte [edi + 0xa], 0
je 0x4cccbf
mov dword [esp + 0x20], 0xffffffff
jmp 0x4ccce2
movzx eax, byte [ebp + 0x20]
mov edx, edi
push eax
push esi
mov ecx, ebx
call fcn.004f4f00
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x4ccce2
mov eax, dword [esp + 0x20]
or eax, dword [ecx + 0x10]
mov dword [esp + 0x20], eax
mov edi, dword [edi + 0x20]
test edi, edi
jne 0x4ccca3
mov esi, dword [ebp + 8]
mov edi, dword [esp + 0x1c]
mov ecx, ebx
mov edx, edi
call fcn.004d3930
mov edx, dword [ebx + 0x2c]
or dword [esp + 0x20], eax
mov ecx, dword [esp + 0x10]
lea eax, [edx + 1]
mov dword [esp + 0x14], eax
movsx eax, word [edi + 0x22]
inc eax
add eax, edx
mov dword [ebx + 0x2c], eax
mov edx, dword [ecx + 0x74]
cmp dword [ecx + 0x78], edx
jg 0x4ccd35
push 0
push dword [esp + 0x18]
mov edx, 0x4f
push dword [ebp + 0x14]
call fcn.00497c60
add esp, 0xc
jmp 0x4ccd6b
lea eax, [edx + 1]
mov dword [ecx + 0x74], eax
lea ecx, [edx + edx*4]
mov eax, dword [esp + 0x10]
mov edx, dword [ebp + 0x14]
mov eax, dword [eax + 0x70]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x14]
mov dword [eax + ecx*4], 0x4f
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
xor eax, eax
cmp ax, word [edi + 0x22]
jge 0x4ccdcd
mov esi, dword [esp + 0x10]
xor ebx, ebx
mov edx, dword [esp + 0x20]
nop dword [eax]
cmp edx, 0xffffffff
je 0x4ccd97
cmp ebx, 0x1f
jg 0x4ccdbd
mov eax, 1
mov ecx, ebx
shl eax, cl
test edx, eax
je 0x4ccdbd
mov edx, ebx
mov ecx, edi
call fcn.004c2660
mov ecx, dword [esp + 0x14]
mov edx, edi
inc ecx
cwde
add eax, ecx
mov ecx, esi
push eax
push ebx
push dword [ebp + 0xc]
call fcn.004b4850
mov edx, dword [esp + 0x2c]
add esp, 0xc
movsx eax, word [edi + 0x22]
inc ebx
cmp ebx, eax
jl 0x4ccd80
mov esi, dword [ebp + 8]
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
mov edi, esi
mov eax, dword [eax + 0x74]
mov dword [esp + 0x28], eax
test esi, esi
je 0x4cce35
mov esi, dword [esp + 0x1c]
cmp byte [edi + 8], 0x80
jne 0x4cce27
cmp byte [edi + 9], 1
jne 0x4cce27
cmp byte [edi + 0xa], 0
jne 0x4cce10
push dword [esp + 0x18]
movzx eax, byte [ebp + 0x20]
mov edx, edi
push eax
push dword [esp + 0x1c]
mov ecx, ebx
push esi
call fcn.004f4f50
add esp, 0x10
jmp 0x4cce27
cmp dword [ebx + 0x74], 0
jne 0x4cce27
push dword [esp + 0x14]
mov edx, edi
mov ecx, ebx
push esi
call fcn.004f4310
add esp, 8
mov edi, dword [edi + 0x20]
test edi, edi
jne 0x4ccde2
mov esi, dword [ebp + 8]
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x10]
mov edx, dword [edi + 0x74]
cmp eax, edx
jge 0x4ccee0
cmp dword [esp + 0x2c], 0
mov eax, 0x1e
mov ecx, 0x21
cmove eax, ecx
mov dword [esp + 0x2c], eax
cmp dword [edi + 0x78], edx
jg 0x4cce79
push dword [ebp + 0x14]
mov edx, eax
mov ecx, edi
push dword [esp + 0x1c]
push dword [ebp + 0xc]
call fcn.00497c60
add esp, 0xc
mov edx, eax
jmp 0x4ccebd
mov ebx, dword [esp + 0x2c]
lea eax, [edx + 1]
mov dword [edi + 0x74], eax
lea ecx, [edx + edx*4]
mov eax, dword [edi + 0x70]
xor esi, esi
mov word [eax + ecx*4 + 2], si
mov esi, dword [ebp + 0xc]
mov dword [eax + ecx*4 + 4], esi
mov esi, dword [esp + 0x18]
mov dword [eax + ecx*4 + 8], esi
mov esi, dword [ebp + 0x14]
mov byte [eax + ecx*4], bl
mov ebx, dword [esp + 0x24]
mov dword [eax + ecx*4 + 0xc], esi
mov esi, dword [ebp + 8]
mov dword [eax + ecx*4 + 0x10], 0
mov byte [eax + ecx*4 + 1], 0
mov eax, dword [edi]
cmp byte [eax + 0x57], 0
jne 0x4ccedb
mov eax, dword [edi + 0x70]
lea ecx, [edx + edx*4]
mov byte [eax + ecx*4 + 1], 0xfd
lea ecx, [eax + ecx*4]
mov ax, word [ebp + 0x18]
cwde
mov dword [ecx + 0x10], eax
or edx, 0xffffffff
jmp 0x4ccee3
mov edx, dword [ebp + 0x28]
mov edi, dword [esp + 0x1c]
mov ecx, ebx
push 0
push 0
push 0
push dword [esp + 0x20]
mov dword [esp + 0x30], edx
mov edx, edi
call fcn.004d3330
mov eax, dword [esp + 0x30]
add esp, 0x10
cmp byte [edi + 0x2b], 2
je 0x4cd07f
push eax
push 0
push dword [ebp + 0x10]
mov edx, edi
mov ecx, ebx
push dword [ebp + 0xc]
call fcn.004cd130
mov ecx, dword [esp + 0x20]
xor edx, edx
add esp, 0x10
cmp byte [ebp + 0x1c], dl
setne dl
mov eax, dword [ecx + 0x74]
mov dword [esp + 0x2c], eax
cmp dword [ecx + 0x78], eax
jg 0x4ccf51
push 0
push edx
push dword [ebp + 0xc]
mov edx, 0x81
call fcn.00497c60
add esp, 0xc
jmp 0x4ccf88
mov esi, dword [ebp + 0xc]
inc eax
mov dword [ecx + 0x74], eax
mov eax, dword [esp + 0x2c]
lea ecx, [eax + eax*4]
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x70]
mov dword [eax + ecx*4 + 4], esi
mov esi, dword [ebp + 8]
mov dword [eax + ecx*4], 0x81
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
cmp byte [ebx + 0x12], 0
je 0x4ccfa2
mov ecx, dword [edi]
test ecx, ecx
je 0x4ccfbc
mov edx, str.sqlite_stat1
call fcn.00476b80
test eax, eax
jne 0x4ccfbc
mov edx, dword [esp + 0x10]
mov ecx, dword [edx]
cmp byte [ecx + 0x57], 0
je 0x4cd00d
push edi
mov edx, 0xfffffffa
call fcn.00498770
add esp, 4
mov edx, dword [esp + 0x10]
cmp byte [ebp + 0x24], 0
je 0x4ccfe0
mov eax, dword [edx + 0x74]
test eax, eax
jle 0x4ccfe0
lea ecx, [eax + eax*4]
mov esi, 4
mov eax, dword [edx + 0x70]
mov word [eax + ecx*4 - 0x12], si
mov esi, dword [ebp + 8]
mov eax, dword [esp + 0x20]
test eax, eax
js 0x4cd054
cmp eax, dword [ebp + 0xc]
je 0x4cd054
mov ecx, dword [edx + 0x74]
cmp dword [edx + 0x78], ecx
jg 0x4cd021
mov ecx, dword [esp + 0x10]
mov edx, 0x81
push 0
push 0
push eax
call fcn.00497c60
add esp, 0xc
jmp 0x4cd054
mov eax, dword [edx + 0x74]
lea ecx, [eax + eax*4]
mov eax, dword [edx + 0x70]
mov byte [eax + ecx*4 - 0x13], 0xfa
mov dword [eax + ecx*4 - 4], edi
jmp 0x4ccfc0
lea eax, [ecx + 1]
mov dword [edx + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edx + 0x70]
mov edx, dword [esp + 0x20]
mov dword [eax + ecx*4], 0x81
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x74]
test ecx, ecx
jle 0x4cd07f
mov eax, dword [eax + 0x70]
lea ecx, [ecx + ecx*4]
mov edx, 2
mov dword [esp + 0x2c], 0
cmp byte [ebp + 0x24], dl
cmovne edx, dword [esp + 0x2c]
mov word [eax + ecx*4 - 0x12], dx
push 0
push 0
push dword [esp + 0x1c]
mov edx, edi
mov ecx, ebx
push 0
call fcn.004d4d20
add esp, 0x10
test esi, esi
je 0x4cd0ec
nop dword [eax]
cmp byte [esi + 8], 0x80
jne 0x4cd0e5
cmp byte [esi + 9], 2
jne 0x4cd0e5
cmp byte [esi + 0xa], 0
jne 0x4cd0ce
push dword [esp + 0x18]
movzx eax, byte [ebp + 0x20]
mov edx, esi
push eax
push dword [esp + 0x1c]
mov ecx, ebx
push edi
call fcn.004f4f50
add esp, 0x10
jmp 0x4cd0e5
cmp dword [ebx + 0x74], 0
jne 0x4cd0e5
push dword [esp + 0x14]
mov edx, esi
mov ecx, ebx
push edi
call fcn.004f4310
add esp, 8
mov esi, dword [esi + 0x20]
test esi, esi
jne 0x4cd0a0
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x18]
not ebx
mov ecx, dword [edx + 0xc]
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x4cd111
push ebx
call fcn.00498480
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ecx + 0x40]
mov eax, dword [edx + 0x74]
pop edi
pop esi
mov dword [ecx + ebx*4], eax
pop ebx
mov esp, ebp
pop ebp
ret