Function at 0x48d3d0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x41c
mov eax, dword [0x65ada4]
xor eax, esp
mov dword [esp + 0x418], eax
push ebx
push esi
push edi
push 0x2a9
lea eax, [esp + 0x24]
push 0
push eax
mov edi, ecx
call sub.MSVCR90.dll_memset
mov esi, dword [sym.imp.MSVCR90.dll_sprintf]
lea ecx, [esp + 0x2dc]
push str.SELECT_tname_ttype__t_SELECT_bcont_FROM_____sysblob__WHERE_rsnosegno____FROM____systable__WHERE_ttype_NOT_IN__v_V_q_
push ecx
call esi
lea edx, [esp + 0x38c]
push str.SELECT_DISTINCT_iname_wlistsegno_charmapsegno__tsegno_FROM____sysindex_
push edx
call esi
mov ecx, dword [edi + 0x5c]
add esp, 0x1c
cmp ecx, 0xffffffff
je 0x48d485
lea eax, [esp + 0x2d0]
lea ebx, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x48d440
push ecx
sub eax, ebx
lea eax, [esp + eax + 0x2d4]
push str.AND_cluster___ld
push eax
call esi
lea eax, [esp + 0x384]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x48d466
mov ecx, dword [edi + 0x5c]
push ecx
sub eax, edx
lea edx, [esp + eax + 0x37c]
push str.WHERE_tsegno_IN__SELECT_segno_FROM____systable__WHERE_cluster___ld_
push edx
call esi
add esp, 0xc
push 0
push 0
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
push fcn.00472210
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x2e8]
push eax
mov dword [edi + 0x1a], 0x3c
call fcn.0050dfb0
mov esi, eax
add esp, 0x1c
test esi, esi
jne 0x48d73d
mov eax, dword [esp + 0xc]
test eax, eax
je 0x48d59c
movzx esi, word [eax + 2]
cmp si, word [eax + 4]
jne 0x48d4d8
xor ecx, ecx
jmp 0x48d4dd
movsx ecx, si
add ecx, eax
mov cl, byte [ecx]
xor edx, edx
cmp cl, 0x53
sete dl
dec edx
mov dword [esp + 0x18], edx
xor edx, edx
cmp cl, 0x53
movzx ecx, word [eax]
setne dl
lea edx, [edx + edx + 1]
mov dword [esp + 0x14], edx
cmp cx, si
jne 0x48d508
xor ecx, ecx
jmp 0x48d50d
movsx ecx, cx
add ecx, eax
lea eax, [esp + 0x14]
push eax
push ecx
mov ebx, edi
call fcn.0048b3a0
mov esi, eax
add esp, 8
test esi, esi
jne 0x48d73d
mov eax, dword [esp + 0xc]
movzx ecx, word [eax + 4]
cmp cx, word [eax + 6]
je 0x48d572
movsx ecx, cx
add ecx, eax
je 0x48d572
movzx ecx, word [eax]
mov dword [esp + 0x14], 4
mov dword [esp + 0x18], esi
cmp cx, word [eax + 2]
jne 0x48d555
xor ecx, ecx
jmp 0x48d55a
movsx ecx, cx
add ecx, eax
lea edx, [esp + 0x14]
push edx
push ecx
call fcn.0048b3a0
mov esi, eax
add esp, 8
test esi, esi
jne 0x48d73d
mov ecx, dword [esp + 0x10]
push 0
lea eax, [esp + 0x10]
push eax
push ecx
call fcn.00490540
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x48d73d
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x48d4ca
mov edx, dword [esp + 0x10]
push edx
call fcn.0050dec0
mov esi, eax
add esp, 4
test esi, esi
jne 0x48d73d
push eax
push eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
push fcn.00472210
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x390]
push eax
mov dword [edi + 0x1a], 0x3d
call fcn.0050dfb0
mov esi, eax
add esp, 0x1c
test esi, esi
jne 0x48d73d
mov eax, dword [esp + 0xc]
test eax, eax
je 0x48d719
movzx ecx, word [eax + 2]
cmp cx, word [eax + 4]
jne 0x48d604
xor ecx, ecx
jmp 0x48d609
movsx ecx, cx
add ecx, eax
test ecx, ecx
movzx ecx, word [eax + 6]
setne bl
cmp cx, word [eax + 8]
jne 0x48d61c
xor ecx, ecx
jmp 0x48d621
movsx ecx, cx
add ecx, eax
mov ecx, dword [ecx]
test bl, bl
setne dl
push ecx
mov byte [edi + 0x17fb7], dl
call fcn.0047dc20
movsx eax, al
add esp, 4
neg eax
sbb eax, eax
neg eax
dec eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xc]
movzx ecx, word [eax]
cmp cx, word [eax + 2]
jne 0x48d656
xor ecx, ecx
jmp 0x48d65b
movsx ecx, cx
add ecx, eax
lea edx, [esp + 0x14]
push edx
call fcn.0048b700
mov esi, eax
add esp, 4
test esi, esi
jne 0x48d73d
test bl, bl
je 0x48d6aa
mov eax, dword [esp + 0xc]
mov byte [edi + 0x17fb7], 2
movzx ecx, word [eax]
cmp cx, word [eax + 2]
jne 0x48d68e
xor ecx, ecx
jmp 0x48d693
movsx ecx, cx
add ecx, eax
lea eax, [esp + 0x14]
push eax
call fcn.0048b700
mov esi, eax
add esp, 4
test esi, esi
jne 0x48d73d
mov eax, dword [esp + 0xc]
movzx ecx, word [eax + 4]
cmp cx, word [eax + 6]
je 0x48d6f3
movsx ecx, cx
add ecx, eax
je 0x48d6f3
mov byte [edi + 0x17fb7], 4
movzx ecx, word [eax]
mov dword [esp + 0x18], 0
cmp cx, word [eax + 2]
jne 0x48d6db
xor ecx, ecx
jmp 0x48d6e0
movsx ecx, cx
add ecx, eax
lea edx, [esp + 0x14]
push edx
call fcn.0048b700
mov esi, eax
add esp, 4
test esi, esi
jne 0x48d73d
mov ecx, dword [esp + 0x10]
push 0
lea eax, [esp + 0x10]
push eax
push ecx
call fcn.00490540
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x48d73d
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x48d5f6
mov edx, dword [esp + 0x10]
push edx
call fcn.0050dec0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x418]
xor ecx, esp
call fcn.00586584
mov esp, ebp
pop ebp
ret
push 0xbb9
push 0
call fcn.00406f10
mov ecx, dword [esp + 0x42c]
add esp, 8
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.00586584
mov esp, ebp
pop ebp
ret