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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xac
push ebx
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx]
xor eax, eax
push esi
xor esi, esi
push edi
mov dword [esp + 0x58], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x54], 0xffffffff
mov dword [esp + 0x38], esi
mov dword [esp + 0x78], esi
mov dword [esp + 0x68], esi
mov byte [esp + 0x17], 0
mov byte [esp + 0x27], 0
mov dword [esp + 0x48], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x40], ecx
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], eax
cmp dword [ebx + 0x44], esi
jne 0x100522c6
cmp byte [ecx + 0x45], al
jne 0x100522c6
mov eax, dword [ebp + 0x10]
cmp eax, esi
je 0x10051297
test dword [eax + 8], 0x100
je 0x10051297
cmp dword [eax + 0x30], esi
jne 0x10051297
mov edx, dword [eax]
push 1
push eax
push ecx
mov dword [esp + 0x54], edx
mov dword [eax], esi
call fcn.100598f0
add esp, 0xc
mov dword [ebp + 0x10], esi
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x10], esi
je 0x100522c6
push ebx
call fcn.10049870
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
je 0x100522c6
mov ecx, dword [esp + 0x40]
mov edi, eax
mov esi, dword [edi + 0x40]
call fcn.10058ea0
mov ecx, dword [esp + 0x40]
mov edx, dword [ecx + 0x10]
mov dword [esp + 0x20], eax
add eax, eax
mov eax, dword [edx + eax*8]
push eax
mov eax, dword [edi]
push 0
push eax
push 0x12
mov eax, ebx
call fcn.100419d0
add esp, 0x10
test eax, eax
jne 0x100522c6
mov esi, edi
mov al, byte [esi + 0x2a]
shr al, 5
lea ecx, [esp + 0x34]
push ecx
and al, 1
mov byte [esp + 0x37], al
push 0
push 0x6c
mov edx, esi
mov eax, ebx
call fcn.10065760
xor edx, edx
add esp, 0xc
cmp dword [esi + 0xc], edx
mov dword [esp + 0x74], eax
setne dl
mov eax, esi
mov edi, ebx
mov dword [esp + 0x70], edx
call fcn.10045030
test eax, eax
jne 0x100522c6
mov eax, dword [esp + 0x34]
push eax
mov ecx, esi
call fcn.10049900
add esp, 4
test eax, eax
jne 0x100522c6
call fcn.1005cba0
mov dword [esp + 0x10], eax
test eax, eax
je 0x100522c6
cmp byte [ebx + 0x12], 0
jne 0x10051366
or dword [eax + 0x60], 4
cmp dword [ebp + 0x10], 0
jne 0x10051377
cmp dword [esp + 0x74], 0
jne 0x10051377
xor eax, eax
jmp 0x1005137c
mov eax, 1
mov edi, dword [esp + 0x20]
push eax
mov ecx, edi
mov eax, ebx
call fcn.100480c0
add esp, 4
cmp dword [ebp + 0x14], 0
jne 0x100513ad
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x10]
push edi
push ecx
push esi
push ebx
call fcn.10053ea0
add esp, 0x10
test eax, eax
jne 0x100521fe
mov edx, dword [esp + 0x20]
push edx
mov edi, esi
mov ecx, ebx
call fcn.10050c80
mov dword [esp + 0x48], eax
mov eax, dword [ebx + 0x4c]
lea ecx, [eax + 1]
mov dword [esp + 0x84], ecx
mov dword [esp + 0x2c], ecx
movsx ecx, word [esi + 0x22]
lea eax, [ecx + eax + 1]
add esp, 4
mov dword [ebx + 0x4c], eax
test byte [esi + 0x2a], 0x10
je 0x100513f4
mov edx, dword [esp + 0x80]
inc edx
inc eax
mov dword [esp + 0x28], edx
mov dword [ebx + 0x4c], eax
mov eax, dword [esp + 0x28]
mov ecx, dword [ebp + 0x14]
inc eax
mov dword [esp + 0x7c], eax
mov al, byte [esi + 0x2a]
shr al, 7
not al
and al, 1
mov byte [esp + 0x26], al
test ecx, ecx
je 0x10051501
xor eax, eax
cmp dword [ecx + 4], eax
jle 0x10051430
lea ecx, [ecx]
mov edx, dword [ecx]
mov dword [edx + eax*8 + 4], 0xffffffff
inc eax
cmp eax, dword [ecx + 4]
jl 0x10051420
cmp dword [ecx + 4], 0
mov dword [esp + 0x2c], 0
jle 0x10051501
movsx eax, word [esi + 0x22]
xor edi, edi
test eax, eax
jle 0x100514b3
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
mov edx, dword [esp + 0x2c]
lea eax, [ecx + edx*8]
mov ecx, dword [esi + 4]
mov dword [esp + 0x50], eax
mov eax, dword [eax]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x1c], ecx
lea esp, [esp]
mov edx, dword [esp + 0x1c]
mov eax, dword [edx]
mov ecx, dword [esp + 0x3c]
call fcn.10007010
test eax, eax
je 0x10051493
movsx eax, word [esi + 0x22]
add dword [esp + 0x1c], 0x10
inc edi
cmp edi, eax
jl 0x10051470
jmp 0x100514b3
mov eax, dword [esp + 0x50]
mov dword [eax + 4], edi
mov eax, dword [esp + 0x2c]
cmp eax, edi
je 0x100514a7
mov byte [esp + 0x26], 0
movsx ecx, word [esi + 0x20]
cmp edi, ecx
jne 0x100514b3
mov dword [esp + 0x54], eax
movsx edx, word [esi + 0x22]
cmp edi, edx
jl 0x100514ec
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
mov edx, dword [esp + 0x2c]
mov edi, dword [ecx + edx*8]
call fcn.10039e20
test eax, eax
je 0x1005177d
cmp byte [esp + 0x33], 0
jne 0x1005177d
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x54], eax
mov byte [esp + 0x26], 0
mov eax, dword [esp + 0x2c]
mov ecx, dword [ebp + 0x14]
inc eax
mov dword [esp + 0x2c], eax
cmp eax, dword [ecx + 4]
jl 0x10051442
xor eax, eax
cmp dword [ebp + 0x10], eax
je 0x100517a7
mov ecx, dword [esp + 0x10]
inc dword [ebx + 0x4c]
mov edi, dword [ecx + 0x20]
mov eax, dword [ebx + 0x4c]
inc edi
push edi
push 0
push eax
push 0x10
push ecx
mov dword [esp + 0x30], eax
call fcn.100242d0
movzx edx, byte [esp + 0x3a]
mov ecx, dword [esp + 0x30]
add esp, 0x14
neg edx
sbb edx, edx
and edx, dword [esp + 0x7c]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], edx
mov edx, dword [ebp + 0x10]
lea ecx, [esp + 0x84]
mov dword [esp + 0x90], 0
push ecx
mov word [esp + 0x88], 0xd
movsx eax, word [esi + 0x22]
push edx
push ebx
mov dword [esp + 0x9c], eax
call fcn.10061e50
mov ecx, dword [esp + 0x98]
add esp, 0xc
mov dword [esp + 0x5c], ecx
test eax, eax
jne 0x100522c6
mov edx, dword [esp + 0x40]
cmp byte [edx + 0x45], al
jne 0x100522c6
cmp dword [ebx + 0x44], eax
jne 0x100522c6
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
call fcn.100248c0
mov eax, dword [esp + 0x10]
lea ecx, [edi - 1]
call fcn.10024c90
cmp dword [esp + 0x74], 0
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov dword [esp + 0x3c], edx
jne 0x100515f2
mov eax, dword [esp + 0x20]
push eax
mov eax, dword [ebp + 8]
mov ebx, esi
call fcn.10050bb0
mov ebx, dword [ebp + 8]
add esp, 4
test eax, eax
je 0x100516b4
mov edx, dword [ebx + 0x48]
lea ecx, [edx + 1]
mov dword [ebx + 0x48], ecx
mov ecx, ebx
mov byte [esp + 0x17], 1
mov dword [esp + 0x38], edx
call fcn.1003df90
mov dword [esp + 0x1c], eax
call fcn.1003df90
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x20], eax
mov ebx, edx
mov edx, 0x39
mov eax, esi
call fcn.10024400
mov edi, dword [esp + 0x88]
mov ebx, 0x12
mov eax, esi
call fcn.100243a0
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x5c]
push edx
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x40]
push eax
push ecx
push 0x31
push esi
call fcn.100242d0
mov edi, dword [esp + 0x34]
mov ebx, dword [esp + 0x4c]
add esp, 0x14
mov edx, 0x4a
mov eax, esi
call fcn.10024400
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x38]
mov edx, edi
push edx
push ebx
push eax
push 0x4b
push esi
call fcn.100242d0
mov edi, dword [esp + 0x64]
add esp, 0x14
mov eax, esi
call fcn.10024460
mov ecx, edi
mov eax, esi
call fcn.10024c90
mov edx, dword [ebp + 8]
mov esi, ebx
call fcn.1003dfb0
mov esi, dword [esp + 0x20]
call fcn.1003dfb0
mov ebx, edx
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x3c]
xor eax, eax
cmp dword [ebp + 0x14], eax
jne 0x100516cf
cmp edx, eax
jle 0x100516cf
movsx ecx, word [esi + 0x20]
mov dword [esp + 0x54], ecx
movsx ecx, word [esi + 0x22]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
cmp ecx, 2
jl 0x1005171a
mov eax, dword [esi + 4]
add ecx, 0xfffffffe
shr ecx, 1
add eax, 0x1f
inc ecx
lea edx, [ecx + ecx]
mov dword [esp + 0x2c], edx
movzx edx, byte [eax - 0x10]
shr edx, 1
and edx, 1
add dword [esp + 0x1c], edx
movzx edx, byte [eax]
shr edx, 1
and edx, 1
add dword [esp + 0x20], edx
add eax, 0x20
dec ecx
jne 0x100516f3
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x2c]
movsx ecx, word [esi + 0x22]
cmp eax, ecx
jge 0x10051735
mov edi, dword [esi + 4]
add eax, eax
movzx eax, byte [edi + eax*8 + 0xf]
shr eax, 1
and eax, 1
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x20]
add eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x58]
add edi, eax
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x10051824
test edx, edx
je 0x10051840
mov eax, ecx
sub eax, edi
cmp edx, eax
je 0x10051840
mov ecx, dword [ebp + 0xc]
push edx
push eax
push 0
push ecx
push str.table__S_has__d_columns_but__d_values_were_supplied
push ebx
call fcn.10006e10
add esp, 0x18
jmp 0x100522c6
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
mov ecx, dword [esp + 0x2c]
mov edx, dword [eax + ecx*8]
mov eax, dword [ebp + 0xc]
push edx
push 0
push eax
push str.table__S_has_no_column_named__s
push ebx
call fcn.10006e10
add esp, 0x14
mov byte [ebx + 0x11], 1
jmp 0x100522c6
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], eax
mov dword [esp + 0x98], ebx
mov dword [esp + 0x38], 0xffffffff
cmp dword [esp + 0x48], eax
je 0x1005181b
mov eax, dword [esp + 0x48]
mov ecx, dword [eax]
push eax
lea esi, [esp + 0x9c]
mov dword [esp + 0x40], ecx
call fcn.10037a40
add esp, 4
test eax, eax
jne 0x100522c6
jmp 0x100516b4
mov dword [esp + 0x3c], eax
jmp 0x100516b8
mov eax, dword [eax + 4]
cmp edx, eax
je 0x10051840
push eax
push edx
push str._d_values_for__d_columns
push ebx
call fcn.10006e10
add esp, 0x10
jmp 0x100522c6
mov edx, dword [esp + 0x40]
test byte [edx + 0x18], 0x80
je 0x1005186b
inc dword [ebx + 0x4c]
mov ebx, dword [ebx + 0x4c]
mov eax, dword [esp + 0x10]
mov edi, ebx
mov dword [esp + 0x64], ebx
xor ebx, ebx
lea edx, [ebx + 0x16]
call fcn.10024400
mov esi, dword [esp + 0x18]
mov ebx, dword [ebp + 8]
cmp dword [esp + 0x70], 0
jne 0x100518c7
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x50]
push ecx
push 0
push 0xffffffffffffffff
push 0
push 0x37
push esi
push ebx
call fcn.10053b90
mov edi, eax
mov eax, dword [esp + 0x60]
lea edx, [edi*4 + 4]
push 0
push edx
call fcn.10004420
add esp, 0x28
mov dword [esp + 0x6c], eax
test eax, eax
je 0x100522c6
xor eax, eax
test edi, edi
jle 0x100518c7
inc dword [ebx + 0x4c]
mov ecx, dword [ebx + 0x4c]
mov edx, dword [esp + 0x6c]
mov dword [edx + eax*4], ecx
inc eax
cmp eax, edi
jl 0x100518b5
cmp byte [esp + 0x17], 0
je 0x100518eb
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x38]
mov ebx, 0x6c
mov eax, esi
call fcn.100243a0
mov dword [esp + 0x78], eax
mov eax, dword [esi + 0x20]
jmp 0x1005190a
cmp dword [ebp + 0x10], 0
je 0x10051915
mov edi, dword [esp + 0x88]
mov eax, dword [esp + 0x10]
mov ebx, 0x12
call fcn.100243a0
mov dword [esp + 0x78], eax
mov ebx, dword [ebp + 8]
mov esi, dword [esp + 0x18]
mov dword [esp + 0x68], eax
mov edi, dword [esp + 0x10]
mov eax, edi
call fcn.10024930
test byte [esp + 0x34], 1
mov dword [esp + 0x1c], eax
je 0x10051b15
mov ecx, dword [esp + 0x18]
movsx esi, word [ecx + 0x22]
inc esi
mov ecx, ebx
call fcn.1003dfe0
mov edi, eax
mov eax, dword [esp + 0x54]
test eax, eax
jns 0x1005195a
mov eax, dword [esp + 0x10]
or ebx, 0xffffffff
lea edx, [ebx + 0x17]
call fcn.10024400
jmp 0x100519c8
cmp byte [esp + 0x17], 0
push edi
je 0x10051979
mov edx, dword [esp + 0x3c]
push eax
mov eax, dword [esp + 0x18]
push edx
push 0x2f
push eax
call fcn.100242d0
add esp, 0x14
jmp 0x10051990
mov edx, dword [esp + 0x4c]
lea ecx, [eax + eax*2]
mov eax, dword [edx + 4]
mov ecx, dword [eax + ecx*8]
push ecx
push ebx
call fcn.1003cbd0
add esp, 0xc
mov esi, dword [esp + 0x10]
mov ebx, 0x4d
mov eax, esi
call fcn.100243a0
or ebx, 0xffffffff
mov dword [esp + 0x50], eax
lea edx, [ebx + 0x17]
mov eax, esi
call fcn.10024400
mov ecx, dword [esp + 0x50]
mov eax, esi
call fcn.10024c90
mov ebx, 0x26
mov eax, esi
call fcn.100243a0
mov eax, dword [esp + 0x18]
xor edx, edx
xor esi, esi
cmp dx, word [eax + 0x22]
jge 0x10051aa9
or eax, 0xffffffff
sub eax, edi
lea ebx, [edi + 1]
mov dword [esp + 0x20], edx
mov dword [esp + 0x34], eax
lea ebx, [ebx]
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x10051a1a
mov ecx, dword [eax + 4]
xor esi, esi
test ecx, ecx
jle 0x10051a1a
mov eax, dword [eax]
add eax, 4
mov edx, dword [esp + 0x34]
add edx, ebx
cmp dword [eax], edx
je 0x10051a17
inc esi
add eax, 8
cmp esi, ecx
jl 0x10051a05
mov eax, dword [ebp + 0x14]
mov cl, byte [esp + 0x17]
test cl, cl
jne 0x10051a29
cmp dword [esp + 0x48], 0
je 0x10051a32
test eax, eax
je 0x10051a51
cmp esi, dword [eax + 4]
jl 0x10051a51
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x20]
mov eax, dword [ecx + edx + 4]
mov ecx, dword [ebp + 8]
push ebx
push eax
push ecx
call fcn.1003cbd0
add esp, 0xc
jmp 0x10051a86
test cl, cl
je 0x10051a6d
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x10]
push ebx
push esi
push edx
push 0x2f
push eax
call fcn.100242d0
add esp, 0x14
jmp 0x10051a86
mov edx, dword [esp + 0x48]
mov eax, dword [edx + 4]
lea ecx, [esi + esi*2]
mov ecx, dword [eax + ecx*8]
mov eax, dword [ebp + 8]
push ecx
call fcn.1003cd50
add esp, 4
cmp dword [ebp + 0x14], 0
jne 0x10051a8d
inc esi
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x34]
movsx ecx, word [eax + 0x22]
add dword [esp + 0x20], 0x10
inc ebx
add edx, ebx
cmp edx, ecx
jl 0x100519f0
cmp dword [esp + 0x70], 0
jne 0x10051ac5
mov eax, dword [esp + 0x10]
lea edx, [edi + 1]
push edx
push eax
mov eax, dword [esp + 0x20]
call fcn.10050ac0
add esp, 8
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
movsx eax, word [esi + 0x22]
mov edx, dword [ebp + 0x18]
mov ebx, dword [ebp + 8]
push ecx
push edx
mov edx, dword [esp + 0x7c]
mov ecx, edi
sub ecx, eax
dec ecx
push ecx
push esi
push 1
push 0
push 0x6c
push edx
push ebx
call fcn.10066050
movsx esi, word [esi + 0x22]
inc esi
add esp, 0x24
mov ecx, esi
mov eax, ebx
call fcn.1003b510
cmp esi, dword [ebx + 0x3c]
jle 0x10051b0d
mov dword [eax + 0x3c], esi
mov dword [eax + 0x40], edi
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
cmp dword [esp + 0x70], 0
jne 0x10051f8b
test byte [esi + 0x2a], 0x10
je 0x10051b46
mov edi, dword [esp + 0x80]
mov eax, dword [esp + 0x10]
xor ebx, ebx
lea edx, [ebx + 0x19]
call fcn.10024400
mov esi, dword [esp + 0x18]
mov ebx, dword [ebp + 8]
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x54]
test eax, eax
js 0x10051c91
cmp byte [esp + 0x17], 0
je 0x10051bc7
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x38]
push ecx
push eax
push edx
push 0x2f
push edi
call fcn.100242d0
add esp, 0x14
test byte [esi + 0x2a], 0x10
jne 0x10051c61
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x28]
mov ebx, 0x4d
mov eax, esi
call fcn.100243a0
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x4c]
push edx
mov edi, eax
mov eax, dword [esp + 0x2c]
push eax
push ecx
push 0x4a
push esi
call fcn.100242d0
add esp, 0x14
mov ecx, edi
mov eax, esi
call fcn.10024c90
mov edi, dword [esp + 0x28]
mov ebx, 0x26
mov eax, esi
call fcn.100243a0
jmp 0x10051cd1
cmp dword [ebp + 0x10], 0
je 0x10051bf3
mov ecx, dword [esp + 0x54]
mov ebx, dword [esp + 0x5c]
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
lea ebx, [ebx + ecx]
mov edx, 0x1e
call fcn.10024400
mov esi, dword [esp + 0x18]
jmp 0x10051b6f
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x48]
push edx
mov edx, dword [ecx + 4]
lea eax, [eax + eax*2]
mov eax, dword [edx + eax*8]
push eax
push ebx
call fcn.1003cbd0
mov ecx, dword [edi]
mov eax, dword [edi + 0x20]
add esp, 0xc
cmp byte [ecx + 0x45], 0
je 0x10051c21
mov eax, 0x100d87f0
jmp 0x10051c33
lea edx, [eax + eax*4 - 5]
mov eax, dword [edi + 4]
lea eax, [eax + edx*4]
test eax, eax
je 0x10051b6f
cmp byte [eax], 0x19
jne 0x10051b6f
test byte [esi + 0x2a], 0x10
jne 0x10051c61
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x28]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x44]
mov byte [esp + 0x27], 1
mov byte [eax], 0x4a
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
jmp 0x10051cd8
mov edx, dword [esp + 0x10]
mov edi, dword [edx + 0x20]
mov ebx, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
add edi, 2
mov edx, 0x4c
call fcn.10024400
mov esi, dword [esp + 0x10]
mov edi, ebx
mov ebx, 0x26
mov eax, esi
call fcn.100243a0
jmp 0x10051cd1
test byte [esi + 0x2a], 0x10
jne 0x10051cbf
cmp byte [esp + 0x33], 0
jne 0x10051cbf
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x4c]
push eax
push ecx
push edx
push 0x4a
push edi
call fcn.100242d0
add esp, 0x14
mov byte [esp + 0x27], 1
jmp 0x10051cd8
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
xor ebx, ebx
lea edx, [ebx + 0x19]
call fcn.10024400
mov ebx, dword [ebp + 8]
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x28]
mov ecx, dword [esp + 0x44]
mov eax, ebx
call fcn.10050f20
xor edi, edi
xor eax, eax
mov dword [esp + 0x58], edi
mov dword [esp + 0x2c], edi
cmp ax, word [esi + 0x22]
jge 0x10051dbb
mov dword [esp + 0x44], eax
movsx edx, word [esi + 0x20]
mov ecx, dword [esp + 0x7c]
add ecx, edi
mov dword [esp + 0x34], ecx
cmp edi, edx
jne 0x10051d67
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0x20]
mov edx, dword [edx + 0x18]
cmp dword [edx + 0x58], eax
jg 0x10051d37
mov esi, dword [esp + 0x10]
push 0
push 0
push ecx
push 0x1a
call fcn.10024290
add esp, 0x10
jmp 0x10051da1
mov edx, dword [esp + 0x10]
lea edi, [eax + 1]
mov dword [edx + 0x20], edi
mov edx, dword [edx + 4]
mov edi, dword [esp + 0x2c]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
mov dword [eax + 4], ecx
xor ecx, ecx
mov byte [eax + 3], 0
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov word [eax], 0x1a
jmp 0x10051da5
cmp dword [ebp + 0x14], 0
jne 0x10051e4f
mov eax, dword [esi + 4]
mov edx, dword [esp + 0x44]
test byte [eax + edx + 0xf], 2
je 0x10051e47
inc dword [esp + 0x58]
mov eax, dword [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 4]
mov eax, dword [edx + eax + 4]
mov esi, ebx
call fcn.1003cc80
add esp, 4
mov esi, dword [esp + 0x18]
movsx ecx, word [esi + 0x22]
add dword [esp + 0x44], 0x10
inc edi
mov dword [esp + 0x2c], edi
cmp edi, ecx
jl 0x10051d01
test byte [esi + 0x2a], 0x10
je 0x10051f0c
mov edi, dword [esi + 0x38]
test edi, edi
je 0x10051ddf
lea esp, [esp]
mov edx, dword [edi]
cmp edx, dword [esp + 0x40]
je 0x10051ddf
mov edi, dword [edi + 0x18]
test edi, edi
jne 0x10051dd0
push esi
mov eax, ebx
call fcn.1006a180
movsx edx, word [esi + 0x22]
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x14]
add esp, 4
push 0xfffffffffffffff6
push edi
push 1
add edx, 2
push 0xc
call fcn.10024690
add esp, 0x10
cmp dword [ebp + 0x18], 0xa
mov edx, 2
je 0x10051e19
mov edx, dword [ebp + 0x18]
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
cmp byte [eax + 0x45], 0
jne 0x10051e32
mov eax, dword [ecx + 0x20]
mov ecx, dword [ecx + 4]
lea eax, [eax + eax*4]
mov byte [ecx + eax*4 - 0x11], dl
mov eax, dword [ebx + 0x1a0]
test eax, eax
jne 0x10051e3e
mov eax, ebx
mov byte [eax + 0x15], 1
jmp 0x10051f8b
mov eax, edi
sub eax, dword [esp + 0x58]
jmp 0x10051e73
mov edx, dword [ebp + 0x14]
mov edx, dword [edx + 4]
xor eax, eax
test edx, edx
jle 0x10051e7b
mov ecx, dword [ebp + 0x14]
mov ecx, dword [ecx]
add ecx, 4
cmp dword [ecx], edi
je 0x10051e6f
inc eax
add ecx, 8
cmp eax, edx
jl 0x10051e63
mov ecx, dword [esp + 0x34]
test eax, eax
js 0x10051d87
cmp dword [esp + 0x3c], 0
je 0x10051d87
mov edx, dword [ebp + 0x14]
test edx, edx
je 0x10051e96
cmp eax, dword [edx + 4]
jge 0x10051d87
cmp byte [esp + 0x17], 0
je 0x10051eb8
mov edx, dword [esp + 0x38]
push ecx
push eax
mov eax, dword [esp + 0x18]
push edx
push 0x2f
push eax
call fcn.100242d0
add esp, 0x14
jmp 0x10051da5
cmp dword [ebp + 0x10], 0
je 0x10051eef
mov edx, dword [esp + 0x7c]
cmp dword [esp + 0x5c], edx
je 0x10051da5
mov edx, dword [esp + 0x5c]
lea ebx, [eax + edx]
mov eax, dword [esp + 0x10]
mov edi, ecx
mov edx, 0x1f
call fcn.10024400
mov ebx, dword [ebp + 8]
mov edi, dword [esp + 0x2c]
jmp 0x10051da1
push ecx
mov ecx, dword [esp + 0x4c]
mov edx, dword [ecx + 4]
lea eax, [eax + eax*2]
mov eax, dword [edx + eax*8]
push eax
push ebx
call fcn.1003cbd0
add esp, 0xc
jmp 0x10051da5
cmp dword [esp + 0x54], 0
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebp + 0x18]
mov edi, dword [esp + 0x80]
push 0
lea edx, [esp + 0x54]
push edx
push eax
push ecx
mov ecx, dword [esp + 0x70]
setge dl
movzx eax, dl
mov edx, dword [esp + 0x5c]
push eax
mov eax, dword [esp + 0x80]
push 0
push edi
push ecx
push edx
push eax
push esi
push ebx
call fcn.100523a0
push 0
push 0
push edi
push 0
push esi
push ebx
call fcn.1004f5d0
movzx edx, byte [esp + 0x6f]
mov eax, dword [esp + 0xb4]
add esp, 0x48
xor ecx, ecx
cmp dword [esp + 0x50], ecx
sete cl
push ecx
mov ecx, dword [esp + 0x64]
push edx
mov edx, dword [esp + 0x54]
push 0
push eax
push edi
push ecx
push edx
push esi
push ebx
call fcn.100538e0
add esp, 0x24
mov eax, dword [esp + 0x40]
test byte [eax + 0x18], 0x80
je 0x10051fe9
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x20]
mov edx, dword [ecx + 0x18]
cmp dword [edx + 0x58], eax
jg 0x10051fbb
mov eax, dword [esp + 0x64]
push 0
push 1
push eax
push 0x25
mov esi, ecx
call fcn.10024290
add esp, 0x10
jmp 0x10051fe9
lea edx, [eax + 1]
mov dword [ecx + 0x20], edx
mov ecx, dword [ecx + 4]
mov edx, dword [esp + 0x64]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
xor ecx, ecx
mov byte [eax + 3], 0
mov dword [eax + 4], edx
mov dword [eax + 8], 1
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov word [eax], 0x25
mov ecx, dword [esp + 0x74]
test ecx, ecx
je 0x10052020
mov eax, dword [esp + 0x1c]
mov edx, dword [ebp + 0x18]
push eax
mov eax, dword [esp + 0x80]
push edx
mov edx, dword [esp + 0x20]
movsx esi, word [edx + 0x22]
sub eax, esi
sub eax, 2
push eax
push edx
push 2
push 0
push 0x6c
push ecx
push ebx
call fcn.10066050
add esp, 0x24
mov esi, dword [esp + 0x10]
mov ecx, dword [esi + 0x18]
mov eax, dword [ecx + 0x78]
test eax, eax
je 0x10052040
mov edx, dword [esp + 0x1c]
lea edx, [edx*4 + 4]
sub eax, edx
mov edx, dword [esi + 0x20]
mov dword [eax], edx
mov eax, dword [esi + 0x20]
dec eax
cmp byte [esp + 0x17], 0
mov dword [ecx + 0x60], eax
je 0x10052113
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x18]
mov edi, dword [esp + 0x38]
cmp dword [ecx + 0x58], eax
jg 0x10052075
mov edx, dword [esp + 0x68]
push 0
push edx
push edi
push 7
call fcn.10024290
add esp, 0x10
jmp 0x1005209f
lea ecx, [eax + 1]
mov dword [esi + 0x20], ecx
mov ecx, dword [esp + 0x68]
lea edx, [eax + eax*4]
mov eax, dword [esi + 4]
lea eax, [eax + edx*4]
mov dword [eax + 8], ecx
xor ecx, ecx
mov byte [eax + 3], 0
mov dword [eax + 4], edi
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov word [eax], 7
mov edx, dword [esi + 0x20]
mov eax, dword [esi + 0x18]
dec edx
mov dword [eax + 0x60], edx
mov eax, dword [esp + 0x78]
mov ecx, dword [esi + 0x20]
test eax, eax
jns 0x100520b7
lea eax, [ecx - 1]
mov edx, dword [esi]
cmp byte [edx + 0x45], 0
je 0x100520c6
mov eax, 0x100d87f0
jmp 0x100520cf
mov edx, dword [esi + 4]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
mov dword [eax + 8], ecx
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x18]
cmp dword [ecx + 0x58], eax
jg 0x100520ee
push 0
push 0
push edi
push 0x3d
call fcn.10024290
add esp, 0x10
jmp 0x1005215b
mov ecx, dword [esi + 4]
lea edx, [eax + 1]
mov dword [esi + 0x20], edx
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
xor ecx, ecx
mov byte [eax + 3], 0
mov dword [eax + 4], edi
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov word [eax], 0x3d
jmp 0x10052158
cmp dword [ebp + 0x10], 0
je 0x1005215b
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x68]
mov eax, esi
call fcn.10024460
mov edx, dword [esi + 0x20]
mov eax, dword [esi + 0x18]
dec edx
mov dword [eax + 0x60], edx
mov eax, dword [esp + 0x78]
mov ecx, dword [esi + 0x20]
test eax, eax
jns 0x10052140
lea eax, [ecx - 1]
mov edx, dword [esi]
cmp byte [edx + 0x45], 0
je 0x1005214f
mov eax, 0x100d87f0
jmp 0x10052158
mov edx, dword [esi + 4]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
mov dword [eax + 8], ecx
mov eax, dword [esp + 0x18]
test byte [eax + 0x2a], 0x10
jne 0x100521fe
cmp dword [esp + 0x70], 0
jne 0x100521fe
mov ecx, dword [esp + 0x60]
cmp dword [esp + 0x4c], ecx
jge 0x10052193
mov edi, dword [esp + 0x4c]
mov eax, dword [esp + 0x10]
mov ebx, 0x3d
call fcn.100243a0
mov ebx, dword [ebp + 8]
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 8]
mov dword [esp + 0x34], eax
test eax, eax
je 0x100521fe
mov edi, dword [esp + 0x60]
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x18]
cmp dword [ecx + 0x58], eax
jg 0x100521c8
push 0
push 0
push edi
push 0x3d
call fcn.10024290
add esp, 0x10
xor ecx, ecx
jmp 0x100521ee
mov ecx, dword [esi + 4]
lea edx, [eax + 1]
mov dword [esi + 0x20], edx
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
xor ecx, ecx
mov byte [eax + 3], 0
mov dword [eax + 4], edi
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov word [eax], 0x3d
mov edx, dword [esp + 0x34]
mov eax, dword [edx + 0x14]
inc edi
mov dword [esp + 0x34], eax
cmp eax, ecx
jne 0x100521aa
cmp byte [ebx + 0x12], 0
jne 0x1005221f
cmp dword [ebx + 0x1a4], 0
jne 0x1005221f
cmp dword [ebx + 0x19c], 0
je 0x1005221f
push ebx
call fcn.10050f80
add esp, 4
mov eax, dword [esp + 0x40]
test byte [eax + 0x18], 0x80
je 0x100522c6
cmp byte [ebx + 0x12], 0
jne 0x100522c6
xor edx, edx
cmp dword [ebx + 0x1a4], edx
jne 0x100522c6
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x20]
mov esi, dword [ecx + 0x18]
cmp dword [esi + 0x58], eax
jg 0x1005226c
mov ecx, dword [esp + 0x64]
mov esi, dword [esp + 0x10]
push edx
push 1
push ecx
push 0x21
call fcn.10024290
add esp, 0x10
jmp 0x10052297
lea esi, [eax + 1]
mov dword [ecx + 0x20], esi
mov ecx, dword [ecx + 4]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x64]
mov byte [eax + 3], dl
mov dword [eax + 4], ecx
mov dword [eax + 8], 1
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
mov word [eax], 0x21
mov ebx, dword [esp + 0x10]
push 1
call fcn.100261b0
mov edx, ebx
mov eax, dword [edx]
add esp, 4
cmp byte [eax + 0x45], 0
jne 0x100522c6
mov edx, dword [edx + 0x10]
push 1
push str.rows_inserted
xor eax, eax
or ecx, 0xffffffff
call fcn.100236f0
add esp, 8
mov ecx, dword [ebp + 0xc]
mov esi, dword [esp + 0x40]
push ecx
mov eax, esi
call fcn.10047860
mov edx, dword [esp + 0x4c]
add esp, 4
push edx
push esi
call fcn.10039850
mov eax, dword [ebp + 0x10]
push 1
push eax
push esi
call fcn.100598f0
mov edi, dword [ebp + 0x14]
add esp, 0x14
call fcn.100474a0
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x10052351
test esi, esi
je 0x10052348
cmp dword [esi + 0x1c8], 0
je 0x1005231d
mov ecx, esi
call fcn.100040f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, dword [esi + 0x120]
jb 0x10052348
cmp eax, dword [esi + 0x124]
jae 0x10052348
mov ecx, dword [esi + 0x11c]
mov dword [eax], ecx
dec dword [esi + 0x108]
mov dword [esi + 0x11c], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
call sym.SQLite3Encrypt.dll_sqlite3_free
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret