Function at 0x40b4c5
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x33c
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x20c], 0
je 0x40b4e1
xor eax, eax
jmp 0x40b787
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0040c123
add esp, 8
mov dword [ebp - 0x204], eax
cmp dword [ebp - 0x204], 0
je 0x40b50b
mov eax, dword [ebp - 0x204]
jmp 0x40b787
lea eax, [ebp - 0x20c]
push eax
push 0x100
lea ecx, [ebp - 0x310]
push ecx
push 0
mov edx, dword [str.name]
xchg ecx, eax
inc ecx
add byte [edx + 0x68], dl
dec esp
jl 0x40b56c
add byte [eax + 0x50], ch
jl 0x40b571
add byte [ebx - 0x17aff7bb], cl
loopne 0x40b4bf
add byte [eax], al
add esp, 0x20
test eax, eax
je 0x40b574
mov ecx, dword [ebp + 8]
push ecx
call sub.mxnagent.dll_Ordinal_249
add esp, 4
mov byte [ebp - 0x310], 0
lea edx, [ebp - 0x310]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040b78b
add esp, 0xc
test eax, eax
je 0x40b574
jmp 0x40b76f
mov edx, 1
test edx, edx
je 0x40b76f
push 0x2c
push 0
lea eax, [ebp - 0x33c]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov ecx, dword [ebp + 0xc]
add ecx, 0x20c
mov dword [ebp - 0x33c], ecx
mov dword [ebp - 0x334], 4
mov word [ebp - 0x32e], 3
lea edx, [ebp - 0x310]
push edx
push 0x417c54
lea eax, [ebp - 0x200]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
mov dword [ebp - 0x208], 0
push 0xffffffffffffffff
lea ecx, [ebp - 0x208]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x924]
push eax
call sub.ORA73.dll_Ordinal_198
add esp, 0xc
test eax, eax
jne 0x40b6aa
lea ecx, [ebp - 0x200]
push ecx
call sub.MSVCRT.dll_strlen
add esp, 4
push eax
lea edx, [ebp - 0x200]
push edx
mov eax, dword [ebp - 0x208]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x924]
push edx
call sub.ORA73.dll_Ordinal_200
add esp, 0x10
test eax, eax
jne 0x40b6aa
lea eax, [ebp - 0x33c]
push eax
push 1
mov ecx, dword [ebp - 0x208]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x924]
push eax
call sub.ORA73.dll_Ordinal_117
add esp, 0x10
test eax, eax
jne 0x40b6aa
mov ecx, dword [ebp - 0x208]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x924]
push eax
call sub.ORA73.dll_Ordinal_156
add esp, 8
test eax, eax
jne 0x40b6aa
mov ecx, dword [ebp - 0x208]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x924]
push eax
call sub.ORA73.dll_Ordinal_161
add esp, 8
mov dword [ebp - 0x210], eax
cmp dword [ebp - 0x210], 0
je 0x40b6e1
cmp dword [ebp - 0x210], 0x57b
je 0x40b6e1
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0040c4ea
add esp, 8
cmp dword [ebp - 0x208], 0
je 0x40b6dc
mov eax, dword [ebp - 0x208]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x924]
push edx
call sub.ORA73.dll_Ordinal_140
add esp, 8
jmp 0x40b76f
mov eax, dword [ebp - 0x208]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x924]
push edx
call sub.ORA73.dll_Ordinal_140
add esp, 8
cmp dword [ebp - 0x210], 0x57b
jne 0x40b725
lea eax, [ebp - 0x310]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0040b78b
add esp, 0xc
test eax, eax
je 0x40b723
jmp 0x40b76f
jmp 0x40b76a
mov eax, dword [ebp - 0x208]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x924]
push edx
call sub.ORA73.dll_Ordinal_140
add esp, 8
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x924]
push ecx
call sub.ORA73.dll_Ordinal_142
add esp, 4
test eax, eax
je 0x40b766
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0040c4ea
add esp, 8
jmp 0x40b76f
xor eax, eax
jmp 0x40b787
jmp 0x40b574
push 0x38
push 0x417c88
mov ecx, dword [ebp + 8]
push ecx
call sub.mxnagent.dll_Ordinal_242
add esp, 0xc
mov eax, 0x38
mov esp, ebp
pop ebp
ret