Function at 0x1004eb00
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1016a05b
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
push ebx
push esi
push edi
mov eax, dword [0x10438fc0]
xor eax, esp
push eax
lea eax, [esp + 0xf8]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
xor edi, edi
cmp dword [ebp + 0xc], edi
je 0x1004ef93
cmp eax, edi
je 0x1004ef93
mov dword [esp + 0x1c], edi
lea edx, [esp + 0x1c]
mov dword [esp + 0x100], edi
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x10]
call eax
push edi
push edi
push edi
lea esi, [esp + 0x20]
mov dword [esp + 0x20], edi
call fcn.100163a0
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], ecx
mov byte [esp + 0x4c], 1
push str.COMMENT
push str.ParameterName
push str.UI_TERRAIN_TEXT
push str.ParameterName
push str.UI_TOPOLOGY_TEXT
push str.ParameterName
push str.UI_NETWORK_TEXT
mov byte [esp + 0x11c], 2
mov edx, dword [0x1044ec40]
mov edi, dword [0x1044ec38]
mov ebx, dword [0x1044ec44]
push str.ParameterName
push str.UI_TEXT
push str.ParameterName
lea esi, [esp + 0x6c]
mov dword [esp + 0x40], edx
call fcn.1001abd0
push eax
mov eax, dword [esp + 0x44]
push str.Keyword
push edi
push ebx
push eax
push str.SELECT__s___s_FROM__s_WHERE__s___s_AND__s_____s_AND__s_____s_AND__s_____s_AND__s_____s_AND__s_____s
lea edx, [esp + 0x54]
call fcn.10016c90
add esp, 0x40
mov byte [esp + 0x100], 1
cmp byte [esp + 0x4c], 0
je 0x1004ec16
mov ecx, dword [esp + 0x44]
mov ebx, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
push ecx
call ebx
jmp 0x1004ec27
mov edx, dword [esp + 0x48]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
mov ebx, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
mov edi, dword [0x1044ec38]
add esp, 4
push 0
lea eax, [esp + 0x1c]
call fcn.100164f0
mov esi, dword [ebp + 0xc]
lea ecx, [esp + 0x20]
push ecx
push 0
push eax
mov ecx, esi
mov byte [esp + 0x10c], 3
call fcn.10032100
mov edi, eax
mov byte [esp + 0x100], 1
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1004ec7b
lea edx, [eax - 0xc]
test edx, edx
je 0x1004ec7b
add eax, 0xfffffff4
dec dword [eax]
jne 0x1004ec7b
push eax
call ebx
add esp, 4
test edi, edi
jns 0x1004ecc4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1004ec9b
lea ecx, [eax - 0xc]
test ecx, ecx
je 0x1004ec9b
add eax, 0xfffffff4
dec dword [eax]
jne 0x1004ec9b
push eax
call ebx
add esp, 4
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x1004ecaa
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, edi
mov ecx, dword [esp + 0xf8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edi, dword [0x1044ec38]
push 0
lea eax, [esp + 0x54]
call fcn.100164f0
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], esi
mov eax, dword [eax]
mov dword [esp + 0x34], eax
inc dword [eax - 0xc]
mov eax, dword [esp + 0x50]
test eax, eax
je 0x1004ed06
lea edx, [eax - 0xc]
test edx, edx
je 0x1004ed06
add eax, 0xfffffff4
dec dword [eax]
jne 0x1004ed06
push eax
call ebx
add esp, 4
mov byte [esp + 0x100], 5
mov eax, dword [esp + 0x20]
mov ebx, dword [eax + 0x2c]
test ebx, ebx
jne 0x1004ed1f
mov dword [esp + 0x18], ebx
jmp 0x1004ed2b
mov ecx, dword [ebx]
mov edx, dword [ecx + 4]
push ebx
mov dword [esp + 0x1c], ebx
call edx
push 0
lea esi, [esp + 0x3c]
call fcn.10034a00
mov eax, dword [ebp + 0xc]
push 0
lea ecx, [esp + 0x58]
mov byte [esp + 0x104], 6
push ecx
mov dword [esp + 0x30], eax
call fcn.10012150
lea eax, [esp + 0x54]
lea ecx, [esp + 0x14]
mov byte [esp + 0x100], 7
call fcn.1004f070
mov edi, eax
test edi, edi
jns 0x1004edd7
lea edx, [esp + 0x54]
push edx
mov byte [esp + 0x104], 6
call fcn.10011f10
call fcn.10034a80
mov byte [esp + 0x100], 4
test ebx, ebx
je 0x1004ed97
mov eax, dword [ebx]
mov ecx, dword [eax + 8]
push ebx
call ecx
lea edx, [esp + 0x30]
push edx
mov byte [esp + 0x104], 1
call fcn.1002ffa0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1004ec9b
lea ecx, [eax - 0xc]
test ecx, ecx
je 0x1004ec9b
add eax, 0xfffffff4
dec dword [eax]
jne 0x1004ec9b
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
jmp 0x1004ec98
cmp dword [esp + 0x64], 0
jne 0x1004ede5
mov edi, 0x8000ffff
jmp 0x1004ee03
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx]
mov edx, dword [edx + 0x94]
push eax
lea eax, [esp + 0x58]
push eax
call edx
mov edi, eax
test edi, edi
jns 0x1004ee52
lea eax, [esp + 0x54]
push eax
mov byte [esp + 0x104], 6
call fcn.10011f10
lea esi, [esp + 0x38]
call fcn.10034a80
mov byte [esp + 0x100], 4
test ebx, ebx
je 0x1004ee32
mov ecx, dword [ebx]
mov edx, dword [ecx + 8]
push ebx
call edx
lea eax, [esp + 0x30]
push eax
mov byte [esp + 0x104], 1
call fcn.1002ffa0
lea eax, [esp + 0x14]
call fcn.100164d0
jmp 0x1004ec9b
mov eax, dword [esp + 0x3c]
mov edi, dword [esp + 0x40]
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx]
mov edx, dword [edx + 0x9c]
push eax
push edi
lea eax, [esp + 0x5c]
push eax
mov dword [esp + 0x38], edi
call edx
test eax, eax
jne 0x1004ef23
mov eax, dword [ebp + 8]
add eax, 0x18
mov dword [esp + 0x28], eax
jmp 0x1004ee94
mov edi, dword [esp + 0x2c]
push 0x1c
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov dword [esp + 0x24], eax
mov byte [esp + 0x100], 8
test eax, eax
je 0x1004eeb9
push eax
call fcn.1004e6e0
mov esi, eax
jmp 0x1004eebb
xor esi, esi
mov byte [esp + 0x100], 7
mov ebx, dword [edi + 0x38]
mov edi, dword [edi + 0x20]
lea eax, [esi + 0x14]
call fcn.10016670
lea eax, [esi + 0x18]
mov edi, ebx
call fcn.10016670
test esi, esi
je 0x1004eee8
add esi, 0x10
mov dword [esp + 0x24], esi
jmp 0x1004eef0
mov dword [esp + 0x24], 0
mov esi, dword [esp + 0x28]
lea ecx, [esp + 0x24]
push ecx
call fcn.1009f830
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx]
mov edx, dword [edx + 0x9c]
push eax
mov eax, dword [esp + 0x30]
push eax
lea eax, [esp + 0x5c]
push eax
call edx
test eax, eax
je 0x1004ee90
lea eax, [esp + 0x54]
push eax
mov byte [esp + 0x104], 6
call fcn.10011f10
lea esi, [esp + 0x38]
call fcn.10034a80
lea esi, [esp + 0x18]
mov byte [esp + 0x100], 4
call fcn.1000a090
lea ecx, [esp + 0x30]
push ecx
mov byte [esp + 0x104], 1
call fcn.1002ffa0
lea eax, [esp + 0x14]
call fcn.100164d0
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x1004ef79
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
xor eax, eax
mov ecx, dword [esp + 0xf8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, 0x8000ffff
mov ecx, dword [esp + 0xf8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc