Function at 0x40b78b
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5d8
mov dword [ebp - 0x18c], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x19c], 0
push 0x58
push 0
lea eax, [ebp - 0x1f4]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x334]
mov dword [ebp - 0x1f4], ecx
mov dword [ebp - 0x1ec], 0x40
mov word [ebp - 0x1e6], 5
lea edx, [ebp - 0x144]
mov dword [ebp - 0x1c8], edx
mov dword [ebp - 0x1c0], 0x40
mov word [ebp - 0x1ba], 5
push 0xffffffffffffffff
lea eax, [ebp - 0x18c]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x924]
push edx
call sub.ORA73.dll_Ordinal_198
add esp, 0xc
mov dword [ebp - 0x188], eax
cmp dword [ebp - 0x188], 0
jne 0x40b8c2
push 0x417c90
call sub.MSVCRT.dll_strlen
add esp, 4
push eax
push str.SELECT_mgw_node.name__mgw_tpa.addr_FROM_mgw_tpa__mgw_node_WHERE__tmgw_node.usrid___t_SELECT_usrid_FROM_mgw_user_WHERE_UPPER_name___SYSADMIN__and__tmgw_node.nodid__mgw_tpa.nodid___
mov eax, dword [ebp - 0x18c]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x924]
push edx
call sub.ORA73.dll_Ordinal_200
add esp, 0x10
mov dword [ebp - 0x188], eax
cmp dword [ebp - 0x188], 0
jne 0x40b8c2
lea eax, [ebp - 0x1f4]
push eax
push 2
mov ecx, dword [ebp - 0x18c]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x924]
push eax
call sub.ORA73.dll_Ordinal_117
add esp, 0x10
mov dword [ebp - 0x188], eax
cmp dword [ebp - 0x188], 0
jne 0x40b8c2
mov ecx, dword [ebp - 0x18c]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x924]
push eax
call sub.ORA73.dll_Ordinal_156
add esp, 8
mov dword [ebp - 0x188], eax
cmp dword [ebp - 0x188], 0
je 0x40b8ff
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0040c4ea
add esp, 8
cmp dword [ebp - 0x18c], 0
je 0x40b8f4
mov eax, dword [ebp - 0x18c]
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 - 0x188]
jmp 0x40be33
mov byte [ebp - 0x184], 0
push 5
mov eax, dword [ebp - 0x18c]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x924]
push edx
call sub.ORA73.dll_Ordinal_162
add esp, 0xc
mov dword [ebp - 0x188], eax
cmp dword [ebp - 0x188], 0
je 0x40b970
cmp dword [ebp - 0x188], 0x57b
je 0x40b970
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040c4ea
add esp, 8
mov edx, dword [ebp - 0x18c]
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x924]
push ecx
call sub.ORA73.dll_Ordinal_140
add esp, 8
mov eax, dword [ebp - 0x188]
jmp 0x40be33
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x924]
push eax
call sub.ORA73.dll_Ordinal_177
add esp, 4
mov ecx, dword [eax]
mov dword [ebp - 0x19c], ecx
cmp dword [ebp - 4], 0
jne 0x40b9fa
cmp dword [ebp - 0x19c], 0
je 0x40b9fa
push 0x181
push 1
mov edx, dword [ebp + 8]
push edx
call fcn.00409e2e
add esp, 0xc
push 0x14e
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.00409e2e
add esp, 0xc
push 0x417e00
lea ecx, [ebp - 0x198]
push ecx
call sub.mxnagent.dll_Ordinal_212
add esp, 8
push 0x17e
push 1
mov edx, dword [ebp + 8]
push edx
call fcn.00409e2e
add esp, 0xc
push 0x417e04
lea eax, [ebp - 0x198]
push eax
call sub.mxnagent.dll_Ordinal_212
add esp, 8
mov dword [ebp - 0x338], 0
jmp 0x40ba15
mov ecx, dword [ebp - 0x338]
add ecx, 1
mov dword [ebp - 0x338], ecx
mov edx, dword [ebp - 0x19c]
sub edx, dword [ebp - 4]
invalid
xchg ebp, eax
invalid
cld