Function at 0x408640
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0x7a4
mov ecx, dword [0x447918]
push esi
mov esi, dword [esp + 0x7ac]
push 0
push 2
push 0
push 0
push str.SELECT_collation_order__case_sensitivity_n_FROM_SYS.SYSCOLLATION__SYS.SYSINFO_n_WHERE_collation_label__default_collation
lea eax, [esp + 0x18]
push eax
push ecx
push 0
push esi
mov dword [esp + 0x28], 0
call sub.dblib8.dll_Ordinal_260
push str.SQLDA___h
push 0
lea edx, [esp + 0x2ac]
lea ecx, [esp + 0xc]
push ecx
mov dword [0x4479ac], edx
mov edx, dword [0x447918]
push edx
push 0
lea eax, [esp + 0x1c]
push esi
mov dword [0x4479d8], eax
call sub.dblib8.dll_Ordinal_267
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4086b9
xor eax, eax
pop esi
add esp, 0x7a4
ret
push edi
push 0x52c
call fcn.00405fe0
add esp, 4
test eax, eax
je 0x4086dc
mov ecx, eax
call fcn.00435060
mov edi, eax
test edi, edi
mov dword [esp + 0x10], edi
jne 0x4086e7
pop edi
xor eax, eax
pop esi
add esp, 0x7a4
ret
mov cl, byte [esp + 0xc]
xor eax, eax
cmp cl, 0x59
sete al
lea ecx, [esp + 0x2aa]
push eax
push ecx
mov ecx, edi
call fcn.00435570
mov eax, dword [0x447918]
push 0
push 2
push 0
push 0
push str.SELECT_COUNT___n_FROM_SYS.SYSCATALOG_n_WHERE_tname__SYSCOLLATIONMAPPINGS
lea edx, [esp + 0x1c]
push edx
push eax
push 0
push esi
mov dword [esp + 0x2c], 0
call sub.dblib8.dll_Ordinal_260
mov eax, dword [0x447918]
push str.SQLDA____
push 0
lea edx, [esp + 0x10]
push edx
push eax
push 0
lea ecx, [esp + 0x20]
push esi
mov dword [0x447a60], ecx
call sub.dblib8.dll_Ordinal_267
mov eax, dword [esp + 0xc]
test eax, eax
jle 0x408895
mov edx, dword [0x447918]
push 0
push 2
push 0
push 0
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 ecx, [esp + 0x1c]
push ecx
push edx
push 0
push esi
mov dword [esp + 0x2c], 0
call sub.dblib8.dll_Ordinal_260
push str.SQLDA
lea eax, [esp + 0x1a4]
mov dword [0x447b44], eax
lea edx, [esp + 0x228]
push 0
mov dword [0x447b9c], edx
lea eax, [esp + 0x1c]
lea edx, [esp + 0x10]
push edx
mov dword [0x447bc8], eax
mov eax, dword [0x447918]
push eax
lea ecx, [esp + 0xa8]
mov dword [0x447b70], ecx
push 0
lea ecx, [esp + 0x130]
push esi
mov dword [0x447bf4], ecx
call sub.dblib8.dll_Ordinal_267
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x408895
lea eax, [esp + 0x11c]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4087f0
sub eax, edx
mov dword [esp + 8], eax
lea eax, [esp + 0x14]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408804
sub eax, edx
push ebp
mov ebp, eax
lea eax, [esp + 0x228]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408820
sub eax, edx
mov edi, eax
lea eax, [esp + 0x9c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408835
sub eax, edx
mov edx, eax
lea eax, [esp + 0x1a4]
lea esi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408850
mov ecx, dword [esp + 0xc]
push ecx
lea ecx, [esp + 0x124]
push ecx
push ebp
lea ecx, [esp + 0x24]
push ecx
push edi
lea ecx, [esp + 0x23c]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
lea edx, [esp + 0xb8]
sub eax, esi
push edx
push eax
lea eax, [esp + 0x1c8]
push eax
call fcn.00435300
mov edi, dword [esp + 0x14]
pop ebp
mov eax, edi
pop edi
pop esi
add esp, 0x7a4
ret