Function at 0x1006d2b0
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 0x1006d309
mov ecx, edi
call fcn.10065b00
test eax, eax
jne 0x1006d669
mov edx, dword [esp + 0x18]
mov al, byte [edi + 0xc]
test al, al
jne 0x1006d319
cmp dword [edi + 0x14], edx
jle 0x1006d669
movsx edx, byte [esi + 0x44]
mov dword [esp + 0x14], edx
test edx, edx
jne 0x1006d4a0
test al, al
je 0x1006d669
mov eax, dword [esi + 0x14]
mov eax, dword [eax + 8]
test eax, eax
je 0x1006d35c
nop dword [eax + eax]
cmp eax, esi
je 0x1006d355
cmp byte [eax], 0
jne 0x1006d355
mov ecx, dword [eax + 0x74]
cmp ecx, dword [esi + 0x74]
je 0x1006d62d
mov eax, dword [eax + 0x18]
test eax, eax
jne 0x1006d340
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 0x1006d394
mov eax, dword [edx + 0x18]
cmp eax, dword [ecx + 0x18]
jb 0x1006d394
cmp dword [edx + 0x60], 0
je 0x1006d3c7
call fcn.1005ebf0
jmp 0x1006d3b9
mov ebx, dword [edx + 0x28]
test ebx, ebx
jne 0x1006d652
mov eax, dword [edx + 0x94]
cmp eax, dword [edx + 0x98]
jbe 0x1006d3b4
call fcn.100604f0
jmp 0x1006d3b9
call fcn.100602c0
mov ebx, eax
test ebx, ebx
jne 0x1006d652
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.10069d70
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov dword [esp + 0xc], eax
mov ecx, edi
lea eax, [esp + 0xc]
push eax
call fcn.1006bc90
mov eax, dword [esp + 0x18]
add esp, 4
cmp byte [ebx + 0x11], 0
mov dword [esp + 0x14], eax
je 0x1006d41a
lea ecx, [esp + 0xc]
mov edx, eax
push ecx
push dword [edi + 4]
mov ecx, ebx
push 5
call fcn.10064bd0
add esp, 0xc
mov ebx, dword [esp + 0xc]
test ebx, ebx
jne 0x1006d652
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.1015f8f0
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.1015f8f0
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.10065e70
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 0x1006d2f0
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 0x1006d4d4
mov eax, dword [ebx + 0x18]
cmp eax, dword [edx + 0x18]
jb 0x1006d4d4
cmp dword [ebx + 0x60], 0
je 0x1006d50c
mov ecx, edx
call fcn.1005ebf0
jmp 0x1006d4fe
mov ebx, dword [ebx + 0x28]
test ebx, ebx
jne 0x1006d5ae
mov ecx, dword [edx + 0x14]
mov eax, dword [ecx + 0x94]
cmp eax, dword [ecx + 0x98]
mov ecx, edx
jbe 0x1006d4f9
call fcn.100604f0
jmp 0x1006d4fe
call fcn.100602c0
mov ecx, dword [esp + 0x10]
mov ebx, eax
test ebx, ebx
jne 0x1006d5ae
cmp dword [ecx + 0x14], 0
jge 0x1006d525
call fcn.10065b00
mov ebx, eax
test ebx, ebx
jne 0x1006d5ae
mov ecx, dword [esp + 0x10]
cmp byte [edi + 3], 0
je 0x1006d560
cmp byte [edi + 0xc], 1
jne 0x1006d560
mov ax, word [edi + 0x1c]
cmp ax, word [edi + 0x18]
jne 0x1006d560
cmp dword [ecx + 4], 1
mov ebx, dword [esp + 0xc]
je 0x1006d564
movzx eax, word [ecx + 0x18]
cmp eax, ebx
jne 0x1006d564
lea eax, [esp + 0x24]
mov edx, edi
push eax
call fcn.1006ba90
add esp, 4
mov ebx, eax
jmp 0x1006d5ae
mov ebx, dword [esp + 0xc]
mov eax, dword [esi + 0x14]
mov ecx, dword [eax + 0x24]
call fcn.1005aad0
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.1006bd60
mov ebx, eax
add esp, 0xc
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x1006d5a6
mov ecx, eax
call fcn.1005ac30
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 0x1006d606
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.1015da40
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 0x1006d60d
mov ecx, edx
call fcn.1005a500
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 0x1006d669
mov edx, dword [esp + 0x18]
jmp 0x1006d2f0
push 0x101d00b4
push 0x11bfe
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10054150
add esp, 0x14
mov ebx, 0xb
jmp 0x1006d669
mov eax, dword [esp + 0x10]
mov dword [esi + 0x7c], 0
test eax, eax
je 0x1006d669
mov ecx, dword [eax + 0x48]
call fcn.1005ff80
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x1006d676
call fcn.1005ac30
mov ecx, dword [esp + 0x34]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1015c875
mov esp, ebp
pop ebp
ret