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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x28], 0
and dl, 2
mov byte [esp + 0xf], dl
cmp byte [edi], 3
mov ebx, dword [edi + 8]
mov eax, dword [ebx + 4]
mov dword [esp + 0x18], eax
jne 0x1006a42b
call fcn.10060e40
mov esi, eax
test esi, esi
jne 0x1006a886
mov edx, dword [edi + 0x74]
movsx eax, byte [edi + 0x44]
movzx ecx, word [edi + 0x46]
mov dword [esp + 0x1c], eax
mov eax, dword [edx + 0x40]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x10], edx
mov ax, word [eax + ecx*2]
mov ch, al
mov cl, ah
movzx eax, word [edx + 0x1a]
movzx ecx, cx
and ecx, eax
add ecx, dword [edx + 0x38]
cmp dword [edx + 0x14], 0
mov dword [esp + 0x14], ecx
jge 0x1006a47a
mov ecx, edx
call fcn.10061f30
test eax, eax
jne 0x1006a6ca
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
cmp byte [esp + 0xf], 0
je 0x1006a4dc
cmp byte [edx + 8], 0
je 0x1006a4cb
push ecx
push edx
call fcn.10061410
movzx ecx, ax
add esp, 8
mov eax, dword [esp + 0x10]
mov esi, dword [eax + 0x14]
mov eax, dword [esp + 0x18]
add esi, 2
add esi, ecx
mov ecx, dword [eax + 0x24]
mov eax, 0xaaaaaaab
add ecx, ecx
mul ecx
shr edx, 1
cmp esi, edx
jg 0x1006a4cb
mov eax, dword [esp + 0x10]
cmp word [eax + 0x18], 1
je 0x1006a4cb
mov dword [esp + 0x28], 1
jmp 0x1006a4e0
mov ecx, edi
call fcn.10060c10
mov esi, eax
test esi, esi
jne 0x1006a886
mov eax, dword [esp + 0x10]
cmp byte [eax + 8], 0
jne 0x1006a51e
and byte [edi + 1], 0xf1
xor eax, eax
mov word [edi + 0x32], ax
cmp byte [edi], al
jne 0x1006a50f
movzx ecx, word [edi + 0x46]
test cx, cx
je 0x1006a50f
mov eax, dword [edi + 0x74]
cmp byte [eax + 8], 0
je 0x1006a50f
lea eax, [ecx - 1]
mov word [edi + 0x46], ax
jmp 0x1006a51e
mov ecx, edi
call fcn.10066010
test eax, eax
jne 0x1006a888
mov al, byte [edi + 1]
test al, 0x20
je 0x1006a54c
mov ecx, dword [esp + 0x18]
mov edx, dword [edi + 0x40]
mov ecx, dword [ecx + 8]
test ecx, ecx
je 0x1006a547
cmp ecx, edi
je 0x1006a540
test edx, edx
je 0x1006a5b8
cmp dword [ecx + 0x40], edx
je 0x1006a5b8
mov ecx, dword [ecx + 0x18]
test ecx, ecx
jne 0x1006a533
and al, 0xdf
mov byte [edi + 1], al
cmp dword [edi + 0x70], 0
jne 0x1006a593
cmp byte [ebx + 0xb], 0
mov edx, dword [edi + 0x20]
mov esi, dword [edi + 0x24]
mov ecx, dword [edi + 0x40]
je 0x1006a593
mov eax, dword [ebx + 4]
mov byte [ebx + 0xb], 0
mov eax, dword [eax + 8]
test eax, eax
je 0x1006a593
nop
test byte [eax + 1], 0x10
je 0x1006a58c
mov byte [ebx + 0xb], 1
cmp dword [eax + 0x40], ecx
jne 0x1006a58c
cmp dword [eax + 0x20], edx
jne 0x1006a58c
cmp dword [eax + 0x24], esi
jne 0x1006a58c
mov byte [eax], 1
mov eax, dword [eax + 0x18]
test eax, eax
jne 0x1006a570
mov ebx, dword [esp + 0x10]
mov ecx, dword [ebx + 0x48]
test byte [ecx + 0x1c], 4
mov edx, dword [ecx + 0x14]
je 0x1006a5d0
mov eax, dword [edx + 0x18]
cmp eax, dword [ecx + 0x18]
jb 0x1006a5d0
cmp dword [edx + 0x60], 0
je 0x1006a5fd
call fcn.1005b180
jmp 0x1006a5f5
test ecx, ecx
je 0x1006a547
push edi
call fcn.10060cb0
add esp, 4
test eax, eax
je 0x1006a54c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edx + 0x28]
test eax, eax
jne 0x1006a888
mov eax, dword [edx + 0x94]
cmp eax, dword [edx + 0x98]
jbe 0x1006a5f0
call fcn.1005cc80
jmp 0x1006a5f5
call fcn.1005cc00
test eax, eax
jne 0x1006a888
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x30]
push eax
mov ecx, ebx
call fcn.10067040
mov edx, dword [esp + 0x24]
add esp, 4
mov dword [esp + 0x14], eax
mov ecx, ebx
lea eax, [esp + 0x14]
push eax
movzx eax, word [esp + 0x46]
push eax
call fcn.100675d0
mov esi, dword [esp + 0x1c]
add esp, 8
test esi, esi
jne 0x1006a886
cmp byte [ebx + 8], 0
jne 0x1006a79b
mov ebx, dword [edi + 0x74]
cmp dword [ebx + 0x14], esi
jge 0x1006a65c
mov ecx, ebx
call fcn.10061f30
mov esi, eax
test esi, esi
jne 0x1006a886
movsx eax, byte [edi + 0x44]
mov ecx, dword [esp + 0x1c]
dec eax
cmp ecx, eax
jge 0x1006a679
lfence
mov eax, dword [edi + ecx*4 + 0x7c]
mov esi, dword [eax + 4]
mov dword [esp + 0x24], esi
jmp 0x1006a683
mov eax, dword [edi + 0x74]
mov eax, dword [eax + 4]
mov dword [esp + 0x24], eax
movzx ecx, word [ebx + 0x18]
mov eax, dword [ebx + 0x40]
mov edx, dword [ebx + 0x38]
mov ax, word [eax + ecx*2 - 2]
mov ch, al
mov cl, ah
movzx eax, word [ebx + 0x1a]
movzx ecx, cx
and ecx, eax
lea eax, [edx + 4]
add ecx, edx
mov dword [esp + 0x2c], ecx
cmp ecx, eax
jae 0x1006a6d6
push 0x10200bd4
push 0x119f6
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10050c50
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ecx
lfence
mov esi, dword [ebx + 0x4c]
mov ecx, esi
push ebx
call dword [0x101d3368]
call esi
mov ecx, dword [ebx + 0x48]
add esp, 8
movzx esi, ax
mov eax, dword [esp + 0x18]
test byte [ecx + 0x1c], 4
mov edx, dword [ecx + 0x14]
mov eax, dword [eax + 0x50]
mov dword [esp + 0x18], eax
je 0x1006a724
mov eax, dword [edx + 0x18]
cmp eax, dword [ecx + 0x18]
jb 0x1006a724
cmp dword [edx + 0x60], 0
je 0x1006a71a
call fcn.1005b180
jmp 0x1006a745
mov dword [esp + 0x14], 0
jmp 0x1006a74d
mov eax, dword [edx + 0x28]
test eax, eax
jne 0x1006a745
mov eax, dword [edx + 0x94]
cmp eax, dword [edx + 0x98]
jbe 0x1006a740
call fcn.1005cc80
jmp 0x1006a745
call fcn.1005cc00
mov dword [esp + 0x14], eax
test eax, eax
jne 0x1006a776
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push dword [esp + 0x28]
lea eax, [esi + 4]
push dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x3c]
add eax, 0xfffffffc
push eax
call fcn.100676f0
add esp, 0x14
movzx edx, word [ebx + 0x18]
lea eax, [esp + 0x14]
push eax
push esi
dec edx
mov ecx, ebx
call fcn.100675d0
mov esi, dword [esp + 0x1c]
add esp, 8
test esi, esi
jne 0x1006a886
mov ebx, dword [esp + 0x10]
mov ecx, edi
call fcn.10069a60
mov esi, eax
test esi, esi
jne 0x1006a886
movsx eax, byte [edi + 0x44]
cmp eax, dword [esp + 0x1c]
jle 0x1006a826
mov eax, dword [edi + 0x74]
mov ecx, dword [eax + 0x48]
test byte [ecx + 0x1c], 0x20
je 0x1006a7c9
call fcn.1005aaf0
jmp 0x1006a7ce
call fcn.10056c70
dec byte [edi + 0x44]
mov cl, byte [edi + 0x44]
mov esi, dword [esp + 0x1c]
movsx eax, cl
cmp eax, esi
jle 0x1006a80f
nop
movsx eax, cl
dec cl
mov eax, dword [edi + eax*4 + 0x78]
mov byte [edi + 0x44], cl
test eax, eax
je 0x1006a805
mov ecx, dword [eax + 0x48]
test byte [ecx + 0x1c], 0x20
je 0x1006a800
call fcn.1005aaf0
jmp 0x1006a805
call fcn.10056c70
mov cl, byte [edi + 0x44]
movsx eax, cl
cmp eax, esi
jg 0x1006a7e0
movsx eax, cl
mov ecx, edi
mov eax, dword [edi + eax*4 + 0x78]
mov dword [edi + 0x74], eax
call fcn.10069a60
mov esi, eax
test esi, esi
jne 0x1006a886
cmp dword [esp + 0x28], 0
je 0x1006a864
mov byte [edi], 2
movzx eax, word [ebx + 0x18]
cmp dword [esp + 0x20], eax
jb 0x1006a854
mov dword [edi + 4], 0xffffffff
mov ax, word [ebx + 0x18]
dec ax
mov word [edi + 0x46], ax
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [edi + 4], 1
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, edi
call fcn.10065670
cmp byte [esp + 0xf], 0
mov esi, eax
je 0x1006a87e
mov ecx, edi
call fcn.10060bb0
mov byte [edi], 3
xor eax, eax
cmp esi, 0x10
cmove esi, eax
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret