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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
push ebx
push esi
push edi
mov edi, eax
mov eax, dword [edi + 8]
mov dword [esp + 0x30], eax
mov eax, dword [eax + 4]
mov dword [esp + 0x18], eax
mov al, byte [edi]
test al, al
je 0x1002a92d
cmp al, 3
jb 0x1002a976
mov eax, edi
call fcn.10020ff0
test eax, eax
jne 0x1002ad7c
cmp byte [edi], al
jne 0x1002ad7c
mov ebx, dword [edi + 0x74]
movzx eax, word [edi + 0x46]
movzx edx, word [ebx + 0x18]
movsx ecx, byte [edi + 0x44]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], ebx
cmp edx, eax
jg 0x1002a9a0
push 0x1011b294
push 0x13576
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call sym.MyService.dll_sqlite3_log
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x1011b294
push 0x1356d
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call sym.MyService.dll_sqlite3_log
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebx + 0x40]
mov dx, word [ecx + eax*2]
movzx ecx, word [ebx + 0x1a]
mov ah, dl
mov al, dh
movzx esi, ax
and esi, ecx
add esi, dword [ebx + 0x38]
cmp dword [ebx + 0x14], 0
mov dword [esp + 0x1c], esi
jge 0x1002a9f8
push ebx
call fcn.10022180
add esp, 4
test eax, eax
je 0x1002a9f8
push 0x1011b294
push 0x1357a
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call sym.MyService.dll_sqlite3_log
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx edx, word [ebx + 0x18]
add edx, dword [ebx + 0x40]
cmp esi, edx
jae 0x1002aa2d
push 0x1011b294
push 0x1357d
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call sym.MyService.dll_sqlite3_log
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, byte [ebp + 8]
shr al, 1
and al, 1
mov byte [esp + 0x13], al
je 0x1002aa87
cmp byte [ebx + 8], 0
je 0x1002aa78
mov eax, dword [ebx + 0x4c]
push esi
push ebx
call eax
mov edx, dword [ebx + 0x14]
movzx ecx, ax
lea ecx, [ecx + edx + 2]
mov edx, dword [esp + 0x20]
mov edx, dword [edx + 0x28]
add edx, edx
mov eax, 0xaaaaaaab
mul edx
shr edx, 1
add esp, 8
cmp ecx, edx
jg 0x1002aa78
cmp word [ebx + 0x18], 1
je 0x1002aa78
mov byte [esp + 0x13], 2
jmp 0x1002aa87
mov esi, edi
call fcn.10020d90
test eax, eax
jne 0x1002ad7c
cmp byte [ebx + 8], 0
jne 0x1002aaa0
push 0
push edi
call fcn.100265f0
add esp, 8
test eax, eax
jne 0x1002ad7c
test byte [edi + 1], 0x20
je 0x1002aabc
mov ecx, dword [edi + 0x40]
mov eax, dword [esp + 0x18]
mov edx, edi
call fcn.10020e30
test eax, eax
jne 0x1002ad7c
cmp dword [edi + 0x70], 0
jne 0x1002ab1e
mov ecx, dword [esp + 0x30]
cmp byte [ecx + 0xb], 0
je 0x1002ab1e
mov eax, dword [edi + 0x20]
mov edx, dword [edi + 0x24]
mov dword [esp + 0x28], eax
mov eax, dword [edi + 0x40]
mov dword [esp + 0x2c], edx
mov edx, dword [ecx + 4]
mov dword [esp + 0x30], eax
mov byte [ecx + 0xb], 0
mov eax, dword [edx + 8]
test eax, eax
je 0x1002ab1e
test byte [eax + 1], 0x10
je 0x1002ab17
mov edx, dword [esp + 0x30]
mov byte [ecx + 0xb], 1
cmp dword [eax + 0x40], edx
jne 0x1002ab17
mov edx, dword [eax + 0x20]
cmp edx, dword [esp + 0x28]
jne 0x1002ab17
mov edx, dword [eax + 0x24]
cmp edx, dword [esp + 0x2c]
jne 0x1002ab17
mov byte [eax], 1
mov eax, dword [eax + 0x18]
test eax, eax
jne 0x1002aaef
mov esi, dword [ebx + 0x48]
call fcn.1001c890
test eax, eax
jne 0x1002ad7c
mov esi, dword [esp + 0x1c]
mov ecx, dword [ebx + 0x50]
lea eax, [esp + 0x38]
push eax
push esi
push ebx
call ecx
movzx edx, word [esp + 0x54]
add esp, 0xc
cmp edx, dword [esp + 0x44]
je 0x1002ab61
push esi
lea eax, [esp + 0x3c]
mov edx, ebx
call fcn.10026f00
add esp, 4
mov dword [esp + 0x14], eax
jmp 0x1002ab69
mov dword [esp + 0x14], 0
movzx ecx, word [esp + 0x4a]
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x14]
push eax
push ecx
push edx
mov esi, ebx
call fcn.100273e0
mov eax, dword [esp + 0x20]
add esp, 0xc
test eax, eax
jne 0x1002ad7c
cmp byte [ebx + 8], al
jne 0x1002ac93
mov ebx, dword [edi + 0x74]
cmp dword [ebx + 0x14], eax
jge 0x1002abb1
push ebx
call fcn.10022180
add esp, 4
test eax, eax
jne 0x1002ad7c
movsx ecx, byte [edi + 0x44]
mov eax, dword [esp + 0x20]
dec ecx
cmp eax, ecx
jge 0x1002abcb
mov edx, dword [edi + eax*4 + 0x7c]
mov eax, dword [edx + 4]
mov dword [esp + 0x28], eax
jmp 0x1002abd5
mov ecx, dword [edi + 0x74]
mov edx, dword [ecx + 4]
mov dword [esp + 0x28], edx
movzx eax, word [ebx + 0x18]
mov ecx, dword [ebx + 0x40]
mov dx, word [ecx + eax*2 - 2]
movzx ecx, word [ebx + 0x1a]
mov esi, dword [ebx + 0x38]
mov ah, dl
mov al, dh
movzx eax, ax
and eax, ecx
add eax, esi
add esi, 4
mov dword [esp + 0x1c], eax
cmp eax, esi
jae 0x1002ac0f
mov eax, 0x135d8
call fcn.100a9300
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebx + 0x4c]
push eax
push ebx
call edx
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + 0x54]
mov esi, dword [ebx + 0x48]
movzx eax, ax
add esp, 8
mov dword [esp + 0x30], eax
mov dword [esp + 0x18], edx
call fcn.1001c890
mov dword [esp + 0x14], eax
test eax, eax
jne 0x1002ac69
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x28]
add ecx, 4
push ecx
mov ecx, dword [esp + 0x3c]
add edx, 0xfffffffc
push edx
push eax
mov eax, dword [esp + 0x28]
call fcn.100274f0
add esp, 0x10
mov dword [esp + 0x14], eax
movzx eax, word [ebx + 0x18]
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x14]
push ecx
push edx
dec eax
push eax
mov esi, ebx
call fcn.100273e0
mov eax, dword [esp + 0x20]
add esp, 0xc
test eax, eax
jne 0x1002ad7c
mov ebx, dword [esp + 0x34]
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x74]
mov edx, dword [ecx + 0x28]
mov eax, dword [eax + 0x14]
add edx, edx
lea ecx, [eax + eax*2]
cmp ecx, edx
jg 0x1002acac
xor esi, esi
jmp 0x1002acbb
call fcn.100299f0
mov esi, eax
test esi, esi
jne 0x1002ad7a
movsx edx, byte [edi + 0x44]
cmp edx, dword [esp + 0x20]
jle 0x1002ad19
mov eax, dword [edi + 0x74]
mov eax, dword [eax + 0x48]
call fcn.1001c220
dec byte [edi + 0x44]
movsx ecx, byte [edi + 0x44]
mov esi, dword [esp + 0x20]
cmp ecx, esi
jle 0x1002ad03
nop
mov al, byte [edi + 0x44]
movsx edx, al
mov ecx, dword [edi + edx*4 + 0x78]
dec al
mov byte [edi + 0x44], al
test ecx, ecx
je 0x1002acfb
mov eax, dword [ecx + 0x48]
call fcn.1001c220
movsx eax, byte [edi + 0x44]
cmp eax, esi
jg 0x1002ace0
movsx ecx, byte [edi + 0x44]
mov edx, dword [edi + ecx*4 + 0x78]
mov dword [edi + 0x74], edx
call fcn.100299f0
mov esi, eax
test esi, esi
jne 0x1002ad7a
cmp byte [esp + 0x13], 1
jbe 0x1002ad57
mov byte [edi], 2
movzx eax, word [ebx + 0x18]
cmp dword [esp + 0x24], eax
jl 0x1002ad47
mov dword [edi + 4], 0xffffffff
mov cx, word [ebx + 0x18]
dec cx
mov word [edi + 0x46], cx
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 eax, edi
call fcn.100255c0
cmp byte [esp + 0x13], 0
mov esi, eax
je 0x1002ad73
push edi
call fcn.10020c90
add esp, 4
mov byte [edi], 3
cmp esi, 0x10
jne 0x1002ad7a
xor esi, esi
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret