Function at 0x403006
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x79c
mov eax, dword [0x5f2e68]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x714], eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
push 0x3ff
mov dword [ebp - 0x734], eax
lea eax, [ebp - 0x70f]
mov esi, ecx
push ebx
push eax
mov dword [ebp - 0x728], esi
mov byte [ebp - 0x710], bl
call fcn.005306b0
xor eax, eax
mov word [ebp - 0x788], bx
lea edi, [ebp - 0x786]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
add esp, 0xc
mov edi, 0xff
push edi
lea eax, [ebp - 0x30f]
push ebx
push eax
mov dword [ebp - 0x73c], ebx
mov dword [ebp - 0x748], ebx
mov dword [ebp - 0x720], ebx
mov byte [ebp - 0x310], bl
call fcn.005306b0
add esp, 0xc
push edi
lea eax, [ebp - 0x107]
push ebx
push eax
mov byte [ebp - 0x108], bl
call fcn.005306b0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20f]
push ebx
push eax
mov byte [ebp - 0x210], bl
call fcn.005306b0
xor eax, eax
lea edi, [ebp - 0x776]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [ebp - 0x758], bx
lea edi, [ebp - 0x756]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [ebp - 0x768], bx
lea edi, [ebp - 0x766]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
mov edx, esi
stosw word es:[edi], ax
mov dword [ebp - 0x744], ebx
call fcn.004ccc0d
test eax, eax
jne 0x403168
mov edx, dword [ebp - 0x714]
call fcn.004ccc0d
test eax, eax
jne 0x403168
lea eax, [ebp - 0x778]
push eax
call fcn.004fb9a6
pop ecx
call fcn.00449d38
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x740], edi
je 0x403168
push esi
push edi
call fcn.00461390
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0x72c], eax
je 0x403179
mov eax, edi
call fcn.00449e7d
push dword [ebp - 0x72c]
push esi
push str.:4:PaulaConfigToSQL___FAILED:_LoadConfigSettings___s___FAILED:__s
call fcn.0042b70b
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005317e7
leave
ret
push dword [ebp - 0x714]
lea eax, [ebp - 0x798]
push eax
mov ecx, edi
call fcn.00403bb4
pop ecx
pop ecx
add edi, 0x201c
mov dword [ebp - 0x738], edi
mov esi, eax
movsd dword es:[edi], dword [esi]
push ebx
push 1
movsd dword es:[edi], dword [esi]
push str.nuim808
push str.notes_user
movsd dword es:[edi], dword [esi]
push str.account_notes
push ecx
push ebx
movsd dword es:[edi], dword [esi]
call fcn.004934c9
pop ecx
pop ecx
push eax
call fcn.0047f8a9
add esp, 0x18
cmp eax, ebx
mov dword [ebp - 0x71c], eax
jne 0x4031de
mov eax, dword [ebp - 0x740]
call fcn.00449e7d
mov eax, ebx
jmp 0x40316a
push dword [ebp - 0x728]
mov ecx, 0x105
lea eax, [ebp - 0x210]
call fcn.004ccc3f
pop ecx
call fcn.004ccf84
mov ecx, str.t2fs.dat
mov ebx, eax
call fcn.004cd3c9
mov eax, ebx
push eax
lea eax, [ebp - 0x758]
push eax
call fcn.004fc93a
cmp word [ebp - 0x774], 1
pop ecx
pop ecx
mov dword [ebp - 0x72c], eax
jne 0x403297
cmp word [ebp - 0x770], 1
jne 0x403297
movzx edi, word [ebp - 0x772]
mov esi, str.LastInstalledParamsRefresh.dat
push esi
push 0
call fcn.00493154
pop ecx
pop ecx
mov ecx, eax
call fcn.00433c19
cmp eax, edi
je 0x403297
xor ebx, ebx
push ebx
push ebx
push str.UPDATE_installed_params_SET_dwCheckSum0_
push dword [ebp - 0x71c]
call fcn.00480b29
add esp, 0x10
test eax, eax
je 0x40328c
push edi
push esi
push ebx
call fcn.00493154
pop ecx
pop ecx
mov ecx, eax
call fcn.00433d41
mov dword [esp], str.:0:FYI:_PaulaConfigToSQL___successfully_cleared_the_checksum_for_refresh.
call fcn.0042bd38
jmp 0x403296
push str.:2:PaulaConfigToSQL___FAILED_to_clear_the_checksum_for_refresh.
call fcn.0042b70b
pop ecx
xor ebx, ebx
lea eax, [ebp - 0x310]
mov dword [ebp - 0x730], ebx
call fcn.004ccb8b
push dword [ebp - 0x714]
push str.SELECT_accountid__locationid__isInstalled__owner_FROM_locations_WHERE_storeid_s_LIMIT_1
push dword [ebp - 0x71c]
call fcn.00480b29
add esp, 0xc
test eax, eax
je 0x403385
push 4
push 9
push 0x3ff
lea eax, [ebp - 0x710]
push eax
push dword [ebp - 0x71c]
call fcn.00480c24
add esp, 0x14
mov esi, 0x54fb24
push esi
lea eax, [ebp - 0x720]
lea ecx, [ebp - 0x710]
call fcn.004ce974
cmp eax, ebx
pop ecx
je 0x40330c
push eax
call fcn.005317e2
pop ecx
push esi
lea eax, [ebp - 0x720]
xor ecx, ecx
call fcn.004ce974
cmp eax, ebx
pop ecx
je 0x403330
push eax
call fcn.005317e2
cmp eax, ebx
pop ecx
mov dword [ebp - 0x730], eax
jne 0x40333e
push ebx
push dword [ebp - 0x714]
call fcn.00401b4a
pop ecx
pop ecx
push esi
lea eax, [ebp - 0x720]
xor ecx, ecx
call fcn.004ce974
cmp eax, ebx
pop ecx
je 0x403358
push eax
call fcn.005317e2
pop ecx
push esi
lea eax, [ebp - 0x720]
xor ecx, ecx
call fcn.004ce974
cmp eax, ebx
pop ecx
je 0x40337d
push eax
mov ecx, 0x100
lea eax, [ebp - 0x310]
call fcn.004ccc3f
pop ecx
cmp dword [ebp - 0x730], ebx
jne 0x403399
push dword [ebp - 0x71c]
call fcn.0048073c
xor ebx, ebx
pop ecx
inc ebx
jmp 0x4031cf
push 1
push dword [ebp - 0x714]
call fcn.00401b4a
push dword [ebp - 0x734]
call fcn.004335e2
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x714], eax
jne 0x4033df
push 1
push 0xde
call fcn.00530848
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0x714], eax
je 0x403168
call fcn.004ccb8b
mov edi, dword [ebp - 0x714]
push 0x27
push edi
call fcn.005313b0
test eax, eax
pop ecx
pop ecx
je 0x40343d
push 1
push edi
call fcn.00530f70
pop ecx
lea eax, [eax + eax + 2]
push eax
call fcn.00530848
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
mov dword [ebp - 0x714], esi
jne 0x403423
push 0x27
mov dword [ebp - 0x714], edi
call fcn.004cd66d
jmp 0x40343c
push edi
push esi
call fcn.005312a0
push 0xffffffffffffffff
mov eax, esi
call fcn.004d02f3
add esp, 0xc
push edi
call fcn.0053061e
pop ecx
push dword [ebp - 0x714]
call fcn.00530f70
mov esi, eax
pop ecx
add esi, 0x400
lea eax, [esi + 1]
push 1
push eax
mov dword [ebp - 0x718], esi
call fcn.00530848
mov edi, eax
test edi, edi
pop ecx
pop ecx
mov dword [ebp - 0x724], edi
jne 0x40348f
push dword [ebp - 0x714]
call fcn.0053061e
pop ecx
push dword [ebp - 0x71c]
call fcn.0048073c
pop ecx
xor ebx, ebx
jmp 0x4031cf
mov eax, edi
call fcn.004ccb8b
push 0x55086c
push edi
call fcn.00531b2f
push dword [ebp - 0x730]
mov eax, esi
push str._locationid_d_
call fcn.004ce4a3
mov ebx, dword [ebp - 0x740]
push dword [ebx + 0xd90]
mov eax, esi
push str._fullStoreNum_d_
call fcn.004ce4a3
add esp, 0x18
lea edx, [ebx + 0x1fdc]
call fcn.004ccc0d
test eax, eax
jne 0x4034f9
lea eax, [ebx + 0x1fdc]
push eax
call fcn.004018d5
pop ecx
push eax
push str._szAfterHoursPhn_s_
mov eax, esi
call fcn.004ce4a3
pop ecx
pop ecx
lea edx, [ebx + 0x1fdc]
call fcn.004ccc0d
test eax, eax
jne 0x403522
lea edx, [ebx + 0x1fdc]
call fcn.00401937
push eax
push str._szAfterHoursPhnFriendly_s_
mov eax, esi
call fcn.004ce4a3
pop ecx
pop ecx
push dword [ebx + 0x218c]
call fcn.00468753
pop ecx
push eax
push str._szOverTol_s_
mov eax, esi
call fcn.004ce4a3
push dword [ebx + 0x2190]
call fcn.00468753
add esp, 0xc
push eax
push str._szShortTol_s_
mov eax, esi
call fcn.004ce4a3
push dword [ebx + 0x2194]
call fcn.00468753
add esp, 0xc
push eax
push str._szTillBase__s_
mov eax, esi
call fcn.004ce4a3
xor eax, eax
cmp dword [ebx + 0x212c], eax
setne al
push eax
push str._bLooseTillBaseTracking_d_
mov eax, esi
call fcn.004ce4a3
xor eax, eax
cmp dword [ebx + 0x2114], eax
setne al
push eax
push str._bEnableCashierOption_d_
mov eax, esi
call fcn.004ce4a3
xor eax, eax
cmp dword [ebx + 0x2118], eax
setne al
push eax
push str._bEnableOneTill_d_
mov eax, esi
call fcn.004ce4a3
xor eax, eax
cmp dword [ebx + 0x2130], eax
setne al
push eax
push str._bEnforceTenderType_d_
mov eax, esi
call fcn.004ce4a3
push 0
lea ecx, [ebx + 0x1094]
push 0
call fcn.004bddbd
neg eax
sbb eax, eax
neg eax
push eax
push str._bIsDisabled_d_
mov eax, esi
call fcn.004ce4a3
add esp, 0x38
cmp dword [ebp - 0x72c], 0
je 0x403633
push 0
sub esp, 0x10
lea esi, [ebp - 0x758]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004f9794
add esp, 0x14
test eax, eax
je 0x403633
mov eax, dword [ebp - 0x718]
mov edi, dword [ebp - 0x724]
push str._bIsTAMSii1_
call fcn.004ce4a3
pop ecx
cmp dword [ebx + 0x217c], 0
mov esi, dword [ebp - 0x724]
mov edi, esi
je 0x40364f
mov eax, dword [ebx + 0x2154]
neg eax
push eax
jmp 0x403655
push dword [ebx + 0x2154]
mov eax, dword [ebp - 0x718]
push str._iReportPrinter_d_
call fcn.004ce4a3
cmp dword [ebx + 0x2180], 0
pop ecx
pop ecx
mov edi, esi
je 0x40367d
mov eax, dword [ebx + 0x2164]
neg eax
push eax
jmp 0x403683
push dword [ebx + 0x2164]
mov eax, dword [ebp - 0x718]
push str._iReportPrinterDup_d_
call fcn.004ce4a3
pop ecx
pop ecx
lea eax, [ebx + 0x1094]
push eax
mov eax, dword [ebp - 0x718]
push str._szTamsIp_s_
mov edi, esi
call fcn.004ce4a3
push dword [ebp - 0x714]
mov eax, dword [ebp - 0x718]
push str._szEmpConfig_s
call fcn.004ce4a3
push esi
call fcn.00530f70
mov edi, eax
shl edi, 0x10
add esp, 0x14
inc edi
inc edi
push esi
mov dword [ebp - 0x734], edi
call fcn.00530f70
test eax, eax
pop ecx
jl 0x4036f4
movsx ecx, byte [esi + eax]
add edi, ecx
dec eax
jns 0x4036e5
mov dword [ebp - 0x734], edi
test edi, edi
jne 0x4036ff
inc edi
mov dword [ebp - 0x734], edi
mov eax, dword [ebp - 0x718]
push edi
push str.__dwCheckSum_u
mov edi, esi
call fcn.004ce4a3
lea eax, [ebp - 0x108]
call fcn.004ccb8b
push dword [ebp - 0x730]
push str.SELECT_installedid__dwCheckSum__stBornOn__manname__stTAMSiiBornOn_FROM_installed_params_WHERE_locationid_d
push dword [ebp - 0x71c]
call fcn.00480b29
add esp, 0x14
test eax, eax
je 0x403884
and dword [ebp - 0x72c], 0
push 5
push 9
push 0x3ff
lea eax, [ebp - 0x710]
push eax
push dword [ebp - 0x71c]
call fcn.00480c24
add esp, 0x14
mov esi, 0x54fb24
push esi
lea eax, [ebp - 0x720]
lea ecx, [ebp - 0x710]
call fcn.004ce974
test eax, eax
pop ecx
je 0x403797
push 0xa
lea ecx, [ebp - 0x72c]
push ecx
push eax
call fcn.005305cb
add esp, 0xc
mov dword [ebp - 0x73c], eax
push esi
lea eax, [ebp - 0x720]
xor ecx, ecx
call fcn.004ce974
test eax, eax
pop ecx
je 0x4037c2
push 0xa
lea ecx, [ebp - 0x72c]
push ecx
push eax
call fcn.005305f4
add esp, 0xc
mov dword [ebp - 0x748], eax
push esi
lea eax, [ebp - 0x720]
xor ecx, ecx
call fcn.004ce974
test eax, eax
pop ecx
je 0x4037f5
push eax
lea eax, [ebp - 0x798]
push eax
call fcn.004fa269
mov esi, eax
lea edi, [ebp - 0x788]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop ecx
movsd dword es:[edi], dword [esi]
pop ecx
mov esi, 0x54fb24
push esi
lea eax, [ebp - 0x720]
xor ecx, ecx
call fcn.004ce974
test eax, eax
pop ecx
je 0x40381a
push eax
mov ecx, 0x100
lea eax, [ebp - 0x108]
call fcn.004ccc3f
pop ecx
push esi
lea eax, [ebp - 0x720]
xor ecx, ecx
call fcn.004ce974
test eax, eax
pop ecx
mov dword [ebp - 0x728], eax
je 0x40388b
push eax
lea eax, [ebp - 0x798]
push eax
call fcn.004fa269
mov esi, eax
lea edi, [ebp - 0x768]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push ecx
push ecx
mov esi, eax
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004f98b7
add esp, 0x10
test eax, eax
je 0x40388b
push str.0000_00_00
push dword [ebp - 0x728]
call fcn.004cd9f0
test eax, eax
pop ecx
pop ecx
je 0x40388b
mov dword [ebp - 0x744], 1
jmp 0x40388b
and dword [ebp - 0x73c], 0
mov esi, dword [ebp - 0x738]
and dword [ebp - 0x720], 0
push 0
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004f9794
add esp, 0x14
test eax, eax
je 0x4038d6
push 0
sub esp, 0x10
lea esi, [ebp - 0x788]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004f9794
add esp, 0x14
test eax, eax
jne 0x4038d6
mov dword [ebp - 0x720], 1
and dword [ebp - 0x728], 0
push 0
sub esp, 0x10
lea esi, [ebp - 0x758]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004f9794
add esp, 0x14
test eax, eax
je 0x40399a
push 0
sub esp, 0x10
lea esi, [ebp - 0x768]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004f9794
add esp, 0x14
test eax, eax
jne 0x403923
cmp dword [ebp - 0x744], eax
jne 0x40394d
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0x768]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
lea esi, [ebp - 0x758]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004f9a51
add esp, 0x20
test eax, eax
je 0x40399a
mov esi, dword [ebp - 0x738]
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
lea esi, [ebp - 0x758]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004f9ee0
push eax
call fcn.0053146e
add esp, 0x24
cmp eax, 0xa4cb800
jge 0x403990
mov esi, dword [ebp - 0x738]
lea edi, [ebp - 0x758]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x728], 1
mov eax, dword [ebp - 0x748]
cmp dword [ebp - 0x734], eax
jne 0x4039d7
cmp dword [ebp - 0x720], 0
jne 0x4039e0
cmp dword [ebp - 0x728], 0
jne 0x403a17
push dword [ebp - 0x724]
call fcn.0053061e
pop ecx
push dword [ebp - 0x714]
call fcn.0053061e
pop ecx
jmp 0x403385
cmp dword [ebp - 0x720], 0
je 0x403a0e
mov esi, dword [ebp - 0x738]
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004fa628
mov edi, dword [ebp - 0x724]
push eax
mov eax, dword [ebp - 0x718]
push str.__stBornOn_s
call fcn.004ce4a3
add esp, 0x18
cmp dword [ebp - 0x728], 0
je 0x403a45
sub esp, 0x10
lea esi, [ebp - 0x758]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004fa628
mov edi, dword [ebp - 0x724]
push eax
mov eax, dword [ebp - 0x718]
push str.__stTAMSiiBornOn_s
call fcn.004ce4a3
add esp, 0x18
lea edx, [ebp - 0x108]
call fcn.004ccc0d
test eax, eax
je 0x403ab3
lea esi, [ebx + 0x20a7]
mov edx, esi
call fcn.004ccc0d
test eax, eax
jne 0x403ab3
push esi
mov ecx, 0x100
lea eax, [ebp - 0x108]
call fcn.004ccc3f
pop ecx
push 0xff
call fcn.004d02f3
mov edi, dword [ebp - 0x724]
pop ecx
lea eax, [ebp - 0x108]
push eax
mov eax, dword [ebp - 0x718]
push str.__manname_s
call fcn.004ce4a3
lea eax, [ebp - 0x108]
push eax
push str.:0:FYI_PaulaConfigToSQL___has_set_the_manager_name:__s
call fcn.0042bd38
add esp, 0x10
call fcn.004fa229
cmp dword [ebp - 0x73c], 0
mov edi, dword [ebp - 0x724]
push eax
mov eax, dword [ebp - 0x718]
jle 0x403af4
push str.__stModified_s
call fcn.004ce4a3
push dword [ebp - 0x73c]
push edi
push str.UPDATE_installed_params__s_WHERE_installedid_d
push dword [ebp - 0x71c]
call fcn.00480b29
add esp, 0x18
jmp 0x403b28
push str.__stCreated_s
call fcn.004ce4a3
call fcn.004fa229
push eax
mov eax, dword [ebp - 0x718]
push str.__stModified_s
call fcn.004ce4a3
push edi
push str.INSERT_INTO_installed_params__s
push dword [ebp - 0x71c]
call fcn.00480b29
add esp, 0x1c
mov esi, eax
test esi, esi
je 0x403b82
push dword [ebp - 0x730]
push str.UPDATE_locations_SET_isInstalled1_WHERE_locationid_d
push dword [ebp - 0x71c]
call fcn.00480b29
add esp, 0xc
lea edx, [ebp - 0x310]
mov esi, eax
call fcn.004ccc0d
test eax, eax
je 0x403b82
lea edi, [ebx + 0x20da]
mov edx, edi
call fcn.004ccc0d
test eax, eax
jne 0x403b82
mov ebx, dword [ebp - 0x730]
push edi
mov edi, dword [ebp - 0x71c]
call fcn.00401e46
mov ebx, dword [ebp - 0x740]
pop ecx
push dword [ebp - 0x724]
call fcn.0053061e
pop ecx
push dword [ebp - 0x714]
call fcn.0053061e
pop ecx
push dword [ebp - 0x71c]
call fcn.0048073c
pop ecx
mov eax, ebx
call fcn.00449e7d
mov eax, esi
jmp 0x40316a