Function at 0x6523cac0
Capabilities:
Reference sql statements
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x8e8
mov edx, dword [esp + 0x8ec]
push ebx
push ebp
push esi
xor ebp, ebp
push ebp
mov ebx, eax
push ebp
lea eax, [esp + 0xd4]
push eax
lea ecx, [esp + 0x24]
push ecx
push edx
mov dword [esp + 0x30], ebp
call fcn.6527cc77
mov eax, dword [ebx + 0x1e8]
push str.SELECT_CURRENT_PUBLISHER_FROM_DUMMY
push 0x12
push eax
call fcn.65261aa0
mov ecx, dword [ebx + 0x1e8]
push 0x12
push ecx
call fcn.65262260
add esp, 0x28
test eax, eax
mov esi, 1
je 0x6523cb39
mov edx, dword [ebx + 0x1e8]
push ebp
push 0x12
push edx
call fcn.65261720
add esp, 0xc
test eax, eax
jne 0x6523cb39
cmp dword [ebx + 0x70], ebp
je 0x6523cb39
mov dword [esp + 0x1c], esi
mov eax, dword [ebx + 0x1e8]
push 0x12
push eax
call fcn.65261d80
push str.SYSSYNC
push 0x65291a20
push ebx
call fcn.6523aef0
add esp, 0x14
test eax, eax
je 0x6523cba8
lea ecx, [ebx + 0x278]
push str.SELECT_SYNC_ID_FROM_SYS.SYSSYNC_WHERE_PUBLICATION_ID_IS_NOT_NULL
push ecx
call fcn.65237150
mov edx, dword [ebx + 0x1e8]
push eax
push 0x12
push edx
call fcn.65261aa0
mov eax, dword [ebx + 0x1e8]
push 0x12
push eax
call fcn.65262260
add esp, 0x1c
test eax, eax
je 0x6523cb97
mov dword [esp + 0x1c], esi
mov ecx, dword [ebx + 0x1e8]
push 0x12
push ecx
call fcn.65261d80
add esp, 8
cmp dword [ebx + 0x54], ebp
push edi
je 0x6523cc3a
lea edx, [ebx + 0x278]
push str.SELECT_db_property_LTMTrunc_
push edx
call fcn.65237150
push eax
mov eax, dword [ebx + 0x1e8]
push 0x12
push eax
call fcn.65261aa0
mov ecx, dword [ebx + 0x1e8]
push 0x12
push ecx
call fcn.65262260
add esp, 0x1c
test eax, eax
je 0x6523cc29
mov edx, dword [ebx + 0x1e8]
push ebp
push 0x12
push edx
call fcn.65261720
add esp, 0xc
test eax, eax
jne 0x6523cc29
mov eax, dword [ebx + 0x1e8]
push ebp
push 0x12
push eax
mov edi, str.18446744073709551615
call fcn.652617d0
add esp, 0xc
mov esi, eax
mov ecx, 0x15
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x6523cc29
mov dword [esp + 0x20], 1
mov eax, dword [ebx + 0x1e8]
push 0x12
push eax
call fcn.65261d80
add esp, 8
push str.SYSFILE
push 0x65291a20
push ebx
call fcn.6523aef0
add esp, 0xc
test eax, eax
je 0x6523ceba
mov ecx, dword [ebx + 0x1ec]
push str.SELECT_file_name__dbspace_name_FROM_SYSFILE_WHERE_SYSFILE.file_id___0_ORDER_BY_SYSFILE.file_id
push 0xe
push ecx
call fcn.65261aa0
mov edx, dword [ebx + 0x1ec]
push 0xe
push edx
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x48], ebp
mov dword [esp + 0x50], ebp
mov dword [esp + 0x3c], ebp
call fcn.65262260
add esp, 0x14
test eax, eax
je 0x6523ce8d
mov eax, dword [ebx + 0x1ec]
push 0
push 0xe
push eax
call fcn.652617d0
mov ebp, eax
call fcn.6523c7c0
lea ecx, [esp + 0x40]
mov esi, eax
push str.ALTER_DBSPACE__
push ecx
mov dword [esp + 0x88], esi
mov dword [esp + 0x48], 0
call fcn.6526d1f0
mov edx, dword [ebx + 0x1ec]
push 1
push 0xe
push edx
call fcn.652617d0
push eax
lea eax, [esp + 0x58]
push eax
call fcn.6526d1f0
lea ecx, [esp + 0x5c]
push str.__RENAME_
push ecx
call fcn.6526d1f0
lea edx, [esp + 0x64]
push esi
push edx
call fcn.6526d1f0
mov eax, dword [esp + 0x6c]
dec eax
push eax
lea ecx, [esp + 0x70]
push ecx
call fcn.6526d090
add esp, 0x40
lea edx, [esp + 0x34]
push 0x65291e88
push edx
call fcn.6526d1f0
lea eax, [esp + 0x3c]
push eax
call fcn.6526d270
mov ecx, dword [esp + 0x48]
mov edx, dword [ebx + 0x1ec]
push ecx
push edx
call fcn.65262b60
movsx eax, word [esp + 0x3c]
lea eax, [esp + eax*4 + 0x98]
mov dword [esp + 0x54], eax
mov dword [eax], 0
lea eax, [esp + 0x504]
push eax
lea ecx, [esp + 0x710]
push ecx
lea edx, [esp + 0x814]
push edx
lea eax, [esp + 0x64]
push eax
push ebp
call fcn.6527cc77
add esp, 0x28
mov edi, 0x6528b61a
lea esi, [esp + 0x44]
mov ecx, 1
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x6523ce3a
mov edi, 0x6528b61a
lea esi, [esp + 0x7f8]
mov ecx, 1
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x6523ce3a
lea eax, [esp + 0x1c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x6523cdb0
sub eax, edx
mov ebp, eax
lea eax, [esp + 0xd0]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x6523cdc5
sub eax, edx
mov edi, eax
lea eax, [esp + 0x6f8]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x6523cde0
sub eax, edx
mov edx, eax
lea eax, [esp + 0x4f0]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x6523cdf5
sub eax, esi
add eax, edx
add eax, edi
lea ecx, [eax + ebp + 1]
push ecx
call fcn.652441c0
mov edx, dword [esp + 0x44]
mov dword [edx], eax
lea ecx, [esp + 0x4f4]
push ecx
lea edx, [esp + 0x700]
push edx
lea ecx, [esp + 0xdc]
push ecx
lea edx, [esp + 0x2c]
push edx
push eax
call fcn.6527caaa
add esp, 0x18
jmp 0x6523ce49
push ebp
call fcn.6526d310
mov ecx, dword [esp + 0x44]
add esp, 4
mov dword [ecx], eax
mov edx, dword [esp + 0x40]
mov esi, dword [edx]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x6523ce54
sub eax, edx
mov edx, dword [esp + 0x28]
mov byte [esi + eax - 1], cl
mov eax, dword [esp + 0x74]
inc edx
push eax
mov dword [esp + 0x2c], edx
call fcn.652440f0
mov ecx, dword [ebx + 0x1ec]
push 0xe
push ecx
call fcn.65262260
add esp, 0xc
test eax, eax
jne 0x6523cc91
mov edx, dword [ebx + 0x1ec]
push 0xe
push edx
call fcn.65261d80
mov eax, dword [esp + 0x44]
push eax
call fcn.652440f0
movsx ecx, word [esp + 0x34]
add esp, 0xc
mov dword [esp + ecx*4 + 0x84], 0
xor ebp, ebp
mov edx, dword [ebx + 0x1ec]
push str.Name
push ebp
push edx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x24], ebp
call fcn.652625a0
push str.Name
mov esi, eax
mov eax, dword [ebx + 0x1ec]
push 1
push eax
call fcn.652625a0
mov ecx, dword [ebx + 0x1ec]
push ecx
mov edi, eax
call fcn.652615f0
push eax
lea edx, [esp + 0x30]
push edx
call fcn.6526d1f0
lea eax, [esp + 0x34]
push str._UNCYES_ENG
push eax
call fcn.6526d1f0
lea ecx, [esp + 0x3c]
push esi
push ecx
call fcn.6526d1f0
lea edx, [esp + 0x44]
push str._DBN
push edx
call fcn.6526d1f0
lea eax, [esp + 0x4c]
push edi
push eax
call fcn.6526d1f0
mov ecx, dword [esp + 0x5c]
mov edx, dword [ebx + 0x1ec]
add esp, 0x44
push ecx
push edx
call fcn.65261620
add esp, 8
push esi
call sub.dblib8.dll_Ordinal_203
push edi
call sub.dblib8.dll_Ordinal_203
mov eax, dword [ebx + 0x1e8]
push str.Name
push ebp
push eax
mov dword [esp + 0x1c], ebp
call fcn.652625a0
mov ecx, dword [ebx + 0x1e8]
push str.Name
push 1
push ecx
mov esi, eax
call fcn.652625a0
add esp, 0x18
lea edx, [esp + 0x78]
mov edi, eax
mov eax, dword [ebx + 0x1e8]
push edx
push eax
call fcn.652615f0
add esp, 4
push eax
call fcn.6526da00
lea ecx, [esp + 0x80]
push ecx
call fcn.6526b350
push eax
lea edx, [esp + 0x20]
push edx
call fcn.6526d1f0
push str._UNCYES_ENG
lea eax, [esp + 0x28]
push eax
call fcn.6526d1f0
lea ecx, [esp + 0x2c]
push esi
push ecx
call fcn.6526d1f0
lea edx, [esp + 0x34]
push str._DBN
push edx
call fcn.6526d1f0
lea eax, [esp + 0x3c]
push edi
push eax
call fcn.6526d1f0
mov ecx, dword [esp + 0x4c]
mov edx, dword [ebx + 0x1e8]
push ecx
push edx
call fcn.65261620
add esp, 0x3c
push esi
call sub.dblib8.dll_Ordinal_203
push edi
call sub.dblib8.dll_Ordinal_203
mov eax, dword [ebx + 0x1e8]
push eax
call fcn.65261570
mov ecx, dword [ebx + 0x1ec]
push ecx
mov dword [ebx + 0x1e8], ebp
call fcn.65261570
mov esi, dword [esp + 0x904]
add esp, 8
mov dword [ebx + 0x1ec], ebp
mov edx, dword [ebx]
mov eax, dword [edx + 0x12]
push eax
push esi
call fcn.652734f0
add esp, 8
test eax, eax
je 0x6523d041
mov ecx, dword [esp + 0x900]
push esi
push ecx
call fcn.6527cc49
mov eax, dword [esp + 0x8c]
add esp, 8
xor esi, esi
cmp eax, ebp
je 0x6523d0a7
lea eax, [esp + 0x84]
lea esp, [esp]
mov edx, dword [ebx]
mov ecx, dword [edx + 0x12]
mov edx, dword [eax]
push ecx
push edx
call fcn.652734f0
add esp, 8
inc esi
movsx eax, si
mov ecx, dword [esp + eax*4 + 0x84]
cmp ecx, ebp
lea eax, [esp + eax*4 + 0x84]
jne 0x6523d080
mov eax, dword [esp + 0x84]
xor edi, edi
cmp eax, ebp
je 0x6523d120
xor ecx, ecx
lea eax, [esp + 0x84]
lea ecx, [ecx]
mov esi, dword [eax]
lea edx, [esp + 0x1d8]
sub edx, dword [esp + ecx*4 + 0x84]
mov eax, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x6523d0d2
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x6523d0e1
sub eax, edx
mov byte [esp + eax + 0x1d8], 0x52
mov byte [esp + eax + 0x1d9], cl
lea eax, [esp + 0x1d8]
push esi
push eax
call fcn.6527cc49
add esp, 8
inc edi
movsx ecx, di
mov edx, dword [esp + ecx*4 + 0x84]
cmp edx, ebp
lea eax, [esp + ecx*4 + 0x84]
jne 0x6523d0c0
mov eax, dword [esp + 0x908]
cmp eax, ebp
je 0x6523d15f
mov ecx, dword [ebx]
mov edx, dword [ecx + 0x12]
push edx
push eax
call fcn.652734f0
mov esi, dword [esp + 0x90c]
push ebp
lea eax, [esp + 0x3f4]
push eax
lea ecx, [esp + 0x2f0]
push ecx
lea edx, [esp + 0x38]
push edx
push esi
call fcn.6527cc77
add esp, 0x1c
jmp 0x6523d166
mov esi, dword [esp + 0x904]
mov eax, dword [esp + 0x910]
cmp eax, ebp
je 0x6523d193
mov ecx, dword [ebx]
mov edx, dword [ecx + 0x12]
push edx
push eax
call fcn.652734f0
mov eax, dword [ebx]
mov ecx, dword [eax + 0x12]
mov edx, dword [esp + 0x914]
push ecx
push edx
call fcn.652734f0
add esp, 0x10
cmp dword [esp + 0x20], ebp
je 0x6523d23d
lea eax, [esp + 0xb8]
push eax
push esi
call fcn.6523c9f0
push 4
lea ecx, [esp + 0x38]
push str..olf
push ecx
call fcn.6527b7d0
mov ebp, dword [esp + 0x918]
add esp, 0x14
mov byte [esp + 0x30], 0
jmp 0x6523d1d0
mov al, byte [esp + 0x2f]
mov edx, dword [ebx]
inc al
mov byte [esp + 0x2f], al
mov dword [esp + 0x10], 0
mov eax, dword [edx + 0x33]
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.6526d1f0
lea edx, [esp + 0x18]
push 0x6528b6f4
push edx
call fcn.6526d1f0
lea eax, [esp + 0x3f8]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.6526d1f0
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x2c]
push eax
call fcn.6526d1f0
mov ecx, dword [esp + 0x38]
push ecx
push ebp
call fcn.6527cc49
add esp, 0x28
test eax, eax
je 0x6523d257
cmp byte [esp + 0x2f], 0x7a
jne 0x6523d1d0
jmp 0x6523d257
cmp esi, ebp
je 0x6523d250
mov edx, dword [ebx]
mov eax, dword [edx + 0x12]
push eax
push esi
call fcn.652734f0
add esp, 8
mov ebp, dword [esp + 0x904]
mov ecx, dword [esp + 0x8fc]
mov dword [esp + 0x4a], ecx
mov cl, byte [esp + 0x5a]
or cl, 0x10
test ebp, ebp
mov word [esp + 0x48], 0x178e
mov byte [esp + 0x5a], cl
je 0x6523d31a
lea edi, [esp + 0x24]
lea esi, [esp + 0x1c]
mov dl, byte [esi]
mov al, dl
cmp dl, byte [edi]
jne 0x6523d2a8
test al, al
je 0x6523d2a4
mov dl, byte [esi + 1]
mov al, dl
cmp dl, byte [edi + 1]
jne 0x6523d2a8
add esi, 2
add edi, 2
test al, al
jne 0x6523d284
xor eax, eax
jmp 0x6523d2ad
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x6523d31a
lea edi, [esp + 0x2e0]
lea esi, [esp + 0xd0]
nop
mov dl, byte [esi]
mov al, dl
cmp dl, byte [edi]
jne 0x6523d2e4
test al, al
je 0x6523d2e0
mov dl, byte [esi + 1]
mov al, dl
cmp dl, byte [edi + 1]
jne 0x6523d2e4
add esi, 2
add edi, 2
test al, al
jne 0x6523d2c0
xor eax, eax
jmp 0x6523d2e9
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x6523d31a
lea edi, [esp + 0x3e8]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x6523d2f5
mov eax, dword [str..log]
mov dl, byte [0x65291e64]
mov dword [edi], eax
lea eax, [esp + 0x3e8]
mov byte [edi + 4], dl
mov dword [esp + 0x4e], eax
jmp 0x6523d31e
mov dword [esp + 0x4e], ebp
mov eax, dword [ebx]
mov edx, dword [eax + 0x12]
mov ebp, dword [esp + 0x90c]
and cl, 0xfe
mov dword [esp + 0x52], edx
mov eax, dword [eax + 0x16]
or cl, 2
test ebp, ebp
mov dword [esp + 0x56], eax
mov byte [esp + 0x5a], cl
je 0x6523d417
push 0
lea ecx, [esp + 0x5f4]
push ecx
lea edx, [esp + 0x2e8]
push edx
lea eax, [esp + 0x30]
push eax
push ebp
call fcn.6527cc77
mov cl, byte [esp + 0x6e]
add esp, 0x14
or cl, 4
lea edi, [esp + 0x24]
lea esi, [esp + 0x1c]
mov dl, byte [esi]
mov al, dl
cmp dl, byte [edi]
jne 0x6523d39a
test al, al
je 0x6523d396
mov dl, byte [esi + 1]
mov al, dl
cmp dl, byte [edi + 1]
jne 0x6523d39a
add esi, 2
add edi, 2
test al, al
jne 0x6523d376
xor eax, eax
jmp 0x6523d39f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x6523d40e
lea edi, [esp + 0x2e0]
lea esi, [esp + 0xd0]
mov dl, byte [esi]
mov al, dl
cmp dl, byte [edi]
jne 0x6523d3d5
test al, al
je 0x6523d3d1
mov dl, byte [esi + 1]
mov al, dl
cmp dl, byte [edi + 1]
jne 0x6523d3d5
add esi, 2
add edi, 2
test al, al
jne 0x6523d3b1
xor eax, eax
jmp 0x6523d3da
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x6523d40e
lea edi, [esp + 0x5f0]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x6523d3e6
mov eax, dword [0x65291e58]
mov dl, byte [0x65291e5c]
mov dword [edi], eax
lea eax, [esp + 0x5f0]
mov byte [edi + 4], dl
mov dword [esp + 0x5c], eax
or cl, 8
jmp 0x6523d425
mov dword [esp + 0x5c], ebp
or cl, 8
jmp 0x6523d425
and cl, 0xfb
mov dword [esp + 0x5c], 0
and cl, 0xf7
mov al, byte [esp + 0x5b]
and cl, 0x9f
and al, 0xfe
and cl, 0x7f
mov byte [esp + 0x5b], al
mov byte [esp + 0x5a], cl
mov ecx, dword [esp + 0x20]
xor eax, eax
cmp ecx, eax
mov word [esp + 0x60], ax
pop edi
je 0x6523d45e
lea ecx, [esp + 0xb4]
mov dword [esp + 0x62], 0x6528b58c
mov dword [esp + 0x66], ecx
jmp 0x6523d466
mov dword [esp + 0x62], eax
mov dword [esp + 0x66], eax
lea edx, [esp + 0x44]
push edx
call sym.dbtool8.dll__DBChangeLogName
test ax, ax
je 0x6523d47e
mov word [ebx + 0x124], 1
mov eax, dword [esp + 0x14]
push eax
call fcn.652440f0
add esp, 4
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x8e8
ret