Function at 0x402ade
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4a4
mov eax, dword [0x5f2e68]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, 0x3ff
push ebx
xor edi, edi
lea eax, [ebp - 0x487]
mov esi, ecx
push edi
push eax
mov dword [ebp - 0x48c], esi
mov byte [ebp - 0x488], 0
call fcn.005306b0
add esp, 0xc
push 0x7f
lea eax, [ebp - 0x87]
push edi
push eax
mov byte [ebp - 0x88], 0
call fcn.005306b0
add esp, 0xc
mov edx, esi
call fcn.004ccc0d
test eax, eax
jne 0x402d77
push edi
sub esp, 0x10
lea esi, [ebp + 8]
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 0x402ba6
push 1
sub esp, 0x10
lea esi, [ebp + 8]
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.004fa0a6
add esp, 0x14
push eax
push dword [ebp - 0x48c]
push str.:4:SetFirstPaulaUseTimeSQL___s____s__EAP:_The_time_stamp_is_invalid.
call fcn.0042bd38
add esp, 0xc
push 0x69f
push str..AccountNotes.c
lea esi, [ebp - 0x4a0]
call fcn.004fb8cb
mov esi, eax
lea edi, [ebp + 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop ecx
pop ecx
movsd dword es:[edi], dword [esi]
push dword [ebp - 0x48c]
mov ecx, 0x80
lea eax, [ebp - 0x88]
call fcn.004ccc3f
pop ecx
call fcn.004cd7d5
xor edi, edi
push edi
push 1
push str.nuim808
push str.notes_user
push str.account_notes
push ecx
push edi
call fcn.004934c9
pop ecx
pop ecx
push eax
call fcn.0047f8a9
mov esi, eax
add esp, 0x18
cmp esi, edi
mov dword [ebp - 0x48c], esi
je 0x402d77
lea eax, [ebp - 0x488]
call fcn.004ccb8b
lea eax, [ebp - 0x88]
push eax
push str.SELECT_locationid_FROM_locations_WHERE_storeid_s_LIMIT_1
push esi
call fcn.00480b29
add esp, 0xc
test eax, eax
je 0x402c31
push 1
push 9
push ebx
lea eax, [ebp - 0x488]
push eax
push esi
call fcn.00480c24
add esp, 0x14
lea eax, [ebp - 0x488]
push eax
call fcn.0046881a
cmp eax, edi
pop ecx
mov dword [ebp - 0x490], eax
jne 0x402c87
push edi
sub esp, 0x10
lea esi, [ebp + 8]
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.004fa0a6
add esp, 0x14
push eax
lea eax, [ebp - 0x88]
push eax
push str.:2:SetFirstPaulaUseTimeSQL___s_____s___FAILED:_The_store_id_does_not_exist_in_the_database_
call fcn.0042b70b
add esp, 0xc
xor esi, esi
push dword [ebp - 0x48c]
call fcn.0048073c
pop ecx
mov eax, esi
jmp 0x402d79
push eax
push str.SELECT_stFirstDayUsed_FROM_installed_params_WHERE_locationid_d
push esi
call fcn.00480b29
add esp, 0xc
test eax, eax
je 0x402cdd
push 1
push 9
push ebx
lea eax, [ebp - 0x488]
push eax
push esi
call fcn.00480c24
add esp, 0x14
push eax
lea eax, [ebp - 0x4a0]
push eax
call fcn.004fa269
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.004f96f4
push eax
call fcn.004f9815
add esp, 0x14
test eax, eax
jne 0x402cdd
xor esi, esi
inc esi
jmp 0x402c74
push 1
sub esp, 0x10
lea esi, [ebp + 8]
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.004fa0a6
add esp, 0x14
push eax
lea eax, [ebp - 0x88]
push eax
push str.:0:FYI:SetFirstPaulaUseTimeSQL__:__s_has_started_using_PAULA:__s.
call fcn.0042bd38
add esp, 0xc
push dword [ebp - 0x490]
lea esi, [ebp + 8]
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
add esp, 0x10
push eax
push str.UPDATE_installed_params_SET_stFirstDayUsed_s_WHERE_locationid_d
push dword [ebp - 0x48c]
call fcn.00480b29
add esp, 0x10
test eax, eax
jne 0x402cd8
push dword [ebp - 0x48c]
call fcn.0048073c
pop ecx
push dword [ebp - 0x490]
lea esi, [ebp + 8]
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.004fa0a6
add esp, 0x14
push eax
lea eax, [ebp - 0x88]
push eax
push str.:9:SetFirstPaulaUseTimeSQL___s_____s___CRITICALLY_FAILED:_ExecuteODBCFormat_iLocationid_d__FAILED:_NOTE_that_flag_may_never_be_set.
call fcn.0042b70b
add esp, 0x10
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005317e7
leave
ret