Function at 0x1004e190
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1016a0d5
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
push ebx
push esi
push edi
mov eax, dword [0x10438fc0]
xor eax, esp
push eax
lea eax, [esp + 0xe0]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
xor edi, edi
cmp ebx, edi
jne 0x1004e1e8
mov eax, 0x8000ffff
mov ecx, dword [esp + 0xe0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push edi
push edi
push edi
lea esi, [esp + 0x20]
mov dword [esp + 0x20], edi
call fcn.100163a0
push str.UI_TERRAIN_TEXT
push str.ParameterName
push str.UI_TOPOLOGY_TEXT
push str.ParameterName
push str.UI_NETWORK_TEXT
push str.ParameterName
push str.UI_TEXT
mov dword [esp + 0x104], edi
mov eax, dword [0x1044ec38]
mov ecx, dword [0x1044ec44]
mov edx, dword [0x1044ec40]
push str.ParameterName
push eax
mov eax, dword [0x1044ec3c]
push ecx
push edx
push eax
push str.SELECT__s___s___s_FROM__s_WHERE__s___s_OR__s___s_OR__s___s_OR__s___s
mov edx, esi
call fcn.10016c90
add esp, 0x34
push edi
mov edi, dword [0x1044ec38]
lea eax, [esp + 0x1c]
call fcn.100164f0
lea ecx, [esp + 0x1c]
push ecx
push 0
push eax
mov ecx, ebx
mov byte [esp + 0xf4], 1
call fcn.10032100
mov esi, eax
mov byte [esp + 0xe8], 0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1004e2a1
lea edx, [eax - 0xc]
test edx, edx
je 0x1004e2a1
add eax, 0xfffffff4
dec dword [eax]
jne 0x1004e2a1
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
test esi, esi
jns 0x1004e2df
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1004e2c5
lea ecx, [eax - 0xc]
test ecx, ecx
je 0x1004e2c5
add eax, 0xfffffff4
dec dword [eax]
jne 0x1004e2c5
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0xe0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edi, dword [0x1044ec38]
push 0
lea eax, [esp + 0x3c]
call fcn.100164f0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], ebx
mov eax, dword [eax]
mov dword [esp + 0x28], eax
inc dword [eax - 0xc]
mov eax, dword [esp + 0x38]
test eax, eax
je 0x1004e325
lea edx, [eax - 0xc]
test edx, edx
je 0x1004e325
add eax, 0xfffffff4
dec dword [eax]
jne 0x1004e325
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov byte [esp + 0xe8], 3
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x2c]
test eax, eax
jne 0x1004e340
xor edi, edi
mov dword [esp + 0x20], edi
jmp 0x1004e350
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
mov dword [esp + 0x24], eax
call edx
mov edi, dword [esp + 0x20]
push 0
mov ebx, edi
lea esi, [esp + 0x30]
call fcn.10034a00
mov eax, dword [ebp + 0xc]
push 0
lea ecx, [esp + 0x40]
mov byte [esp + 0xec], 4
push ecx
mov dword [esp + 0x20], eax
call fcn.10012150
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x14]
mov byte [esp + 0xe8], 5
call fcn.1004f070
mov ebx, eax
test ebx, ebx
jns 0x1004e40a
lea edx, [esp + 0x3c]
push edx
mov byte [esp + 0xec], 4
call fcn.10011f10
call fcn.10034a80
mov byte [esp + 0xe8], 2
test edi, edi
je 0x1004e3be
mov eax, dword [edi]
mov ecx, dword [eax + 8]
push edi
call ecx
lea edx, [esp + 0x24]
push edx
mov byte [esp + 0xec], 0
call fcn.1002ffa0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1004e3f0
lea ecx, [eax - 0xc]
test ecx, ecx
je 0x1004e3f0
add eax, 0xfffffff4
dec dword [eax]
jne 0x1004e3f0
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov eax, ebx
mov ecx, dword [esp + 0xe0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [esp + 0x4c], 0
jne 0x1004e418
mov ebx, 0x8000ffff
jmp 0x1004e436
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x94]
push eax
lea eax, [esp + 0x40]
push eax
call edx
mov ebx, eax
test ebx, ebx
jns 0x1004e46f
lea eax, [esp + 0x3c]
push eax
mov byte [esp + 0xec], 4
call fcn.10011f10
lea esi, [esp + 0x2c]
call fcn.10034a80
mov byte [esp + 0xe8], 2
test edi, edi
je 0x1004e465
mov ecx, dword [edi]
mov edx, dword [ecx + 8]
push edi
call edx
lea eax, [esp + 0x24]
push eax
jmp 0x1004e3c3
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
mov esi, dword [esp + 0x1c]
mov edx, dword [esi]
mov edx, dword [edx + 0x9c]
push eax
push edi
lea ecx, [esp + 0x44]
push ecx
mov ecx, esi
call edx
test eax, eax
jne 0x1004e537
mov ebx, dword [edi + 8]
call fcn.1004dfa0
test al, al
jne 0x1004e518
push 0x30
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov dword [esp + 0x18], eax
mov byte [esp + 0xe8], 6
test eax, eax
je 0x1004e4c7
push eax
call fcn.1004d4b0
mov esi, eax
jmp 0x1004e4c9
xor esi, esi
mov ecx, dword [ebp + 0xc]
mov byte [esp + 0xe8], 5
mov eax, dword [edi + 0x38]
mov edx, dword [edi + 8]
push eax
push ecx
mov ecx, dword [edi + 0x20]
push esi
call fcn.1004d6a0
mov ebx, eax
test ebx, ebx
js 0x1004e59f
test esi, esi
je 0x1004e4fc
add esi, 0x10
mov dword [esp + 0x18], esi
jmp 0x1004e504
mov dword [esp + 0x18], 0
mov esi, dword [ebp + 8]
lea edx, [esp + 0x18]
push edx
add esi, 0x18
call fcn.1009f830
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x30]
mov eax, dword [esi]
mov eax, dword [eax + 0x9c]
push ecx
push edi
lea edx, [esp + 0x44]
push edx
mov ecx, esi
call eax
test eax, eax
je 0x1004e496
lea edx, [esp + 0x3c]
push edx
mov byte [esp + 0xec], 4
call fcn.10011f10
lea esi, [esp + 0x2c]
call fcn.10034a80
mov byte [esp + 0xe8], 2
mov eax, dword [esp + 0x20]
test eax, eax
je 0x1004e56a
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0xec], 0
call fcn.1002ffa0
lea eax, [esp + 0x14]
call fcn.100164d0
xor eax, eax
mov ecx, dword [esp + 0xe0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test esi, esi
je 0x1004e5ae
mov edx, dword [esi]
mov eax, dword [edx + 0x10]
push 1
mov ecx, esi
call eax
lea ecx, [esp + 0x3c]
push ecx
mov byte [esp + 0xec], 4
call fcn.10011f10
lea esi, [esp + 0x2c]
call fcn.10034a80
mov byte [esp + 0xe8], 2
mov eax, dword [esp + 0x20]
test eax, eax
je 0x1004e5e1
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
lea ecx, [esp + 0x24]
push ecx
mov byte [esp + 0xec], 0
call fcn.1002ffa0
lea eax, [esp + 0x14]
call fcn.100164d0
jmp 0x1004e3f0