Function at 0x40678d
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
mov dword [ebp - 4], 0
push 0x2c
push 0
lea eax, [ebp - 0x268]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x268], ecx
mov dword [ebp - 0x260], 4
mov word [ebp - 0x25a], 3
mov edx, dword [ebp + 0x18]
push edx
push str.SELECT_nodid_FROM_mgw_agent_map_WHERE_svcid___u
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
push 0xffffffffffffffff
lea ecx, [ebp - 0x21c]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x924]
push eax
call sub.ORA73.dll_Ordinal_198
add esp, 0xc
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
jne 0x4068ae
lea ecx, [ebp - 0x204]
push ecx
call sub.MSVCRT.dll_strlen
add esp, 4
push eax
lea edx, [ebp - 0x204]
push edx
mov eax, dword [ebp - 0x21c]
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 - 0x220], eax
cmp dword [ebp - 0x220], 0
jne 0x4068ae
lea eax, [ebp - 0x268]
push eax
push 1
mov ecx, dword [ebp - 0x21c]
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 - 0x220], eax
cmp dword [ebp - 0x220], 0
jne 0x4068ae
mov ecx, dword [ebp - 0x21c]
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 - 0x220], eax
cmp dword [ebp - 0x220], 0
je 0x4068f1
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0040c4ea
add esp, 8
mov eax, dword [ebp + 8]
push eax
call fcn.00409deb
add esp, 4
cmp dword [ebp - 0x21c], 0
je 0x4068ec
mov ecx, dword [ebp - 0x21c]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x924]
push eax
call sub.ORA73.dll_Ordinal_140
add esp, 8
jmp 0x406b04
cmp dword [ebp - 0x220], 0x57b
jne 0x406943
cmp dword [ebp - 0x21c], 0
je 0x40691f
mov ecx, dword [ebp - 0x21c]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x924]
push eax
call sub.ORA73.dll_Ordinal_140
add esp, 8
push 0x40
push 0x417474
mov ecx, dword [ebp + 8]
push ecx
call sub.mxnagent.dll_Ordinal_242
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
call fcn.00409deb
add esp, 4
jmp 0x406b04
mov eax, dword [ebp + 0x10]
mov byte [eax], 0
mov dword [ebp - 0x238], 0
mov ecx, dword [ebp + 0x14]
sub ecx, 1
mov dword [ebp + 0x14], ecx
push 5
mov edx, dword [ebp - 0x21c]
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x924]
push ecx
call sub.ORA73.dll_Ordinal_162
add esp, 0xc
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
je 0x4069cc
cmp dword [ebp - 0x220], 0x57b
je 0x4069cc
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0040c4ea
add esp, 8
mov ecx, dword [ebp + 8]
push ecx
call fcn.00409deb
add esp, 4
mov edx, dword [ebp - 0x21c]
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x924]
push ecx
call sub.ORA73.dll_Ordinal_140
add esp, 8
jmp 0x406b04
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 - 0x23c], ecx
mov dword [ebp - 0x234], 0
jmp 0x406a01
mov edx, dword [ebp - 0x234]
add edx, 1
mov dword [ebp - 0x234], edx
mov eax, dword [ebp - 0x23c]
sub eax, dword [ebp - 4]
cmp dword [ebp - 0x234], eax
jae 0x406ab9
mov ecx, dword [ebp + 0x10]
xor edx, edx
mov dl, byte [ecx]
test edx, edx
je 0x406a2d
mov dword [ebp - 0x26c], 0x41747c
jmp 0x406a37
mov dword [ebp - 0x26c], 0x417480
mov eax, dword [ebp - 0x234]
mov ecx, dword [ebp + eax*4 - 0x218]
push ecx
mov edx, dword [ebp - 0x26c]
push edx
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [ebp - 0x230]
push ecx
call sub.MSVCRT.dll_strlen
add esp, 4
mov edx, dword [ebp - 0x238]
add edx, eax
mov dword [ebp - 0x238], edx
mov eax, dword [ebp - 0x238]
cmp eax, dword [ebp + 0x14]
jb 0x406aa1
push 0x417484
mov ecx, dword [ebp + 0x10]
push ecx
call sub.MSVCRT.dll_strcat
add esp, 8
mov dword [ebp - 0x220], 0x57b
jmp 0x406ab9
lea edx, [ebp - 0x230]
push edx
mov eax, dword [ebp + 0x10]
push eax
call sub.MSVCRT.dll_strcat
add esp, 8
jmp 0x4069f2
mov ecx, dword [ebp - 0x23c]
mov dword [ebp - 4], ecx
cmp dword [ebp - 0x220], 0
je 0x40695c
mov edx, dword [ebp - 0x21c]
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x924]
push ecx
call sub.ORA73.dll_Ordinal_140
add esp, 8
mov edx, dword [ebp + 0x10]
xor eax, eax
mov al, byte [edx]
test eax, eax
jne 0x406b04
push 0x417488
mov ecx, dword [ebp + 0x10]
push ecx
call sub.MSVCRT.dll_strcpy
add esp, 8
mov esp, ebp
pop ebp
ret