Function at 0x4049e0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x91c
mov ecx, dword [str.loadtran]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor ebx, ebx
push ebx
mov edi, 2
push edi
push ebx
push ebx
push str.SELECT_collation_order__case_sensitivity_n_FROM_SYS.SYSCOLLATION__SYS.SYSINFO_n_WHERE_collation_label__default_collation
lea eax, [esp + 0x24]
push eax
push ecx
push ebx
push esi
mov dword [esp + 0x34], ebx
call sub.dblib9.dll_Ordinal_260
mov word [esp + 0x2c], di
mov word [esp + 0x2e], di
xor eax, eax
mov byte [esp + 0x20], 0x53
mov byte [esp + 0x21], 0x51
mov byte [esp + 0x22], 0x4c
mov byte [esp + 0x23], 0x44
mov byte [esp + 0x24], 0x41
mov byte [esp + 0x25], 0x20
mov byte [esp + 0x26], 0x20
mov byte [esp + 0x27], 0x20
mov dword [esp + 0x28], 0x68
mov ecx, 0x16
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x424]
push ebx
mov dword [esp + 0x3c], edx
lea eax, [esp + 0x1c]
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x6c], eax
mov eax, dword [str.loadtran]
push eax
push ebx
push esi
mov word [esp + 0x48], 0x20c
mov word [esp + 0x4a], 0x502
mov dword [esp + 0x50], ebx
mov word [esp + 0x74], 0x1cc
mov word [esp + 0x76], 2
mov dword [esp + 0x7c], ebx
call sub.dblib9.dll_Ordinal_267
cmp dword [esi + 0xc], ebx
jne 0x404ad4
push 0x52c
call fcn.004081c0
add esp, 4
cmp eax, ebx
je 0x404ad4
mov ecx, eax
call fcn.00408f90
cmp eax, ebx
mov dword [esp + 0x18], eax
jne 0x404add
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dl, byte [esp + 0x14]
xor ecx, ecx
cmp dl, 0x59
sete cl
lea edx, [esp + 0x422]
push ecx
push edx
mov ecx, eax
call fcn.00409100
mov ecx, dword [str.loadtran]
push ebx
push 2
push ebx
push ebx
push str.SELECT_COUNT___n_FROM_SYS.SYSCATALOG_n_WHERE_tname__SYSCOLLATIONMAPPINGS
lea eax, [esp + 0x24]
push eax
push ecx
push ebx
push esi
mov dword [esp + 0x34], ebx
call sub.dblib9.dll_Ordinal_260
mov eax, 1
mov word [esp + 0x2c], ax
mov word [esp + 0x2e], ax
xor eax, eax
mov byte [esp + 0x20], 0x53
mov byte [esp + 0x21], 0x51
mov byte [esp + 0x22], 0x4c
mov byte [esp + 0x23], 0x44
mov byte [esp + 0x24], 0x41
mov byte [esp + 0x25], 0x20
mov byte [esp + 0x26], 0x20
mov byte [esp + 0x27], 0x20
mov dword [esp + 0x28], 0x3c
mov ecx, 0xb
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x20]
push eax
push ebx
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x40], edx
mov edx, dword [str.loadtran]
push edx
push ebx
push esi
mov word [esp + 0x48], 0x1f0
mov word [esp + 0x4a], 4
mov dword [esp + 0x50], ebx
call sub.dblib9.dll_Ordinal_267
cmp dword [esp + 0x14], ebx
jle 0x404dcc
mov ecx, dword [str.loadtran]
push ebx
push 2
push ebx
push ebx
push str.SELECT_collation_label__cs_label__so_case_label__so_caseless_label__jdk_label_n_FROM_SYS.SYSINFO__SYS.SYSCOLLATIONMAPPINGS_n_WHERE_collation_label__default_collation
lea eax, [esp + 0x24]
push eax
push ecx
push ebx
push esi
mov dword [esp + 0x34], ebx
call sub.dblib9.dll_Ordinal_260
mov eax, 5
mov word [esp + 0x94], ax
mov word [esp + 0x96], ax
xor eax, eax
mov byte [esp + 0x88], 0x53
mov byte [esp + 0x89], 0x51
mov byte [esp + 0x8a], 0x4c
mov byte [esp + 0x8b], 0x44
mov byte [esp + 0x8c], 0x41
mov byte [esp + 0x8d], 0x20
mov byte [esp + 0x8e], 0x20
mov byte [esp + 0x8f], 0x20
mov dword [esp + 0x90], 0xec
mov ecx, 0x37
lea edi, [esp + 0x98]
rep stosd dword es:[edi], eax
lea edx, [esp + 0x200]
mov dword [esp + 0x9c], edx
mov ecx, 0x1cc
lea edx, [esp + 0x398]
mov dword [esp + 0xc8], edx
mov eax, 0x81
lea edx, [esp + 0x288]
mov word [esp + 0x98], cx
mov word [esp + 0xc4], cx
mov word [esp + 0xf0], cx
mov dword [esp + 0xf4], edx
mov word [esp + 0x11c], cx
mov word [esp + 0x148], cx
lea ecx, [esp + 0x88]
push ecx
mov word [esp + 0x9e], ax
mov word [esp + 0xca], ax
mov word [esp + 0xf6], ax
mov word [esp + 0x122], ax
lea edx, [esp + 0x314]
mov word [esp + 0x14e], ax
push ebx
mov dword [esp + 0x128], edx
lea eax, [esp + 0x180]
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x158], eax
mov eax, dword [str.loadtran]
push eax
push ebx
push esi
mov dword [esp + 0xb8], ebx
mov dword [esp + 0xe4], ebx
mov dword [esp + 0x110], ebx
mov dword [esp + 0x13c], ebx
mov dword [esp + 0x168], ebx
call sub.dblib9.dll_Ordinal_267
cmp dword [esi + 0xc], ebx
jne 0x404dcc
lea eax, [esp + 0x178]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x404d25
sub eax, edx
mov dword [esp + 0x10], eax
lea eax, [esp + 0x310]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x404d40
sub eax, edx
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x288]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x404d57
sub eax, edx
mov edi, eax
lea eax, [esp + 0x398]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x404d70
sub eax, edx
mov edx, eax
lea eax, [esp + 0x200]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x404d85
mov ecx, dword [esp + 0x10]
push ecx
lea ecx, [esp + 0x17c]
push ecx
mov ecx, dword [esp + 0x24]
push ecx
lea ecx, [esp + 0x31c]
push ecx
push edi
lea ecx, [esp + 0x29c]
push ecx
mov ecx, dword [esp + 0x30]
push edx
lea edx, [esp + 0x3b4]
sub eax, esi
push edx
push eax
lea eax, [esp + 0x224]
push eax
call fcn.00408e20
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret