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

Disassembly:
sub esp, 0xc4
mov eax, dword [0x10066ffc]
xor eax, esp
mov dword [esp + 0xc0], eax
mov eax, dword [esp + 0xd4]
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ebp, dword [edi + 4]
mov ecx, dword [ebp + 4]
mov edx, dword [ecx + 0x18]
mov dword [esp + 0x5c], eax
mov eax, edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x60], edx
call fcn.10010b80
mov dword [esp + 0x14], ebp
mov eax, dword [ebp]
mov dword [esp + 0x18], eax
mov eax, ebp
call fcn.10006d60
mov ecx, dword [esp + 0xe0]
xor ebx, ebx
push 0x3b9aca00
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
push 0x64
push ebx
lea ecx, [esp + 0x78]
lea eax, [esp + 0x48]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x64], ebx
call fcn.10001f70
mov eax, dword [esp + 0x2c]
add esp, 0xc
cmp eax, ebx
je 0x1003d087
shr eax, 3
mov esi, 1
add eax, esi
push ebx
push eax
call fcn.1000e280
add esp, 8
mov dword [esp + 0x1c], eax
cmp eax, ebx
jne 0x1003cf25
mov dword [esp + 0x2c], esi
jmp 0x1003d087
mov edi, dword [ebp + 0x20]
call fcn.1000f530
mov dword [esp + 0x58], eax
cmp eax, ebx
jne 0x1003cf3e
mov dword [esp + 0x2c], esi
jmp 0x1003d083
mov eax, dword [0x10066110]
xor edx, edx
div dword [ebp + 0x20]
add eax, esi
cmp eax, dword [esp + 0x20]
ja 0x1003cf5b
mov ecx, eax
lea edx, [esp + 0x14]
call fcn.10007060
mov dword [esp + 0x30], str.Main_freelist:
mov edx, dword [ebp + 0xc]
mov ecx, dword [edx + 0x38]
lea eax, [ecx + 0x24]
call fcn.10002e30
push eax
lea eax, [ecx + 0x20]
call fcn.10002e30
push esi
lea ecx, [esp + 0x1c]
call fcn.10030dd0
mov dword [esp + 0x38], ebx
mov eax, dword [ebp + 4]
and dword [eax + 0x18], 0xefffffff
add esp, 8
xor edi, edi
cmp dword [esp + 0xdc], ebx
jle 0x1003cffb
cmp dword [esp + 0x24], ebx
je 0x1003cffb
mov eax, dword [esp + 0xd8]
mov esi, dword [eax + edi*4]
cmp esi, ebx
je 0x1003cff1
cmp byte [ebp + 0x11], bl
je 0x1003cfcd
cmp esi, 1
jle 0x1003cfcd
push ebx
push 1
lea eax, [esp + 0x1c]
call fcn.10030d40
add esp, 8
mov edx, dword [esp + 0xd8]
mov eax, dword [edx + edi*4]
push 0x7fffffff
push 0xffffffffffffffff
lea ecx, [esp + 0x6c]
push ecx
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.1003c8a0
add esp, 0x14
inc edi
cmp edi, dword [esp + 0xdc]
jl 0x1003cfa0
mov edx, dword [ebp + 4]
mov eax, dword [esp + 0x60]
mov esi, 1
mov dword [edx + 0x18], eax
cmp dword [esp + 0x20], esi
jb 0x1003d083
cmp dword [esp + 0x24], ebx
je 0x1003d083
mov ecx, esi
lea edx, [esp + 0x14]
call fcn.10007040
test eax, eax
jne 0x1003d049
mov ecx, esi
mov edi, ebp
call fcn.10006970
cmp eax, esi
jne 0x1003d037
cmp byte [ebp + 0x11], bl
jne 0x1003d049
push esi
push str.Page__d_is_never_used
lea edi, [esp + 0x1c]
call fcn.1001e800
add esp, 8
mov ecx, esi
lea edx, [esp + 0x14]
call fcn.10007040
test eax, eax
je 0x1003d07c
mov ecx, esi
mov edi, ebp
call fcn.10006970
cmp eax, esi
jne 0x1003d07c
cmp byte [ebp + 0x11], bl
je 0x1003d07c
push esi
push str.Pointer_map_page__d_is_referenced
lea edi, [esp + 0x1c]
call fcn.1001e800
add esp, 8
inc esi
cmp esi, dword [esp + 0x20]
jbe 0x1003d010
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x58]
call fcn.10004830
mov ecx, dword [esp + 0x1c]
push ecx
call sym.idmindex.dll_sqlite3_free
add esp, 4
cmp dword [esp + 0x2c], ebx
je 0x1003d0b0
lea esi, [esp + 0x3c]
call fcn.10001f50
inc dword [esp + 0x28]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x5c]
mov dword [edx], eax
cmp eax, ebx
jne 0x1003d0c7
lea esi, [esp + 0x3c]
call fcn.10001f50
mov eax, edi
call fcn.10006720
lea edi, [esp + 0x3c]
call fcn.1000e720
mov ecx, dword [esp + 0xd0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100595c0
add esp, 0xc4
ret