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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], 0
mov ebx, edx
mov dword [esp + 0xc], esi
push edi
mov dword [esp + 0x24], ebx
dec dword [esi + 0x38]
mov ecx, dword [ebx + 0x1c]
mov edx, dword [esi + 0x38]
and cl, 0x80
mov edi, dword [esi + 8]
neg cl
mov dword [esp + 0x18], edx
sbb cl, cl
and cl, 0xfd
add cl, 0x21
cmp byte [ebp + 0x24], 0
mov dword [esp + 0x20], ecx
jne 0x100b96b1
mov ax, word [ebp + 0x18]
cwde
push eax
push dword [ebp + 0x14]
push edx
push dword [ebp + 0xc]
movzx edx, cl
mov ecx, edi
call fcn.100eb830
add esp, 0x10
mov eax, dword [esi]
mov eax, dword [eax + 0x20]
and eax, 0x4000
or eax, 0
mov eax, dword [ebp + 8]
je 0x100b96ea
cmp byte [ebx + 0x2b], 0
jne 0x100b96ea
mov ecx, dword [ebx + 0x3c]
mov edx, dword [ebx]
add ecx, 0x38
push 0
call fcn.1010c340
add esp, 4
cmp dword [eax + 8], 0
mov eax, dword [ebp + 8]
jne 0x100b96f2
cmp dword [ebx + 0x30], 0
jne 0x100b96f2
test eax, eax
je 0x100b9853
movzx ecx, byte [ebp + 0x20]
mov edx, eax
push ecx
push ebx
push 3
mov dword [esp + 0x28], ecx
mov ecx, esi
push 0
push 0
call fcn.10099530
add esp, 0x14
mov dword [esp + 0x14], eax
mov edx, ebx
mov ecx, esi
call fcn.100b32b0
mov ecx, dword [esi + 0x2c]
mov edx, dword [esp + 0x14]
or edx, eax
mov dword [esp + 0x14], edx
lea eax, [ecx + 1]
inc ecx
mov dword [esp + 0xc], eax
movsx eax, word [ebx + 0x22]
add eax, ecx
mov dword [esi + 0x2c], eax
mov ecx, dword [edi + 0x74]
cmp dword [edi + 0x78], ecx
jg 0x100b975f
push 0
push dword [esp + 0x10]
mov edx, 0x4e
mov ecx, edi
push dword [ebp + 0x14]
call fcn.100ec0c0
mov edx, dword [esp + 0x20]
add esp, 0xc
jmp 0x100b9791
mov esi, dword [ebp + 0x14]
lea eax, [ecx + 1]
mov dword [edi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x70]
mov dword [eax + ecx*4 + 4], esi
mov esi, dword [esp + 0xc]
mov dword [eax + ecx*4], 0x4e
mov dword [eax + ecx*4 + 8], esi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
xor eax, eax
xor esi, esi
cmp ax, word [ebx + 0x22]
jge 0x100b97e6
nop dword [eax + eax]
cmp edx, 0xffffffff
je 0x100b97b7
cmp esi, 0x1f
jg 0x100b97dd
mov eax, 1
mov ecx, esi
shl eax, cl
test edx, eax
je 0x100b97dd
mov edx, esi
mov ecx, ebx
call fcn.100c24e0
mov ecx, dword [esp + 0xc]
mov edx, ebx
inc ecx
cwde
add eax, ecx
mov ecx, edi
push eax
push esi
push dword [ebp + 0xc]
call fcn.100cfac0
mov edx, dword [esp + 0x20]
add esp, 0xc
movsx eax, word [ebx + 0x22]
inc esi
cmp esi, eax
jl 0x100b97a0
push dword [esp + 0x18]
mov edx, dword [ebp + 8]
push dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
push dword [esp + 0x14]
mov esi, dword [edi + 0x74]
push ebx
push 1
push 0
push 0x7f
call fcn.10099600
add esp, 0x1c
cmp esi, dword [edi + 0x74]
jge 0x100b9836
mov ax, word [ebp + 0x18]
mov ecx, edi
cwde
push eax
push dword [ebp + 0x14]
mov eax, dword [esp + 0x28]
push dword [esp + 0x20]
movzx edx, al
push dword [ebp + 0xc]
call fcn.100eb830
add esp, 0x10
or esi, 0xffffffff
jmp 0x100b9839
mov esi, dword [ebp + 0x28]
mov ecx, dword [esp + 0x10]
mov edx, ebx
push 0
push 0
push 0
push dword [esp + 0x18]
call fcn.100b33a0
add esp, 0x10
jmp 0x100b9856
mov esi, dword [ebp + 0x28]
cmp byte [ebx + 0x2b], 2
je 0x100b99aa
mov ecx, dword [esp + 0x10]
mov edx, ebx
push esi
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.100b94c0
mov ecx, dword [edi + 0x74]
xor edx, edx
add esp, 0x10
cmp byte [ebp + 0x1c], dl
setne dl
cmp dword [edi + 0x78], ecx
jg 0x100b989e
push 0
push edx
push dword [ebp + 0xc]
mov edx, 0x80
mov ecx, edi
call fcn.100ec0c0
add esp, 0xc
jmp 0x100b98d0
mov ebx, dword [ebp + 0xc]
lea eax, [ecx + 1]
mov dword [edi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x70]
mov dword [eax + ecx*4 + 4], ebx
mov ebx, dword [esp + 0x24]
mov dword [eax + ecx*4], 0x80
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x10]
cmp byte [eax + 0x12], 0
je 0x100b98ee
mov ecx, dword [ebx]
test ecx, ecx
je 0x100b9918
mov edx, str.sqlite_stat1
call fcn.1010de20
test eax, eax
jne 0x100b9918
mov ecx, dword [edi]
cmp byte [ecx + 0x53], 0
je 0x100b9906
push ebx
mov edx, 0xfffffffa
call fcn.100eb160
add esp, 4
jmp 0x100b9918
mov eax, dword [edi + 0x74]
lea ecx, [eax + eax*4]
mov eax, dword [edi + 0x70]
mov byte [eax + ecx*4 - 0x13], 0xfa
mov dword [eax + ecx*4 - 4], ebx
cmp byte [ebp + 0x24], 0
je 0x100b9935
mov eax, dword [edi + 0x74]
test eax, eax
jle 0x100b9935
lea ecx, [eax + eax*4]
mov edx, 4
mov eax, dword [edi + 0x70]
mov word [eax + ecx*4 - 0x12], dx
test esi, esi
js 0x100b998b
cmp esi, dword [ebp + 0xc]
je 0x100b998b
mov ecx, dword [edi + 0x74]
cmp dword [edi + 0x78], ecx
jg 0x100b995c
push 0
push 0
push esi
mov edx, 0x80
mov ecx, edi
call fcn.100ec0c0
add esp, 0xc
jmp 0x100b998b
lea eax, [ecx + 1]
mov dword [edi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x70]
mov dword [eax + ecx*4], 0x80
mov dword [eax + ecx*4 + 4], esi
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [edi + 0x74]
test eax, eax
jle 0x100b99aa
mov edx, 2
xor ecx, ecx
cmp byte [ebp + 0x24], dl
cmovne edx, ecx
lea ecx, [eax + eax*4]
mov eax, dword [edi + 0x70]
mov word [eax + ecx*4 - 0x12], dx
mov ecx, dword [esp + 0x10]
mov edx, ebx
push 0
push 0
push dword [esp + 0x14]
push 0
call fcn.100b2aa0
push dword [esp + 0x28]
movzx eax, byte [ebp + 0x20]
mov edx, dword [ebp + 8]
mov ecx, dword [esp + 0x24]
push eax
push dword [esp + 0x24]
push ebx
push 2
push 0
push 0x7f
call fcn.10099600
mov ecx, dword [edi + 0xc]
add esp, 0x2c
mov edx, dword [esp + 0x18]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x100b9a05
push edx
mov edx, edi
call fcn.100eb740
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x74]
mov ecx, dword [ecx + 0x40]
pop edi
pop esi
pop ebx
mov dword [ecx + edx*4], eax
mov esp, ebp
pop ebp
ret