Function at 0x4634c0
Capabilities:
Reference sql statements

Disassembly:
mov eax, 0x11bc
call fcn.005865a0
mov eax, dword [0x65ada4]
xor eax, esp
mov dword [esp + 0x11b8], eax
mov eax, dword [esp + 0x11c0]
push ebx
xor ebx, ebx
push ebp
push esi
push edi
mov esi, edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], ebx
mov byte [esp + 0x13], bl
mov dword [esp + 0x14], ebx
cmp dword [0x6a1090], ebx
jne 0x46351f
mov edi, 0x414b
push 0x2f50
push edi
call fcn.00406f10
add esp, 8
jmp 0x463816
lea edx, [esp + 0x24]
push edx
push 1
call fcn.0047da00
mov edi, eax
add esp, 8
cmp edi, ebx
jne 0x4637dd
mov byte [esp + 0x13], 1
cmp dword [esp + 0x18], ebx
je 0x46354e
lea ecx, [esp + 0x18]
mov eax, str.SELECT_sblob__rname__rtype_FROM____sysexternal__WHERE_rkey_
jmp 0x463557
lea ecx, [esp + 0x20]
mov eax, str.SELECT_sblob__rname__rtype_FROM____sysexternal__WHERE_rname_
push ecx
push 1
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x28]
push edx
push fcn.00472210
push ebx
push eax
call fcn.0050dfb0
mov edi, eax
add esp, 0x1c
cmp edi, ebx
je 0x463582
mov dword [esp + 0x1c], ebx
jmp 0x4637dd
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x4638ca
movzx ecx, word [eax]
cmp cx, word [eax + 2]
je 0x4638ca
movsx edi, cx
add edi, eax
je 0x4638ca
movzx ecx, word [eax + 4]
cmp cx, word [eax + 6]
je 0x4638ca
movsx ecx, cx
add ecx, eax
je 0x4638ca
lea edx, [esp + 0x14]
push edx
lea ebx, [esp + 0x30]
call fcn.004633f0
mov edi, eax
add esp, 4
test edi, edi
jne 0x4637dd
mov ecx, dword [esp + 0x28]
movzx eax, word [ecx + 2]
cmp ax, word [ecx + 4]
jne 0x4635ec
xor eax, eax
jmp 0x4635ef
cwde
add eax, ecx
push eax
lea eax, [esp + 0x48]
push 0x5a85d0
push eax
call dword [sym.imp.MSVCR90.dll_sprintf]
mov ecx, dword [esp + 0x34]
lea edx, [esp + eax + 0x50]
movzx eax, word [ecx + 4]
add esp, 0xc
mov dword [esp + 0x34], edx
cmp ax, word [ecx + 6]
jne 0x46361d
xor eax, eax
jmp 0x463620
cwde
add eax, ecx
mov cl, byte [eax]
push edx
neg cl
movzx edx, cl
push edx
call fcn.00461570
mov eax, dword [esp + 0x24]
push eax
call fcn.0050dec0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x4637dd
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
push ecx
push edx
mov dword [esp + 0x24], eax
call fcn.004629d0
mov edi, eax
add esp, 8
test edi, edi
jne 0x4637dd
mov eax, dword [esi]
mov edx, dword [eax + 0x29c]
lea ecx, [esp + 0x44]
push ecx
push esi
call edx
mov ecx, dword [esp + 0x14]
mov ebp, eax
mov eax, dword [esp + 0x2c]
push eax
push ecx
mov dword [esp + 0x38], ebp
call fcn.00460a30
mov ecx, dword [0x6d40c8]
mov edx, dword [esi]
mov edi, eax
movzx eax, byte [0x6a11b1]
push eax
mov eax, dword [0x6a1090]
push edi
push ebp
push ecx
mov ecx, dword [edx + 0x1c8]
push eax
push esi
mov dword [esp + 0x4c], edi
call ecx
mov ebx, eax
add esp, 0x20
test ebx, ebx
je 0x46385c
mov edx, dword [esi]
mov eax, dword [edx + 0x5c]
push edi
push esi
mov dword [esp + 0x1c], 0
call eax
mov ecx, dword [esi]
mov edx, dword [ecx + 0x5c]
push ebp
push esi
call edx
mov eax, dword [esi]
mov ecx, dword [eax + 0x2ac]
push ebx
push esi
call ecx
mov edi, eax
test edi, edi
je 0x46389f
mov edx, dword [esi]
mov eax, dword [edx + 0x378]
push 0
push ebx
push esi
call eax
mov ebp, eax
test ebp, ebp
je 0x46384f
push edi
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
jne 0x46372f
lea edi, [eax + 6]
push 0x2f50
push edi
call fcn.00406f10
add esp, 8
jmp 0x4637f3
push edi
push ebp
push eax
call sub.MSVCR90.dll_memcpy
mov ecx, dword [esi]
mov edx, dword [ecx + 0x37c]
add esp, 0xc
push 2
push ebp
push ebx
push esi
call edx
mov ebp, dword [esp + 0x14]
push 1
lea eax, [esp + 0xcc]
push eax
lea ecx, [esp + 0x40]
push ecx
push 0
push str.RBLOB00
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], ebp
call fcn.00415780
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x4637dd
mov edx, dword [esp + 0x34]
mov byte [edx], al
cmp dword [esp + 0x18], eax
je 0x463798
lea ecx, [esp + 0x18]
mov eax, str.UPDATE____sysexternal__SET_rblobBLOB_RBLOB00_WHERE_rkey_
jmp 0x4637a1
lea ecx, [esp + 0x20]
mov eax, str.UPDATE____sysexternal__SET_rblobBLOB_RBLOB00_WHERE_rname_
push ecx
push 1
push 0
push fcn.00472210
push 0
push eax
call fcn.0050df80
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x4637dd
push ebp
call dword [sym.imp.MSVCR90.dll_free]
lea eax, [esp + 0x28]
push eax
push 2
mov byte [esp + 0x1f], 0
call fcn.0047dad0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x463842
push 0x2f50
xor ebx, ebx
push ebx
call fcn.00406f10
add esp, 8
cmp byte [esp + 0x13], bl
je 0x463804
lea eax, [esp + 0x24]
push eax
push 2
call fcn.0047dad0
add esp, 8
xor ebx, ebx
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x463816
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x463827
push eax
call fcn.0050dec0
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x11c8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00586584
add esp, 0x11bc
ret
mov ecx, dword [esi]
mov edx, dword [ecx + 0x5c]
push ebx
push esi
call edx
xor eax, eax
jmp 0x463829
mov eax, dword [esi]
mov ecx, dword [eax + 0x5c]
push ebx
push esi
call ecx
mov ebp, dword [esp + 0x30]
lea edx, [esp + 0x1c8]
push edx
mov eax, esi
mov edi, 0x414a
call fcn.00460ab0
push eax
lea eax, [esp + 0x4c]
push eax
push 0x2f50
push edi
call fcn.00406f10
mov edx, dword [esp + 0x40]
mov ecx, dword [esi]
mov eax, dword [ecx + 0x5c]
add esp, 0x14
push edx
push esi
call eax
mov ecx, dword [esi]
mov edx, dword [ecx + 0x5c]
push ebp
push esi
call edx
jmp 0x4637f3
mov eax, dword [esi]
mov ecx, dword [eax + 0x5c]
push ebx
push esi
call ecx
push str.Returned_zero_length_class
lea edx, [esp + 0x48]
push edx
mov edi, 0x414a
push 0x2f50
push edi
call fcn.00406f10
add esp, 0x10
jmp 0x4637f3
mov eax, dword [esp + 0x20]
mov edi, 0x40d8
cmp eax, ebx
jne 0x4638dc
mov eax, 0x5a8a1a
push eax
push 0x2f50
push 0x40d8
call fcn.00406f10
add esp, 0xc
jmp 0x4637f3