Function at 0x100a4b60
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10134e63
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x103b2018]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
lea eax, [esp + 0x20]
push eax
push ebx
lea ecx, [esi + 0x1c0]
push edi
lea eax, [esp + 0x30]
mov dword [esp + 0x28], ecx
call fcn.10014c80
test eax, eax
je 0x100a4bbd
mov eax, dword [eax + 8]
test eax, eax
jne 0x100a4dec
cmp dword [esi + 0x634], 0
je 0x100a4dea
lea ecx, [esp + 0x14]
call dword [0x1013762c]
push ebx
push edi
lea ecx, [esp + 0x1c]
push str.SELECT__FROM_fc_unit_list_WHERE_unit_id___I64d
push ecx
mov dword [esp + 0x58], 0
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
add esp, 0xc
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
xor edi, edi
call dword [0x1013761c]
mov ecx, dword [esi + 0x634]
lea eax, [esp + 0x2c]
push eax
push ecx
mov ecx, edi
call fcn.10020a50
lea eax, [esp + 0x28]
mov byte [esp + 0x48], 1
call fcn.10019f40
test eax, eax
jle 0x100a4db9
xor eax, eax
lea ecx, [esp + 0x28]
call fcn.1001a0f0
push 0x28
call sub.mfc90u.dll_new
add esp, 4
test eax, eax
je 0x100a4c51
mov ecx, eax
call sym.NirvanaBiz.dll_public:_void___thiscall_CNVUnit::constructor_void_
mov esi, eax
jmp 0x100a4c53
xor esi, esi
push str.plan_id
lea eax, [esp + 0x2c]
call fcn.1001a090
mov edi, dword [sym.imp.MSVCR90.dll_atoi]
test al, al
je 0x100a4c70
or eax, 0xffffffff
jmp 0x100a4c85
push str.plan_id
lea edx, [esp + 0x2c]
push edx
call fcn.10019f90
push eax
call edi
add esp, 4
cdq
mov dword [esi + 0x10], eax
push str.unit_id
lea eax, [esp + 0x2c]
mov dword [esi + 0x14], edx
call fcn.1001a090
test al, al
je 0x100a4ca3
or eax, 0xffffffff
jmp 0x100a4cb8
push str.unit_id
lea eax, [esp + 0x2c]
push eax
call fcn.10019f90
push eax
call edi
add esp, 4
cdq
mov dword [esi + 8], eax
push str.user_id
lea eax, [esp + 0x2c]
mov dword [esi + 0xc], edx
call fcn.1001a090
test al, al
je 0x100a4cd6
or eax, 0xffffffff
jmp 0x100a4ceb
push str.user_id
lea ecx, [esp + 0x2c]
push ecx
call fcn.10019f90
push eax
call edi
add esp, 4
push eax
lea edx, [esp + 0x1c]
push edx
call sub.NirvanaUtils.dll_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______cdecl_ToString_int_
add esp, 8
push eax
lea ecx, [esi + 0x1c]
mov byte [esp + 0x4c], 2
call dword [0x101375f4]
lea ecx, [esp + 0x18]
mov byte [esp + 0x48], 1
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 0
push str.unit_name
lea eax, [esp + 0x30]
call fcn.1001a090
test al, al
je 0x100a4d32
mov eax, 0x10138e32
jmp 0x100a4d41
push str.unit_name
lea eax, [esp + 0x30]
push eax
call fcn.10019f90
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
call dword [0x101377ac]
lea ecx, [esp + 0x20]
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, [esi + 0x20]
mov byte [esp + 0x4c], 3
call dword [0x101375f4]
lea ecx, [esp + 0x18]
mov byte [esp + 0x48], 1
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 edx, dword [ebp + 8]
mov eax, dword [esp + 0x1c]
push ebx
push edx
call fcn.10014a50
lea ecx, [esp + 0x28]
mov dword [eax], esi
mov byte [esp + 0x48], 0
call fcn.10019e40
lea ecx, [esp + 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]
mov eax, esi
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 8]
mov ecx, dword [esi + 0x638]
push ebx
push eax
push 0x10381a5c
push ecx
call sub.NirvanaUtils.dll_public:_long_int___cdecl_GLog::WriteLogFormat_wchar_t_const__
add esp, 0x10
lea ecx, [esp + 0x28]
mov byte [esp + 0x48], 0
call fcn.10019e40
lea ecx, [esp + 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]
xor eax, eax
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8