Function at 0x100a47e0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10134eac
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 edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
lea eax, [esp + 0x20]
push eax
push edi
lea ecx, [esi + 0x1a4]
push ebx
lea eax, [esp + 0x30]
mov dword [esp + 0x28], ecx
call fcn.10014c80
test eax, eax
je 0x100a483d
mov eax, dword [eax + 8]
test eax, eax
jne 0x100a4b3d
cmp dword [esi + 0x634], 0
je 0x100a4b3b
lea ecx, [esp + 0x14]
call dword [0x1013762c]
push edi
push ebx
lea ecx, [esp + 0x1c]
push str.SELECT__FROM_fc_plan_list_WHERE_plan_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
mov bl, 1
lea eax, [esp + 0x28]
mov byte [esp + 0x48], bl
call fcn.10019f40
lea ecx, [esp + 0x28]
test eax, eax
jle 0x100a4b27
xor eax, eax
call fcn.1001a0f0
push 0x38
call sub.mfc90u.dll_new
add esp, 4
test eax, eax
je 0x100a48d2
mov ecx, eax
call sym.NirvanaBiz.dll_public:_void___thiscall_CNVPlan::constructor_void_
mov esi, eax
jmp 0x100a48d4
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 0x100a48f1
or eax, 0xffffffff
jmp 0x100a4906
push str.plan_id
lea edx, [esp + 0x2c]
push edx
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 0x100a4924
or eax, 0xffffffff
jmp 0x100a4939
push str.user_id
lea eax, [esp + 0x2c]
push eax
call fcn.10019f90
push eax
call edi
add esp, 4
push eax
lea ecx, [esp + 0x1c]
push ecx
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 + 0x14]
mov byte [esp + 0x4c], 2
call dword [0x101375f4]
lea ecx, [esp + 0x18]
mov byte [esp + 0x48], bl
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.plan_name
lea eax, [esp + 0x30]
call fcn.1001a090
test al, al
je 0x100a497f
mov eax, 0x10138e32
jmp 0x100a498e
push str.plan_name
lea edx, [esp + 0x30]
push edx
call fcn.10019f90
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
call dword [0x101377ac]
lea eax, [esp + 0x20]
push eax
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 + 0x10]
mov byte [esp + 0x4c], 3
call dword [0x101375f4]
lea ecx, [esp + 0x18]
mov byte [esp + 0x48], bl
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.area
lea eax, [esp + 0x30]
call fcn.1001a090
test al, al
je 0x100a49e1
mov eax, 0x10138e32
jmp 0x100a49f0
push str.area
lea ecx, [esp + 0x30]
push ecx
call fcn.10019f90
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
call dword [0x101377ac]
lea edx, [esp + 0x20]
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, [esi + 0x18]
mov byte [esp + 0x4c], 4
call dword [0x101375f4]
lea ecx, [esp + 0x18]
mov byte [esp + 0x48], bl
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 str.rank_area
lea eax, [esp + 0x2c]
call fcn.1001a090
test al, al
je 0x100a4a3f
or eax, 0xffffffff
jmp 0x100a4a54
push str.rank_area
lea eax, [esp + 0x2c]
push eax
call fcn.10019f90
push eax
call edi
add esp, 4
mov dword [esi + 0x1c], eax
push str.device_cfg
lea eax, [esp + 0x2c]
call fcn.1001a090
test al, al
je 0x100a4a6d
xor eax, eax
jmp 0x100a4a82
push str.device_cfg
lea ecx, [esp + 0x2c]
push ecx
call fcn.10019f90
push eax
call edi
add esp, 4
mov dword [esi + 0x24], eax
push str.show_prob
lea eax, [esp + 0x2c]
call fcn.1001a090
test al, al
je 0x100a4a9b
xor eax, eax
jmp 0x100a4ab0
push str.show_prob
lea edx, [esp + 0x2c]
push edx
call fcn.10019f90
push eax
call edi
add esp, 4
mov dword [esi + 0x28], eax
push str.mprice_factor
lea eax, [esp + 0x2c]
call fcn.1001a090
test al, al
je 0x100a4ac9
fldz
jmp 0x100a4ae2
push str.mprice_factor
lea eax, [esp + 0x2c]
push eax
call fcn.10019f90
push eax
call dword [sym.imp.MSVCR90.dll_atof]
add esp, 4
mov ecx, dword [ebp + 0xc]
fstp qword [esi + 0x30]
mov edx, dword [ebp + 8]
mov eax, dword [esp + 0x1c]
push ecx
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 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