Function at 0x498a8e
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x59a240]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, 0x104
lea eax, [ebp - 0x108]
push ebx
xor esi, esi
push esi
push eax
call fcn.004e4da0
push ebx
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004e4da0
lea eax, [ebp - 0x108]
push str.s_inv.dat
push eax
call fcn.0046379e
mov edi, str.s_inv_rem.dat
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0046379e
push str.InvBuffer.dat
push esi
call fcn.0047ced0
push eax
call fcn.0042916f
add esp, 0x34
test eax, eax
jne 0x498bd4
push 1
push esi
call fcn.00493fbf
pop ecx
pop ecx
test eax, eax
jne 0x498bb6
call fcn.004ca9ca
sub eax, dword [0x692a18]
cmp eax, 0x1b7740
jbe 0x498bb6
call fcn.004ca9ca
push esi
mov dword [0x692a18], eax
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0042aa40
push 0
mov esi, eax
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.0042aa40
add esp, 0x18
cmp eax, esi
jne 0x498b70
lea eax, [ebp - 0x20c]
push eax
call fcn.0042916f
pop ecx
test eax, eax
jne 0x498bb4
call fcn.0047d475
test eax, eax
jne 0x498b8d
push 0x4f8
push str.E:UserskerryDocumentsVisual_Studio_2022ProjectsPAULA__TEMP_COPY_ServerPAULA.c
push 0x10
call fcn.00460f18
add esp, 0xc
call fcn.00498ea7
mov esi, eax
call fcn.0047d475
test eax, eax
jne 0x498ba5
push 0x10
call fcn.0046733c
pop ecx
push esi
push edi
push str.:1:FYI:_UpdateInvoiceRegister___had_to_re_create__s:_bResult___d
call fcn.00425c08
add esp, 0xc
xor esi, esi
push 1
push esi
call fcn.00493fbf
pop ecx
pop ecx
test eax, eax
jne 0x498e98
push esi
call fcn.0047b867
pop ecx
jmp 0x498e98
push 0xea60
call fcn.0047c73c
pop ecx
test eax, eax
jne 0x498bee
push str.:4:UpdateInvoiceRegister___EAP:_WaitForLogInvoiceDataToFinish___FAILED_
call fcn.004255b9
pop ecx
push 0x50a
mov edi, str.E:UserskerryDocumentsVisual_Studio_2022ProjectsPAULA__TEMP_COPY_ServerPAULA.c
push edi
push 0x10
call fcn.00460f18
add esp, 0xc
test eax, eax
jne 0x498c13
push str.:3:UpdateInvoiceRegister___FAILED:_The_global_invoice_register_could_not_be_locked.
call fcn.004255b9
jmp 0x498bce
push 0x510
push edi
call fcn.004a169c
push 0x511
push edi
mov ebx, eax
call fcn.004a169c
mov edi, eax
lea eax, [ebp - 0x108]
push eax
push edi
call fcn.004a250b
add esp, 0x18
test eax, eax
jg 0x498cf2
push 0x104
lea eax, [ebp - 0x310]
push esi
push eax
call fcn.004e4da0
add esp, 0xc
push str.s_inv.dat
push str.ServerSync_
push esi
push esi
call fcn.0047cdb0
pop ecx
pop ecx
push eax
push 0x523780
lea eax, [ebp - 0x310]
push 0x104
push eax
call fcn.004a0ddb
push esi
lea eax, [ebp - 0x310]
push esi
push eax
call fcn.0042aa40
add esp, 0x24
cmp eax, 0x16
jbe 0x498cf2
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x108]
push eax
push edi
call fcn.004a250b
pop ecx
pop ecx
cmp eax, 2
jg 0x498cf2
lea eax, [ebp - 0x108]
push eax
call fcn.0042916f
push eax
lea eax, [ebp - 0x108]
push eax
push str.:8:UpdateInvoiceRegister___FAILED:_LoadStringListFromArchiveInvDesc___FAILED_to_access_the_TAMS_server.__DoesFileExist__s____d
call fcn.004255b9
push ebx
call fcn.004a1882
push edi
call fcn.004a1882
push 0x10
call fcn.0046733c
add esp, 0x1c
jmp 0x498e98
push str.InvBuffer.dat
push esi
call fcn.0047ced0
push eax
push ebx
call fcn.004a2547
add esp, 0x10
test eax, eax
jle 0x498d1f
push str.InvBuffer.dat
push esi
call fcn.0047ced0
push eax
call fcn.00429e69
add esp, 0xc
push ebx
call fcn.004a29b5
push ebx
call fcn.004a1abb
push str.InvBuffer.dat
push 0
mov esi, eax
call fcn.0047ced0
push eax
call fcn.004a33a6
add esp, 0x14
test esi, esi
jle 0x498d5d
push ebx
call fcn.004a1a3b
push 0x12
push eax
push edi
call fcn.004a12cf
add esp, 0x10
sub esi, 1
jne 0x498d46
push 0x50c926
call fcn.004a33a6
call fcn.0047d475
push edi
lea esi, [eax - 1]
neg esi
sbb esi, esi
and esi, 0x4268
add esi, 0x3a98
call fcn.004a1abb
pop ecx
pop ecx
cmp eax, esi
jle 0x498da4
call fcn.0047d475
dec eax
neg eax
push 2
sbb eax, eax
and eax, 0x4268
add eax, 0x3a98
pop ecx
jmp 0x498da8
xor eax, eax
xor ecx, ecx
push ecx
push eax
push edi
call fcn.004a331e
push 0
push 1
lea eax, [ebp - 0x108]
push eax
push edi
call fcn.004a2b10
add esp, 0x1c
test eax, eax
jg 0x498e5b
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call esi
push 0
push 1
lea eax, [ebp - 0x108]
push eax
push edi
call fcn.004a2b10
add esp, 0x10
test eax, eax
jg 0x498e5b
push 0x3e8
call esi
xor esi, esi
lea eax, [ebp - 0x108]
push esi
push 1
push eax
push edi
call fcn.004a2b10
add esp, 0x10
test eax, eax
jg 0x498e5b
push str.:8:UpdateInvoiceRegister___FAILED:_SaveStringListToArchive___FAILED_
call fcn.004255b9
mov dword [esp], str.InvBuffer.dat
push esi
call fcn.0047ced0
push eax
call fcn.0042916f
add esp, 0xc
test eax, eax
jne 0x498e50
push esi
push esi
push str.InvBuffer.dat
push esi
call fcn.0047ced0
pop ecx
pop ecx
push eax
push ebx
call fcn.004a2f35
add esp, 0x10
jmp 0x498e5b
push str.:8:UpdateInvoiceRegister__:_Data_loss_has_occurred_
call fcn.004255b9
pop ecx
call fcn.0047d475
test eax, eax
je 0x498e6c
push 0x10
call fcn.0046733c
pop ecx
call fcn.00498ea7
call fcn.0047d475
test eax, eax
jne 0x498e82
push 0x10
call fcn.0046733c
pop ecx
push ebx
call fcn.004a1882
push edi
call fcn.004a1882
push 1
call fcn.0047b867
add esp, 0xc
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e3632
leave
ret