Function at 0x100b8280
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10134c48
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
push ebx
push esi
push edi
mov eax, dword [0x103b2018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x34], edi
xor ebx, ebx
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], ebx
call dword [0x1013762c]
mov byte [ebp - 4], 2
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], ebx
je 0x100b82e2
push eax
lea eax, [ebp - 0x14]
push str.SELECT__FROM_fc_unit_list_WHERE_plan_id_s
push eax
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
add esp, 0xc
jmp 0x100b82f4
lea ecx, [ebp - 0x14]
push str.SELECT__FROM_fc_unit_list_ORDER_BY_unit_id
push ecx
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
add esp, 8
push ecx
lea edx, [ebp - 0x14]
mov ecx, esp
mov dword [ebp - 0x2c], esp
push edx
xor esi, esi
call dword [0x1013761c]
mov ecx, dword [edi + 0x634]
lea eax, [ebp - 0x28]
push eax
push ecx
mov ecx, esi
call fcn.10020a50
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.10019f40
mov edx, dword [ebp + 8]
mov esi, eax
mov eax, dword [edi + 0x638]
push esi
push edx
push str.SQL_Get_plan__s_units_count__d
push eax
mov dword [ebp - 0x2c], esi
call sub.NirvanaUtils.dll_public:_long_int___cdecl_GLog::WriteLogFormat_wchar_t_const__
add esp, 0x10
cmp esi, ebx
jle 0x100b86b5
xor edi, edi
lea esp, [esp]
cmp edi, esi
jge 0x100b86b5
mov eax, edi
lea ecx, [ebp - 0x28]
call fcn.1001a0f0
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x68], vtable.CNVUnit.0
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
call dword [0x1013762c]
lea ecx, [ebp - 0x48]
call dword [0x1013762c]
mov byte [ebp - 4], 4
cmp dword [ebp - 0x18], ebx
jne 0x100b83ce
push str.Null_Results_pointer
push 0x3e8
push str.CPPSQLITE_ERROR
push str._s__d_:__s
mov dword [ebp - 0x74], vtable.CppSQLite3Exception.0
mov dword [ebp - 0x70], 0x3e8
call sym.NirvanaBiz.dll_sqlite3_mprintf
add esp, 0x10
push 0x10393ee8
lea ecx, [ebp - 0x74]
push ecx
mov dword [ebp - 0x6c], eax
call sub.MSVCR90.dll__CxxThrowException
push str.plan_id
lea edx, [ebp - 0x28]
push edx
call fcn.10019f90
cmp eax, ebx
sete al
cmp al, bl
je 0x100b83ef
mov esi, dword [sym.imp.MSVCR90.dll_atoi]
xor eax, eax
jmp 0x100b8409
push str.plan_id
lea eax, [ebp - 0x28]
push eax
call fcn.10019f90
mov esi, dword [sym.imp.MSVCR90.dll_atoi]
push eax
call esi
add esp, 4
cdq
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], edx
cmp dword [ebp - 0x18], ebx
jne 0x100b845c
push str.Null_Results_pointer
push 0x3e8
push str.CPPSQLITE_ERROR
push str._s__d_:__s
mov dword [ebp - 0xa4], vtable.CppSQLite3Exception.0
mov dword [ebp - 0xa0], 0x3e8
call sym.NirvanaBiz.dll_sqlite3_mprintf
add esp, 0x10
push 0x10393ee8
lea ecx, [ebp - 0xa4]
push ecx
mov dword [ebp - 0x9c], eax
call sub.MSVCR90.dll__CxxThrowException
push str.unit_id
lea edx, [ebp - 0x28]
push edx
call fcn.10019f90
cmp eax, ebx
sete al
cmp al, bl
je 0x100b8477
xor eax, eax
jmp 0x100b848b
push str.unit_id
lea eax, [ebp - 0x28]
push eax
call fcn.10019f90
push eax
call esi
add esp, 4
cdq
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], edx
push ebx
cmp dword [ebp - 0x18], ebx
jne 0x100b84df
push str.Null_Results_pointer
push 0x3e8
push str.CPPSQLITE_ERROR
push str._s__d_:__s
mov dword [ebp - 0x98], vtable.CppSQLite3Exception.0
mov dword [ebp - 0x94], 0x3e8
call sym.NirvanaBiz.dll_sqlite3_mprintf
add esp, 0x10
push 0x10393ee8
lea ecx, [ebp - 0x98]
push ecx
mov dword [ebp - 0x90], eax
call sub.MSVCR90.dll__CxxThrowException
push str.user_id
lea edx, [ebp - 0x28]
push edx
call fcn.10019f90
cmp eax, ebx
sete al
cmp al, bl
je 0x100b84fd
mov eax, 0x10138e32
jmp 0x100b850b
push str.user_id
lea eax, [ebp - 0x28]
push eax
call fcn.10019f90
push ecx
mov ecx, esp
mov dword [ebp - 0x30], esp
push eax
call dword [0x101377ac]
lea ecx, [ebp - 0x3c]
push ecx
call sub.NirvanaUtils.dll_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______cdecl_GetWCString_class_ATL::CStringT_char__class_StrTraitMFC_DLL_char__class_ATL::ChTraitsCRT_char_____unsigned_int_
add esp, 0xc
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 5
call dword [0x101375f4]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 4
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
push ebx
cmp dword [ebp - 0x18], ebx
jne 0x100b858c
push str.Null_Results_pointer
push 0x3e8
push str.CPPSQLITE_ERROR
push str._s__d_:__s
mov dword [ebp - 0x8c], vtable.CppSQLite3Exception.0
mov dword [ebp - 0x88], 0x3e8
call sym.NirvanaBiz.dll_sqlite3_mprintf
add esp, 0x10
push 0x10393ee8
lea edx, [ebp - 0x8c]
push edx
mov dword [ebp - 0x84], eax
call sub.MSVCR90.dll__CxxThrowException
push str.unit_name
lea eax, [ebp - 0x28]
push eax
call fcn.10019f90
cmp eax, ebx
sete al
cmp al, bl
je 0x100b85aa
mov eax, 0x10138e32
jmp 0x100b85b8
push str.unit_name
lea ecx, [ebp - 0x28]
push ecx
call fcn.10019f90
push ecx
mov ecx, esp
mov dword [ebp - 0x30], esp
push eax
call dword [0x101377ac]
lea edx, [ebp - 0x38]
push edx
call sub.NirvanaUtils.dll_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______cdecl_GetWCString_class_ATL::CStringT_char__class_StrTraitMFC_DLL_char__class_ATL::ChTraitsCRT_char_____unsigned_int_
add esp, 0xc
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 6
call dword [0x101375f4]
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 4
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
cmp dword [ebp - 0x18], ebx
jne 0x100b862c
push str.Null_Results_pointer
push 0x3e8
push str.CPPSQLITE_ERROR
push str._s__d_:__s
mov dword [ebp - 0x80], vtable.CppSQLite3Exception.0
mov dword [ebp - 0x7c], 0x3e8
call sym.NirvanaBiz.dll_sqlite3_mprintf
add esp, 0x10
mov dword [ebp - 0x78], eax
push 0x10393ee8
lea eax, [ebp - 0x80]
push eax
call sub.MSVCR90.dll__CxxThrowException
push str.status
lea ecx, [ebp - 0x28]
push ecx
call fcn.10019f90
cmp eax, ebx
sete al
cmp al, bl
je 0x100b8647
xor eax, eax
jmp 0x100b865b
push str.status
lea edx, [ebp - 0x28]
push edx
call fcn.10019f90
push eax
call esi
add esp, 4
sub esp, 0x28
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x68]
mov ecx, esp
mov dword [ebp - 0x30], esp
push eax
call sym.NirvanaBiz.dll_public:_void___thiscall_CNVUnit::constructor_class_CNVUnit_const__
mov esi, dword [ebp + 0xc]
call fcn.100ba980
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp - 0x34]
push ecx
mov ecx, dword [eax + 0x638]
push edx
push str.SQL_planunits:__I64d
push ecx
call sub.NirvanaUtils.dll_public:_long_int___cdecl_GLog::WriteLogFormat_wchar_t_const__
add esp, 0x10
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 3
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [ebp - 0x4c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov esi, dword [ebp - 0x2c]
inc edi
jmp 0x100b8350
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.10019e40
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [ebp + 8]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8