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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x101f62b4]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0x20], esi
mov eax, dword [esi + 0x14]
mov edi, dword [esi + 0x74]
mov edx, dword [eax + 0x28]
mov eax, 0xaaaaaaab
add edx, edx
mul edx
shr edx, 1
xor ecx, ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ecx
nop dword [eax]
cmp dword [edi + 0x14], 0
jge 0x1006c8b9
mov ecx, edi
call fcn.100650b0
test eax, eax
jne 0x1006cc19
mov edx, dword [esp + 0x18]
mov al, byte [edi + 0xc]
test al, al
jne 0x1006c8c9
cmp dword [edi + 0x14], edx
jle 0x1006cc19
movsx edx, byte [esi + 0x44]
mov dword [esp + 0x14], edx
test edx, edx
jne 0x1006ca50
test al, al
je 0x1006cc19
mov eax, dword [esi + 0x14]
mov eax, dword [eax + 8]
test eax, eax
je 0x1006c90c
nop dword [eax + eax]
cmp eax, esi
je 0x1006c905
cmp byte [eax], 0
jne 0x1006c905
mov ecx, dword [eax + 0x74]
cmp ecx, dword [esi + 0x74]
je 0x1006cbdd
mov eax, dword [eax + 0x18]
test eax, eax
jne 0x1006c8f0
mov ecx, dword [edi + 0x48]
mov ebx, dword [edi + 0x34]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
test byte [ecx + 0x1c], 4
mov edx, dword [ecx + 0x14]
mov dword [esp + 0xc], ebx
je 0x1006c944
mov eax, dword [edx + 0x18]
cmp eax, dword [ecx + 0x18]
jb 0x1006c944
cmp dword [edx + 0x60], 0
je 0x1006c977
call fcn.1005e190
jmp 0x1006c969
mov ebx, dword [edx + 0x28]
test ebx, ebx
jne 0x1006cc02
mov eax, dword [edx + 0x94]
cmp eax, dword [edx + 0x98]
jbe 0x1006c964
call fcn.1005fa90
jmp 0x1006c969
call fcn.1005f860
mov ebx, eax
test ebx, ebx
jne 0x1006cc02
mov ebx, dword [esp + 0xc]
push 0
push dword [edi + 4]
lea eax, [esp + 0x1c]
mov ecx, ebx
push eax
lea edx, [esp + 0x1c]
call fcn.10069320
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov dword [esp + 0xc], eax
mov ecx, edi
lea eax, [esp + 0xc]
push eax
call fcn.1006b240
mov eax, dword [esp + 0x18]
add esp, 4
cmp byte [ebx + 0x11], 0
mov dword [esp + 0x14], eax
je 0x1006c9ca
lea ecx, [esp + 0xc]
mov edx, eax
push ecx
push dword [edi + 4]
mov ecx, ebx
push 5
call fcn.10064180
add esp, 0xc
mov ebx, dword [esp + 0xc]
test ebx, ebx
jne 0x1006cc02
movzx eax, byte [edi + 0xc]
mov ebx, dword [esp + 0x10]
add eax, eax
push eax
lea eax, [edi + 0x1c]
push eax
lea eax, [ebx + 0x1c]
push eax
call fcn.1015f820
movzx eax, byte [edi + 0xc]
add esp, 0xc
shl eax, 2
push eax
lea eax, [edi + 0x24]
push eax
lea eax, [ebx + 0x24]
push eax
call fcn.1015f820
mov al, byte [edi + 0xc]
add esp, 0xc
mov byte [ebx + 0xc], al
mov ecx, edi
mov eax, dword [ebx + 0x38]
movzx edx, byte [eax]
and edx, 0xfffffff7
call fcn.10065420
mov eax, dword [edi + 0x38]
movzx ecx, byte [edi + 9]
mov edx, dword [esp + 0x14]
bswap edx
mov dword [ecx + eax + 8], edx
mov edx, dword [esp + 0x18]
mov dword [esi + 0x7c], ebx
xor ebx, ebx
mov byte [esi + 0x44], 1
xor eax, eax
mov dword [esi + 0x78], edi
mov edi, dword [esi + 0x7c]
mov dword [esi + 0x46], eax
mov dword [esi + 0x74], edi
jmp 0x1006c8a0
mov ecx, dword [esi + edx*4 + 0x74]
movzx eax, word [esi + edx*2 + 0x46]
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov edx, dword [ecx + 0x48]
test byte [edx + 0x1c], 4
mov ebx, dword [edx + 0x14]
je 0x1006ca84
mov eax, dword [ebx + 0x18]
cmp eax, dword [edx + 0x18]
jb 0x1006ca84
cmp dword [ebx + 0x60], 0
je 0x1006cabc
mov ecx, edx
call fcn.1005e190
jmp 0x1006caae
mov ebx, dword [ebx + 0x28]
test ebx, ebx
jne 0x1006cb5e
mov ecx, dword [edx + 0x14]
mov eax, dword [ecx + 0x94]
cmp eax, dword [ecx + 0x98]
mov ecx, edx
jbe 0x1006caa9
call fcn.1005fa90
jmp 0x1006caae
call fcn.1005f860
mov ecx, dword [esp + 0x10]
mov ebx, eax
test ebx, ebx
jne 0x1006cb5e
cmp dword [ecx + 0x14], 0
jge 0x1006cad5
call fcn.100650b0
mov ebx, eax
test ebx, ebx
jne 0x1006cb5e
mov ecx, dword [esp + 0x10]
cmp byte [edi + 3], 0
je 0x1006cb10
cmp byte [edi + 0xc], 1
jne 0x1006cb10
mov ax, word [edi + 0x1c]
cmp ax, word [edi + 0x18]
jne 0x1006cb10
cmp dword [ecx + 4], 1
mov ebx, dword [esp + 0xc]
je 0x1006cb14
movzx eax, word [ecx + 0x18]
cmp eax, ebx
jne 0x1006cb14
lea eax, [esp + 0x24]
mov edx, edi
push eax
call fcn.1006b040
add esp, 4
mov ebx, eax
jmp 0x1006cb5e
mov ebx, dword [esp + 0xc]
mov eax, dword [esi + 0x14]
mov ecx, dword [eax + 0x24]
call fcn.1005a070
movzx ecx, byte [esi + 3]
mov edx, ebx
and ecx, 1
mov dword [esp + 0xc], eax
push ecx
xor ecx, ecx
cmp dword [esp + 0x18], 1
sete cl
push ecx
mov ecx, dword [esp + 0x18]
push eax
call fcn.1006b310
mov ebx, eax
add esp, 0xc
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x1006cb56
mov ecx, eax
call fcn.1005a1d0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x1c], eax
mov edx, dword [edi + 0x48]
mov byte [edi + 0xc], 0
test byte [edx + 0x1c], 0x20
je 0x1006cbb6
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.1015d970
push edx
push eax
push esi
mov esi, dword [edi + 0x48]
mov ecx, esi
call dword [0x1019a4f8]
call esi
mov esi, dword [esp + 0x30]
add esp, 0x10
jmp 0x1006cbbd
mov ecx, edx
call fcn.10059aa0
mov cl, byte [esi + 0x44]
lea eax, [ecx - 1]
mov byte [esi + 0x44], al
movsx eax, cl
mov edi, dword [esi + eax*4 + 0x74]
mov dword [esi + 0x74], edi
test ebx, ebx
jne 0x1006cc19
mov edx, dword [esp + 0x18]
jmp 0x1006c8a0
push 0x101d02b4
push 0x11bfe
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10053700
add esp, 0x14
mov ebx, 0xb
jmp 0x1006cc19
mov eax, dword [esp + 0x10]
mov dword [esi + 0x7c], 0
test eax, eax
je 0x1006cc19
mov ecx, dword [eax + 0x48]
call fcn.1005f520
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x1006cc26
call fcn.1005a1d0
mov ecx, dword [esp + 0x34]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1015c7a5
mov esp, ebp
pop ebp
ret