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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x22c
mov eax, dword [0x10104610]
xor eax, esp
mov dword [esp + 0x228], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
push edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x20], esi
cmp dword [ebx + 4], esi
jle 0x1006dcb8
mov dword [esp + 0x1c], esi
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 8]
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + ecx + 4]
test eax, eax
je 0x1006dca7
call fcn.10047ec0
mov ebx, eax
test ebx, ebx
jne 0x1006dd3f
mov eax, dword [esp + 0x14]
add dword [esp + 0x1c], 0x18
inc esi
cmp esi, dword [eax + 4]
jl 0x1006dc85
mov ebx, eax
push 0x208
lea ecx, [esp + 0x2c]
push 0
push ecx
call fcn.100b5b30
add esp, 0xc
mov dword [esp + 0x28], ebx
test edi, edi
js 0x1006ddff
je 0x1006dce9
mov edx, dword [esp + 0x18]
cmp byte [edi + edx - 1], 0
je 0x1006ddff
cmp edi, dword [ebx + 0x54]
jle 0x1006dd9c
push str.statement_too_long
push 0x12
mov eax, ebx
call fcn.10036aa0
add esp, 8
cmp byte [ebx + 0x1e], 0
mov ecx, 0x12
je 0x1006dd25
push 0
push 7
mov eax, ebx
call fcn.10036aa0
add esp, 8
mov byte [ebx + 0x1e], 0
mov ecx, 7
mov eax, dword [ebx + 0x18]
and eax, ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.100afa0c
mov esp, ebp
pop ebp
ret
lea ecx, [esi + esi*2]
mov esi, dword [esp + 0x14]
mov edx, dword [esi + 8]
mov eax, dword [edx + ecx*8]
push eax
push str.database_schema_is_locked:__s
push ebx
mov eax, esi
call fcn.10036aa0
add esp, 0xc
cmp byte [esi + 0x1e], 0
jne 0x1006dd6b
cmp ebx, 0xc0a
jne 0x1006dd82
push 0
push 7
mov eax, esi
call fcn.10036aa0
add esp, 8
mov byte [esi + 0x1e], 0
mov ebx, 7
mov eax, dword [esi + 0x18]
and eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.100afa0c
mov esp, ebp
pop ebp
ret
cmp dword [esp + 0x18], 0
je 0x1006ddf2
lea ecx, [edi + 1]
mov esi, ebx
call fcn.10034ba0
mov esi, eax
test esi, esi
je 0x1006ddf2
mov eax, dword [esp + 0x18]
push edi
push eax
push esi
call fcn.100b2fc0
add esp, 0xc
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x2c]
push esi
push edx
mov byte [edi + esi], 0
call fcn.10083350
add esp, 0xc
push esi
push ebx
call fcn.100349a0
mov eax, dword [esp + 0x20]
sub eax, esi
add esp, 8
add dword [esp + 0x200], eax
jmp 0x1006de16
add edi, dword [esp + 0x18]
mov dword [esp + 0x200], edi
jmp 0x1006de16
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x20]
push edx
push eax
lea ecx, [esp + 0x30]
push ecx
call fcn.10083350
add esp, 0xc
cmp byte [ebx + 0x1e], 0
je 0x1006de23
mov eax, 7
jmp 0x1006de2e
mov eax, dword [esp + 0x2c]
cmp eax, 0x65
jne 0x1006de32
xor eax, eax
mov dword [esp + 0x2c], eax
cmp byte [esp + 0x3a], 0
je 0x1006de54
push ebx
call fcn.1006da50
add esp, 4
test eax, eax
jne 0x1006de50
mov dword [esp + 0x2c], 0x11
jmp 0x1006de59
mov eax, dword [esp + 0x2c]
cmp eax, 0x11
jne 0x1006de68
push 0
push ebx
call fcn.1005e3d0
mov eax, dword [esp + 0x34]
add esp, 8
cmp byte [ebx + 0x1e], 0
je 0x1006de77
mov eax, 7
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x1006de88
mov edx, dword [esp + 0x200]
mov dword [ecx], edx
mov dword [esp + 0x1c], eax
test eax, eax
mov eax, dword [esp + 0x34]
jne 0x1006e502
test eax, eax
je 0x1006e502
mov cl, byte [esp + 0x1e0]
test cl, cl
je 0x1006e502
cmp cl, 2
jne 0x1006e054
push 3
push eax
call fcn.1004b300
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax]
add esp, 8
cmp byte [ecx + 0x1e], 0
jne 0x1006df53
mov esi, dword [eax + 0x28]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x1006dee2
mov eax, dword [eax + 0x50]
jmp 0x1006dee7
mov eax, 0x3b9aca00
xor edi, edi
mov dword [esp + 0x10], eax
test eax, eax
js 0x1006deff
cmp byte [edi + str.order], 0
je 0x1006deff
inc edi
cmp edi, eax
jle 0x1006def1
xor edx, edx
mov ebx, 0x202
push esi
cmp edx, fcn.100349a0
jne 0x1006df21
call fcn.10048fa0
mov eax, str.order
mov dword [esi + 0x14], eax
mov dword [esi + 0x24], eax
jmp 0x1006df32
call fcn.10048fa0
mov dword [esi + 0x14], str.order
mov ebx, 0xa02
add esp, 4
mov dword [esi + 0x20], 0
cmp edi, dword [esp + 0x10]
jg 0x1006df4f
mov dword [esi + 0x18], edi
mov word [esi + 0x1c], bx
mov word [esi + 0x1e], 0x103
mov eax, dword [esp + 0x34]
mov ecx, dword [eax]
cmp byte [ecx + 0x1e], 0
jne 0x1006dfe2
mov esi, dword [eax + 0x28]
mov eax, dword [esi + 0x38]
add esi, 0x28
test eax, eax
je 0x1006df71
mov eax, dword [eax + 0x50]
jmp 0x1006df76
mov eax, 0x3b9aca00
xor edi, edi
mov dword [esp + 0x10], eax
test eax, eax
js 0x1006df8e
cmp byte [edi + str.from], 0
je 0x1006df8e
inc edi
cmp edi, eax
jle 0x1006df80
xor edx, edx
mov ebx, 0x202
push esi
cmp edx, fcn.100349a0
jne 0x1006dfb0
call fcn.10048fa0
mov eax, str.from
mov dword [esi + 0x14], eax
mov dword [esi + 0x24], eax
jmp 0x1006dfc1
call fcn.10048fa0
mov dword [esi + 0x14], str.from
mov ebx, 0xa02
add esp, 4
mov dword [esi + 0x20], 0
cmp edi, dword [esp + 0x10]
jg 0x1006dfde
mov dword [esi + 0x18], edi
mov word [esi + 0x1c], bx
mov word [esi + 0x1e], 0x103
mov eax, dword [esp + 0x34]
mov ecx, dword [eax]
cmp byte [ecx + 0x1e], 0
jne 0x1006e502
mov esi, dword [eax + 0x28]
mov eax, dword [esi + 0x60]
add esi, 0x50
test eax, eax
je 0x1006e000
mov eax, dword [eax + 0x50]
jmp 0x1006e005
mov eax, 0x3b9aca00
xor edi, edi
mov dword [esp + 0x10], eax
test eax, eax
js 0x1006e01e
nop
cmp byte [edi + str.detail], 0
je 0x1006e01e
inc edi
cmp edi, eax
jle 0x1006e010
xor edx, edx
mov ebx, 0x202
push esi
cmp edx, fcn.100349a0
jne 0x1006e043
call fcn.10048fa0
mov eax, str.detail
mov dword [esi + 0x14], eax
mov dword [esi + 0x24], eax
jmp 0x1006e4e1
call fcn.10048fa0
mov dword [esi + 0x14], str.detail
jmp 0x1006e4dc
push 8
push eax
call fcn.1004b300
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax]
add esp, 8
cmp byte [ecx + 0x1e], 0
jne 0x1006e0f2
mov esi, dword [eax + 0x28]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x1006e07e
mov eax, dword [eax + 0x50]
jmp 0x1006e083
mov eax, 0x3b9aca00
xor edi, edi
mov dword [esp + 0x10], eax
test eax, eax
js 0x1006e09e
lea ecx, [ecx]
cmp byte [edi + str.addr], 0
je 0x1006e09e
inc edi
cmp edi, eax
jle 0x1006e090
xor edx, edx
mov ebx, 0x202
push esi
cmp edx, fcn.100349a0
jne 0x1006e0c0
call fcn.10048fa0
mov eax, str.addr
mov dword [esi + 0x14], eax
mov dword [esi + 0x24], eax
jmp 0x1006e0d1
call fcn.10048fa0
mov dword [esi + 0x14], str.addr
mov ebx, 0xa02
add esp, 4
mov dword [esi + 0x20], 0
cmp edi, dword [esp + 0x10]
jg 0x1006e0ee
mov dword [esi + 0x18], edi
mov word [esi + 0x1c], bx
mov word [esi + 0x1e], 0x103
mov eax, dword [esp + 0x34]
mov ecx, dword [eax]
cmp byte [ecx + 0x1e], 0
jne 0x1006e182
mov esi, dword [eax + 0x28]
mov eax, dword [esi + 0x38]
add esi, 0x28
test eax, eax
je 0x1006e110
mov eax, dword [eax + 0x50]
jmp 0x1006e115
mov eax, 0x3b9aca00
xor edi, edi
mov dword [esp + 0x10], eax
test eax, eax
js 0x1006e12e
nop
cmp byte [edi + str.opcode], 0
je 0x1006e12e
inc edi
cmp edi, eax
jle 0x1006e120
xor edx, edx
mov ebx, 0x202
push esi
cmp edx, fcn.100349a0
jne 0x1006e150
call fcn.10048fa0
mov eax, str.opcode
mov dword [esi + 0x14], eax
mov dword [esi + 0x24], eax
jmp 0x1006e161
call fcn.10048fa0
mov dword [esi + 0x14], str.opcode
mov ebx, 0xa02
add esp, 4
mov dword [esi + 0x20], 0
cmp edi, dword [esp + 0x10]
jg 0x1006e17e
mov dword [esi + 0x18], edi
mov word [esi + 0x1c], bx
mov word [esi + 0x1e], 0x103
mov eax, dword [esp + 0x34]
mov ecx, dword [eax]
cmp byte [ecx + 0x1e], 0
jne 0x1006e212
mov esi, dword [eax + 0x28]
mov eax, dword [esi + 0x60]
add esi, 0x50
test eax, eax
je 0x1006e1a0
mov eax, dword [eax + 0x50]
jmp 0x1006e1a5
mov eax, 0x3b9aca00
xor edi, edi
mov dword [esp + 0x10], eax
test eax, eax
js 0x1006e1be
nop
cmp byte [edi + 0x100ee5b0], 0
je 0x1006e1be
inc edi
cmp edi, eax
jle 0x1006e1b0
xor edx, edx
mov ebx, 0x202
push esi
cmp edx, fcn.100349a0
jne 0x1006e1e0
call fcn.10048fa0
mov eax, 0x100ee5b0
mov dword [esi + 0x14], eax
mov dword [esi + 0x24], eax
jmp 0x1006e1f1
call fcn.10048fa0
mov dword [esi + 0x14], 0x100ee5b0
mov ebx, 0xa02
add esp, 4
mov dword [esi + 0x20], 0
cmp edi, dword [esp + 0x10]
jg 0x1006e20e
mov dword [esi + 0x18], edi
mov word [esi + 0x1c], bx
mov word [esi + 0x1e], 0x103
mov eax, dword [esp + 0x34]
mov ecx, dword [eax]
cmp byte [ecx + 0x1e], 0
jne 0x1006e2a4
mov esi, dword [eax + 0x28]
mov eax, dword [esi + 0x88]
add esi, 0x78
test eax, eax
je 0x1006e233
mov eax, dword [eax + 0x50]
jmp 0x1006e238
mov eax, 0x3b9aca00
xor edi, edi
mov dword [esp + 0x10], eax
test eax, eax
js 0x1006e250
cmp byte [edi + 0x100ee5b4], 0
je 0x1006e250
inc edi
cmp edi, eax
jle 0x1006e242
xor edx, edx
mov ebx, 0x202
push esi
cmp edx, fcn.100349a0
jne 0x1006e272
call fcn.10048fa0
mov eax, 0x100ee5b4
mov dword [esi + 0x14], eax
mov dword [esi + 0x24], eax
jmp 0x1006e283
call fcn.10048fa0
mov dword [esi + 0x14], 0x100ee5b4
mov ebx, 0xa02
add esp, 4
mov dword [esi + 0x20], 0
cmp edi, dword [esp + 0x10]
jg 0x1006e2a0
mov dword [esi + 0x18], edi
mov word [esi + 0x1c], bx
mov word [esi + 0x1e], 0x103
mov eax, dword [esp + 0x34]
mov ecx, dword [eax]
cmp byte [ecx + 0x1e], 0
jne 0x1006e339
mov esi, dword [eax + 0x28]
mov eax, dword [esi + 0xb0]
add esi, 0xa0
test eax, eax
je 0x1006e2c8
mov eax, dword [eax + 0x50]
jmp 0x1006e2cd
mov eax, 0x3b9aca00
xor edi, edi
mov dword [esp + 0x10], eax
test eax, eax
js 0x1006e2e5
cmp byte [edi + 0x100ee5b8], 0
je 0x1006e2e5
inc edi
cmp edi, eax
jle 0x1006e2d7
xor edx, edx
mov ebx, 0x202
push esi
cmp edx, fcn.100349a0
jne 0x1006e307
call fcn.10048fa0
mov eax, 0x100ee5b8
mov dword [esi + 0x14], eax
mov dword [esi + 0x24], eax
jmp 0x1006e318
call fcn.10048fa0
mov dword [esi + 0x14], 0x100ee5b8
mov ebx, 0xa02
add esp, 4
mov dword [esi + 0x20], 0
cmp edi, dword [esp + 0x10]
jg 0x1006e335
mov dword [esi + 0x18], edi
mov word [esi + 0x1c], bx
mov word [esi + 0x1e], 0x103
mov eax, dword [esp + 0x34]
mov ecx, dword [eax]
cmp byte [ecx + 0x1e], 0
jne 0x1006e3d2
mov esi, dword [eax + 0x28]
mov eax, dword [esi + 0xd8]
add esi, 0xc8
test eax, eax
je 0x1006e35d
mov eax, dword [eax + 0x50]
jmp 0x1006e362
mov eax, 0x3b9aca00
xor edi, edi
mov dword [esp + 0x10], eax
test eax, eax
js 0x1006e37e
lea esp, [esp]
cmp byte [edi + 0x100ee5bc], 0
je 0x1006e37e
inc edi
cmp edi, eax
jle 0x1006e370
xor edx, edx
mov ebx, 0x202
push esi
cmp edx, fcn.100349a0
jne 0x1006e3a0
call fcn.10048fa0
mov eax, 0x100ee5bc
mov dword [esi + 0x14], eax
mov dword [esi + 0x24], eax
jmp 0x1006e3b1
call fcn.10048fa0
mov dword [esi + 0x14], 0x100ee5bc
mov ebx, 0xa02
add esp, 4
mov dword [esi + 0x20], 0
cmp edi, dword [esp + 0x10]
jg 0x1006e3ce
mov dword [esi + 0x18], edi
mov word [esi + 0x1c], bx
mov word [esi + 0x1e], 0x103
mov eax, dword [esp + 0x34]
mov ecx, dword [eax]
cmp byte [ecx + 0x1e], 0
jne 0x1006e467
mov esi, dword [eax + 0x28]
mov eax, dword [esi + 0x100]
add esi, 0xf0
test eax, eax
je 0x1006e3f6
mov eax, dword [eax + 0x50]
jmp 0x1006e3fb
mov eax, 0x3b9aca00
xor edi, edi
mov dword [esp + 0x10], eax
test eax, eax
js 0x1006e413
cmp byte [edi + 0x100ee5c0], 0
je 0x1006e413
inc edi
cmp edi, eax
jle 0x1006e405
xor edx, edx
mov ebx, 0x202
push esi
cmp edx, fcn.100349a0
jne 0x1006e435
call fcn.10048fa0
mov eax, 0x100ee5c0
mov dword [esi + 0x14], eax
mov dword [esi + 0x24], eax
jmp 0x1006e446
call fcn.10048fa0
mov dword [esi + 0x14], 0x100ee5c0
mov ebx, 0xa02
add esp, 4
mov dword [esi + 0x20], 0
cmp edi, dword [esp + 0x10]
jg 0x1006e463
mov dword [esi + 0x18], edi
mov word [esi + 0x1c], bx
mov word [esi + 0x1e], 0x103
mov eax, dword [esp + 0x34]
mov ecx, dword [eax]
cmp byte [ecx + 0x1e], 0
jne 0x1006e502
mov esi, dword [eax + 0x28]
mov eax, dword [esi + 0x128]
add esi, 0x118
test eax, eax
je 0x1006e48b
mov eax, dword [eax + 0x50]
jmp 0x1006e490
mov eax, 0x3b9aca00
xor edi, edi
mov dword [esp + 0x10], eax
test eax, eax
js 0x1006e4ae
lea ebx, [ebx]
cmp byte [edi + str.comment], 0
je 0x1006e4ae
inc edi
cmp edi, eax
jle 0x1006e4a0
xor edx, edx
mov ebx, 0x202
push esi
cmp edx, fcn.100349a0
jne 0x1006e4d0
call fcn.10048fa0
mov eax, str.comment
mov dword [esi + 0x14], eax
mov dword [esi + 0x24], eax
jmp 0x1006e4e1
call fcn.10048fa0
mov dword [esi + 0x14], str.comment
mov ebx, 0xa02
add esp, 4
mov dword [esi + 0x20], 0
cmp edi, dword [esp + 0x10]
jg 0x1006e4fe
mov word [esi + 0x1e], 0x103
mov word [esi + 0x1c], bx
mov dword [esi + 0x18], edi
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x14]
cmp byte [ecx + 0x80], 0
jne 0x1006e56a
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x200]
sub edi, ecx
mov ebx, eax
test eax, eax
je 0x1006e5ae
mov eax, dword [eax]
test ecx, ecx
jne 0x1006e530
xor esi, esi
jmp 0x1006e553
lea ecx, [edi + 1]
mov esi, eax
call fcn.10034ba0
mov esi, eax
test esi, esi
je 0x1006e553
mov edx, dword [esp + 0x18]
push edi
push edx
push esi
call fcn.100b2fc0
add esp, 0xc
mov byte [esi + edi], 0
cmp dword [ebp + 0x14], 0
mov dword [ebx + 0xcc], esi
setne al
mov byte [ebx + 0x83], al
mov eax, dword [esp + 0x34]
test eax, eax
je 0x1006e5ae
cmp dword [esp + 0x1c], 0
jne 0x1006e57f
mov ecx, dword [esp + 0x14]
cmp byte [ecx + 0x1e], 0
je 0x1006e5ae
mov ecx, dword [eax + 0x44]
mov esi, eax
cmp ecx, 0xbdf20da3
je 0x1006e59e
cmp ecx, 0x519c2973
je 0x1006e59e
cmp ecx, 0x26bceaa5
je 0x1006e5a3
jmp 0x1006e5b4
call fcn.1004bcf0
push esi
call fcn.1004be60
add esp, 4
jmp 0x1006e5b4
mov edx, dword [esp + 0x24]
mov dword [edx], eax
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x1c]
mov eax, esi
test edi, edi
je 0x1006e606
push edi
push 0x100ec558
push ebx
call fcn.10036aa0
add esp, 0xc
cmp edi, dword [esi + 0xf0]
jb 0x1006e5fb
cmp edi, dword [esi + 0xf4]
jae 0x1006e5fb
mov eax, dword [esi + 0xec]
mov dword [edi], eax
dec dword [esi + 0xe4]
mov dword [esi + 0xec], edi
jmp 0x1006e611
push edi
call fcn.10034920
add esp, 4
jmp 0x1006e611
push 0
push ebx
call fcn.10036aa0
add esp, 8
cmp byte [esi + 0x1e], 0
mov eax, ebx
jne 0x1006e621
cmp ebx, 0xc0a
jne 0x1006e638
push 0
push 7
mov eax, esi
call fcn.10036aa0
add esp, 8
mov byte [esi + 0x1e], 0
mov eax, 7
mov esi, dword [esi + 0x18]
mov ecx, dword [esp + 0x234]
pop edi
and eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.100afa0c
mov esp, ebp
pop ebp
ret