Function at 0x10089b30
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 0x2c]
mov edx, dword [ecx + 0x30]
push ebx
mov ebx, dword [ebp + 8]
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0x1a4]
push esi
push edi
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], edx
test eax, eax
je 0x10089b72
cmp dword [eax + 4], ecx
je 0x10089cf1
mov eax, dword [eax + 8]
test eax, eax
jne 0x10089b62
mov eax, dword [ecx]
mov dword [esp + 0x24], eax
test eax, eax
je 0x10089d37
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10089b83
sub eax, edx
lea edi, [eax + 1]
xor eax, eax
push eax
push edi
mov ecx, ebx
call fcn.1000ab60
mov esi, eax
add esp, 8
mov dword [esp + 0x28], esi
test esi, esi
je 0x10089d37
mov edx, dword [esp + 0x24]
push edi
push edx
push esi
call fcn.101025e0
add esp, 0xc
cmp dword [0x1012c3e8], 0
je 0x10089d13
mov eax, dword [0x1013afb8]
test eax, eax
je 0x10089bda
push eax
call dword [0x1012c438]
add esp, 4
lea eax, [esp + 0x1c]
push eax
mov eax, 0x1c
call fcn.1000a480
mov eax, dword [0x1013afb8]
add esp, 4
test eax, eax
je 0x10089bff
push eax
call dword [0x1012c440]
add esp, 4
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x10089d25
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
xor eax, eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], eax
mov dword [edi], ebx
mov dword [edi + 4], ecx
mov byte [edi + 0x12], 1
mov ecx, dword [edx + 0x3c]
mov eax, 0xffff8000
test ecx, ecx
je 0x10089c58
mov edx, dword [ebx + 0x10]
xor eax, eax
cmp dword [edx + 0xc], ecx
je 0x10089c58
add edx, 0xc
lea esp, [esp]
add edx, 0x10
inc eax
cmp dword [edx], ecx
jne 0x10089c50
mov edx, dword [ebx + 0x10]
mov ecx, dword [ebp + 0xc]
mov esi, dword [ecx + 0x30]
add eax, eax
mov eax, dword [edx + eax*8]
mov dword [esi + 4], eax
mov edx, dword [ebx + 0x1a4]
lea eax, [esp + 0x30]
mov dword [ebx + 0x1a4], eax
inc dword [ecx + 0x18]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], ecx
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x24]
lea esi, [edi + 8]
push esi
push edx
mov edx, dword [ecx + 0xc]
push eax
push edx
push ebx
mov dword [esp + 0x48], edi
mov dword [esp + 0x54], 0
call dword [ebp + 0x14]
add esp, 0x18
cmp dword [ebx + 0x220], 0
mov dword [esp + 0x1c], eax
jne 0x10089cc6
mov eax, dword [ebp + 0xc]
dec dword [eax + 0x18]
jne 0x10089cd3
mov eax, dword [ebp + 0xc]
push eax
push ebx
call fcn.100585b0
add esp, 8
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x38]
mov dword [ebx + 0x1a4], ecx
cmp eax, 7
jne 0x10089d43
push ebx
call fcn.1000aee0
add esp, 4
jmp 0x10089d47
mov eax, dword [ecx]
push eax
push str.vtable_constructor_called_recursively:__s
push ebx
call fcn.1000ced0
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
add esp, 0xc
mov eax, 6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x1c
call dword [0x1012c408]
add esp, 4
mov edi, eax
jmp 0x10089c03
push ebx
call fcn.1000aee0
add esp, 4
mov eax, esi
mov ecx, ebx
call fcn.1000a790
mov eax, 7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x10089da4
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x10089d75
mov edx, dword [esp + 0x28]
push edx
push str.vtable_constructor_failed:__s
push ebx
call fcn.1000ced0
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
add esp, 0xc
mov eax, edi
mov ecx, ebx
call fcn.1000a790
jmp 0x10089f33
push eax
push 0x10112e4c
push ebx
call fcn.1000ced0
mov edx, dword [ebp + 0x18]
mov dword [edx], eax
mov eax, dword [esp + 0x24]
add esp, 0xc
push eax
call sym.MyService.dll_sqlite3_free
add esp, 4
mov eax, edi
mov ecx, ebx
call fcn.1000a790
jmp 0x10089f33
mov ecx, dword [esi]
test ecx, ecx
je 0x10089f33
xor eax, eax
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov edx, dword [esi]
mov ecx, dword [ebp + 0x10]
mov esi, dword [ecx]
mov dword [edx], esi
mov esi, 1
add dword [ecx + 8], esi
mov dword [edi + 0xc], esi
cmp dword [esp + 0x3c], eax
jne 0x10089dfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push ecx
mov edx, ebx
push str.vtable_constructor_did_not_declare_schema:__s
push edx
call fcn.1000ced0
mov ecx, dword [ebp + 0x18]
add esp, 0xc
mov dword [ecx], eax
call fcn.10089410
mov dword [esp + 0x1c], esi
jmp 0x10089f33
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x34]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [edi + 0x18], edx
xor eax, eax
mov dword [ecx + 0x34], edi
cmp ax, word [ecx + 0x22]
jge 0x10089f33
mov dword [esp + 0x14], eax
nop
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 4]
add eax, dword [esp + 0x14]
test byte [eax + 0xe], 4
je 0x10089e52
mov edx, dword [eax]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10089e37
sub eax, esi
lea eax, [edx + eax + 1]
mov dword [esp + 0xc], eax
test eax, eax
jne 0x10089e6f
mov dword [esp + 0x10], eax
jmp 0x10089e84
mov eax, dword [eax + 4]
shr eax, 4
and eax, 0xf
je 0x10089e66
mov eax, dword [eax*4 + 0x1012c4fc]
jmp 0x10089e44
mov eax, 0x10112e3c
mov dword [esp + 0xc], eax
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10089e72
sub eax, edx
and eax, 0x3fffffff
mov dword [esp + 0x10], eax
xor ebx, ebx
cmp dword [esp + 0x10], ebx
jle 0x10089f0c
mov edx, dword [esp + 0xc]
lea esi, [ebx + edx]
mov eax, 6
test esi, esi
je 0x10089f05
mov edx, str.hidden
mov cl, byte [edx]
dec eax
test cl, cl
je 0x10089ec7
movzx edi, byte [esi]
movzx ecx, cl
mov cl, byte [ecx + 0x10112f10]
cmp cl, byte [edi + 0x10112f10]
jne 0x10089ec7
inc edx
inc esi
test eax, eax
jg 0x10089ea5
dec eax
test eax, eax
js 0x10089ee3
movzx eax, byte [esi]
movzx edx, byte [edx]
movzx ecx, byte [eax + 0x10112f10]
movzx eax, byte [edx + 0x10112f10]
sub eax, ecx
jne 0x10089f05
test ebx, ebx
je 0x10089ef5
mov ecx, dword [esp + 0xc]
cmp byte [ebx + ecx - 1], 0x20
lea eax, [ebx + ecx]
jne 0x10089f05
mov edx, dword [esp + 0xc]
mov al, byte [ebx + edx + 6]
test al, al
je 0x10089f6b
cmp al, 0x20
je 0x10089f6b
inc ebx
cmp ebx, dword [esp + 0x10]
jl 0x10089e90
movzx ecx, word [esp + 0x20]
mov eax, dword [ebp + 0xc]
or dword [eax + 0x1c], ecx
mov ecx, eax
mov eax, dword [esp + 0x24]
movsx edx, word [ecx + 0x22]
add dword [esp + 0x14], 0x10
inc eax
mov dword [esp + 0x24], eax
cmp eax, edx
jl 0x10089e20
mov eax, dword [esp + 0x28]
mov ecx, dword [ebp + 8]
cmp eax, dword [ecx + 0x174]
jae 0x10089ff7
cmp eax, dword [ecx + 0x16c]
jb 0x10089fd6
mov edx, dword [ecx + 0x168]
mov dword [eax], edx
mov dword [ecx + 0x168], eax
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ebx, dword [esp + 0x10]
jge 0x10089f0c
mov eax, dword [esp + 0xc]
xor ecx, ecx
cmp byte [ebx + eax + 6], cl
lea edi, [ebx + eax]
setne cl
lea edx, [ecx + ebx + 6]
cmp edx, dword [esp + 0x10]
jg 0x10089fa4
lea esi, [ecx + 6]
sub esi, dword [esp + 0xc]
mov eax, edi
mov dl, byte [eax + ecx + 6]
mov byte [eax], dl
inc eax
lea edx, [esi + eax]
cmp edx, dword [esp + 0x10]
jle 0x10089f94
cmp byte [edi], 0
jne 0x10089fb1
test ebx, ebx
jle 0x10089fb1
mov byte [edi - 1], 0
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 4]
mov edx, dword [esp + 0x14]
or word [eax + edx + 0xe], 2
or dword [ecx + 0x1c], 2
lea eax, [eax + edx + 0xe]
mov dword [esp + 0x20], 0x400
jmp 0x10089f19
cmp eax, dword [ecx + 0x170]
jb 0x10089ff7
mov edx, dword [ecx + 0x160]
mov dword [eax], edx
mov dword [ecx + 0x160], eax
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ecx + 0x220], 0
je 0x1008a010
call fcn.1000a730
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
call sym.MyService.dll_sqlite3_free
mov eax, dword [esp + 0x20]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret