Function at 0x485a00
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x55f900]
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.004c37f0
push ebx
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004c37f0
lea eax, [ebp - 0x108]
push str.s_inv.dat
push eax
call fcn.00451c70
mov edi, str.s_inv_rem.dat
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.00451c70
push str.InvBuffer.dat
push esi
call fcn.0046aa0e
push eax
call fcn.0041fc00
add esp, 0x34
test eax, eax
jne 0x485b46
push 1
push esi
call fcn.004812f1
pop ecx
pop ecx
test eax, eax
jne 0x485b28
call fcn.004b729a
sub eax, dword [0x6568a0]
cmp eax, 0x1b7740
jbe 0x485b28
call fcn.004b729a
push esi
mov dword [0x6568a0], eax
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004209b8
push 0
mov esi, eax
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.004209b8
add esp, 0x18
cmp eax, esi
jne 0x485ae2
lea eax, [ebp - 0x20c]
push eax
call fcn.0041fc00
pop ecx
test eax, eax
jne 0x485b26
call fcn.0046ab67
test eax, eax
jne 0x485aff
push 0x500
push str.C:UsersOfficeDocumentsVisual_StudioPAULAServerPAULA.c
push 0x10
call fcn.0044f4b7
add esp, 0xc
call fcn.00485e19
mov esi, eax
call fcn.0046ab67
test eax, eax
jne 0x485b17
push 0x10
call fcn.004552b3
pop ecx
push esi
push edi
push str.:1:FYI:_UpdateInvoiceRegister___had_to_re_create__s:_bResult___d
call fcn.0041cce9
add esp, 0xc
xor esi, esi
push 1
push esi
call fcn.004812f1
pop ecx
pop ecx
test eax, eax
jne 0x485e0a
push esi
call fcn.00469747
pop ecx
jmp 0x485e0a
push 0xea60
call fcn.0046a61c
pop ecx
test eax, eax
jne 0x485b60
push str.:4:UpdateInvoiceRegister___EAP:_WaitForLogInvoiceDataToFinish___FAILED_
call fcn.0041c80a
pop ecx
push 0x512
mov edi, str.C:UsersOfficeDocumentsVisual_StudioPAULAServerPAULA.c
push edi
push 0x10
call fcn.0044f4b7
add esp, 0xc
test eax, eax
jne 0x485b85
push str.:3:UpdateInvoiceRegister___FAILED:_The_global_invoice_register_could_not_be_locked.
call fcn.0041c80a
jmp 0x485b40
push 0x518
push edi
call fcn.0048e1bb
push 0x519
push edi
mov ebx, eax
call fcn.0048e1bb
mov edi, eax
lea eax, [ebp - 0x108]
push eax
push edi
call fcn.0048ef2f
add esp, 0x18
test eax, eax
jg 0x485c64
push 0x104
lea eax, [ebp - 0x310]
push esi
push eax
call fcn.004c37f0
add esp, 0xc
push str.s_inv.dat
push str.ServerSync_
push esi
push esi
call fcn.0046a855
pop ecx
pop ecx
push eax
push 0x4faf68
lea eax, [ebp - 0x310]
push 0x104
push eax
call fcn.0048d960
push esi
lea eax, [ebp - 0x310]
push esi
push eax
call fcn.004209b8
add esp, 0x24
cmp eax, 0x16
jbe 0x485c64
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x108]
push eax
push edi
call fcn.0048ef2f
pop ecx
pop ecx
cmp eax, 2
jg 0x485c64
lea eax, [ebp - 0x108]
push eax
call fcn.0041fc00
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.0041c80a
push ebx
call fcn.0048e3a1
push edi
call fcn.0048e3a1
push 0x10
call fcn.004552b3
add esp, 0x1c
jmp 0x485e0a
push str.InvBuffer.dat
push esi
call fcn.0046aa0e
push eax
push ebx
call fcn.0048ef6b
add esp, 0x10
test eax, eax
jle 0x485c91
push str.InvBuffer.dat
push esi
call fcn.0046aa0e
push eax
call fcn.004208fc
add esp, 0xc
push ebx
call fcn.0048f3c8
push ebx
call fcn.0048e54b
push str.InvBuffer.dat
push 0
mov esi, eax
call fcn.0046aa0e
push eax
call fcn.0048fdb9
add esp, 0x14
test esi, esi
jle 0x485ccf
push ebx
call fcn.0048e4cb
push 0x12
push eax
push edi
call fcn.0048de54
add esp, 0x10
sub esi, 1
jne 0x485cb8
push 0x4e9b8e
call fcn.0048fdb9
call fcn.0046ab67
push edi
lea esi, [eax - 1]
neg esi
sbb esi, esi
and esi, 0x4268
add esi, 0x3a98
call fcn.0048e54b
pop ecx
pop ecx
cmp eax, esi
jle 0x485d16
call fcn.0046ab67
dec eax
neg eax
push 2
sbb eax, eax
and eax, 0x4268
add eax, 0x3a98
pop ecx
jmp 0x485d1a
xor eax, eax
xor ecx, ecx
push ecx
push eax
push edi
call fcn.0048fd31
push 0
push 1
lea eax, [ebp - 0x108]
push eax
push edi
call fcn.0048f523
add esp, 0x1c
test eax, eax
jg 0x485dcd
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.0048f523
add esp, 0x10
test eax, eax
jg 0x485dcd
push 0x3e8
call esi
xor esi, esi
lea eax, [ebp - 0x108]
push esi
push 1
push eax
push edi
call fcn.0048f523
add esp, 0x10
test eax, eax
jg 0x485dcd
push str.:8:UpdateInvoiceRegister___FAILED:_SaveStringListToArchive___FAILED_
call fcn.0041c80a
mov dword [esp], str.InvBuffer.dat
push esi
call fcn.0046aa0e
push eax
call fcn.0041fc00
add esp, 0xc
test eax, eax
jne 0x485dc2
push esi
push esi
push str.InvBuffer.dat
push esi
call fcn.0046aa0e
pop ecx
pop ecx
push eax
push ebx
call fcn.0048f948
add esp, 0x10
jmp 0x485dcd
push str.:8:UpdateInvoiceRegister__:_Data_loss_has_occurred_
call fcn.0041c80a
pop ecx
call fcn.0046ab67
test eax, eax
je 0x485dde
push 0x10
call fcn.004552b3
pop ecx
call fcn.00485e19
call fcn.0046ab67
test eax, eax
jne 0x485df4
push 0x10
call fcn.004552b3
pop ecx
push ebx
call fcn.0048e3a1
push edi
call fcn.0048e3a1
push 1
call fcn.00469747
add esp, 0xc
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c2120
leave
ret