Function at 0x10068fa0
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 0x10068fdb
call fcn.1005fd40
mov esi, eax
test esi, esi
jne 0x10069454
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 0x1006902a
mov ecx, edx
call fcn.10060e10
test eax, eax
jne 0x10069277
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
cmp byte [esp + 0xf], 0
je 0x1006908c
cmp byte [edx + 8], 0
je 0x1006907b
push ecx
push edx
call fcn.100602d0
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 0x1006907b
mov eax, dword [esp + 0x10]
cmp word [eax + 0x18], 1
je 0x1006907b
mov dword [esp + 0x28], 1
jmp 0x10069090
mov ecx, edi
call fcn.1005fa90
mov esi, eax
test esi, esi
jne 0x10069454
mov eax, dword [esp + 0x10]
cmp byte [eax + 8], 0
jne 0x100690ce
and byte [edi + 1], 0xf1
xor eax, eax
mov word [edi + 0x32], ax
cmp byte [edi], al
jne 0x100690bf
movzx ecx, word [edi + 0x46]
test cx, cx
je 0x100690bf
mov eax, dword [edi + 0x74]
cmp byte [eax + 8], 0
je 0x100690bf
lea eax, [ecx - 1]
mov word [edi + 0x46], ax
jmp 0x100690ce
mov ecx, edi
call fcn.10064e30
test eax, eax
jne 0x10069456
mov al, byte [edi + 1]
test al, 0x20
je 0x100690fc
mov ecx, dword [esp + 0x18]
mov edx, dword [edi + 0x40]
mov ecx, dword [ecx + 8]
test ecx, ecx
je 0x100690f7
cmp ecx, edi
je 0x100690f0
test edx, edx
je 0x10069168
cmp dword [ecx + 0x40], edx
je 0x10069168
mov ecx, dword [ecx + 0x18]
test ecx, ecx
jne 0x100690e3
and al, 0xdf
mov byte [edi + 1], al
cmp dword [edi + 0x70], 0
jne 0x10069143
cmp byte [ebx + 0xb], 0
mov edx, dword [edi + 0x20]
mov esi, dword [edi + 0x24]
mov ecx, dword [edi + 0x40]
je 0x10069143
mov eax, dword [ebx + 4]
mov byte [ebx + 0xb], 0
mov eax, dword [eax + 8]
test eax, eax
je 0x10069143
nop
test byte [eax + 1], 0x10
je 0x1006913c
mov byte [ebx + 0xb], 1
cmp dword [eax + 0x40], ecx
jne 0x1006913c
cmp dword [eax + 0x20], edx
jne 0x1006913c
cmp dword [eax + 0x24], esi
jne 0x1006913c
mov byte [eax], 1
mov eax, dword [eax + 0x18]
test eax, eax
jne 0x10069120
mov ebx, dword [esp + 0x10]
mov ecx, dword [ebx + 0x48]
test byte [ecx + 0x1c], 4
mov edx, dword [ecx + 0x14]
je 0x10069180
mov eax, dword [edx + 0x18]
cmp eax, dword [ecx + 0x18]
jb 0x10069180
cmp dword [edx + 0x60], 0
je 0x100691ad
call fcn.1005a010
jmp 0x100691a5
test ecx, ecx
je 0x100690f7
push edi
call fcn.1005fba0
add esp, 4
test eax, eax
je 0x100690fc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edx + 0x28]
test eax, eax
jne 0x10069456
mov eax, dword [edx + 0x94]
cmp eax, dword [edx + 0x98]
jbe 0x100691a0
call fcn.1005bb80
jmp 0x100691a5
call fcn.1005bb00
test eax, eax
jne 0x10069456
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x30]
push eax
mov ecx, ebx
call fcn.10065d40
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.10066270
mov esi, dword [esp + 0x1c]
add esp, 8
test esi, esi
jne 0x10069454
cmp byte [ebx + 8], 0
jne 0x10069345
mov ebx, dword [edi + 0x74]
cmp dword [ebx + 0x14], esi
jge 0x1006920c
mov ecx, ebx
call fcn.10060e10
mov esi, eax
test esi, esi
jne 0x10069454
movsx eax, byte [edi + 0x44]
mov ecx, dword [esp + 0x1c]
dec eax
cmp ecx, eax
jge 0x10069226
mov eax, dword [edi + ecx*4 + 0x7c]
mov esi, dword [eax + 4]
mov dword [esp + 0x24], esi
jmp 0x10069230
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 0x10069283
push 0x101c4d0c
push 0x119f6
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.1004f030
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebx + 0x4c]
push ecx
push ebx
mov ecx, esi
call dword [0x1018a4d4]
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 0x100692ce
mov eax, dword [edx + 0x18]
cmp eax, dword [ecx + 0x18]
jb 0x100692ce
cmp dword [edx + 0x60], 0
je 0x100692c4
call fcn.1005a010
jmp 0x100692ef
mov dword [esp + 0x14], 0
jmp 0x100692f7
mov eax, dword [edx + 0x28]
test eax, eax
jne 0x100692ef
mov eax, dword [edx + 0x94]
cmp eax, dword [edx + 0x98]
jbe 0x100692ea
call fcn.1005bb80
jmp 0x100692ef
call fcn.1005bb00
mov dword [esp + 0x14], eax
test eax, eax
jne 0x10069320
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.10066390
add esp, 0x14
movzx edx, word [ebx + 0x18]
lea eax, [esp + 0x14]
push eax
push esi
dec edx
mov ecx, ebx
call fcn.10066270
mov esi, dword [esp + 0x1c]
add esp, 8
test esi, esi
jne 0x10069454
mov ebx, dword [esp + 0x10]
mov ecx, edi
call fcn.100684d0
mov esi, eax
test esi, esi
jne 0x10069454
movsx eax, byte [edi + 0x44]
cmp eax, dword [esp + 0x1c]
jle 0x100693bd
mov ecx, dword [edi + 0x74]
mov ecx, dword [ecx + 0x48]
call fcn.1005b5b0
dec byte [edi + 0x44]
mov dl, byte [edi + 0x44]
mov esi, dword [esp + 0x1c]
movsx eax, dl
cmp eax, esi
jle 0x100693a2
nop dword [eax]
movsx eax, dl
dec dl
mov ecx, dword [edi + eax*4 + 0x78]
mov byte [edi + 0x44], dl
test ecx, ecx
je 0x1006939b
mov ecx, dword [ecx + 0x48]
call fcn.1005b5b0
mov dl, byte [edi + 0x44]
movsx eax, dl
cmp eax, esi
jg 0x10069380
movsx eax, dl
mov ecx, edi
mov eax, dword [edi + eax*4 + 0x78]
mov dword [edi + 0x74], eax
call fcn.100684d0
mov esi, eax
test esi, esi
jne 0x10069454
cmp dword [esp + 0x28], 0
je 0x100693fb
mov byte [edi], 2
movzx eax, word [ebx + 0x18]
cmp dword [esp + 0x20], eax
jb 0x100693eb
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.100644f0
cmp byte [esp + 0xf], 0
mov esi, eax
mov dword [esp + 0x2c], esi
je 0x1006944c
mov al, byte [edi + 0x44]
test al, al
js 0x10069449
xor ebx, ebx
test al, al
jle 0x1006943a
lea esi, [edi + 0x78]
nop
mov ecx, dword [esi]
mov ecx, dword [ecx + 0x48]
call fcn.1005b5b0
movsx eax, byte [edi + 0x44]
lea esi, [esi + 4]
inc ebx
cmp ebx, eax
jl 0x10069420
mov esi, dword [esp + 0x2c]
mov ecx, dword [edi + 0x74]
mov ecx, dword [ecx + 0x48]
call fcn.1005b5b0
mov byte [edi + 0x44], 0xff
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