Function at 0x461853
Capabilities:
Terminate process

Disassembly:
push 0x254
push 0x54efd0
call fcn.004c2160
mov ebx, dword [ebp + 0x10]
mov edi, 0x104
push edi
xor esi, esi
push esi
lea eax, [ebp - 0x224]
push eax
call fcn.004c37f0
push edi
push esi
lea eax, [ebp - 0x120]
push eax
call fcn.004c37f0
add esp, 0x18
mov edi, esi
mov dword [ebp - 0x248], edi
mov dword [ebp - 4], esi
call fcn.004b729a
test ebx, ebx
je 0x4618b1
mov dword [ebp - 0x260], ebx
mov dword [ebp - 0x258], 1
jmp 0x4618cc
call fcn.0045eb30
mov ebx, eax
mov dword [ebp - 0x260], ebx
test ebx, ebx
je 0x461e2d
mov dword [ebp - 0x258], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov dword [ebx + 0x10], eax
test eax, eax
jne 0x4618ee
push str._GetLastError_
push str.:8:LoadGlobalInvArchive___encountered_an_impossible_exception:_GetCurrentThread___returned_NULL:__s
call fcn.0041c80a
pop ecx
pop ecx
or dword [ebx + 0x10], 0xffffffff
mov eax, dword [ebp + 8]
mov dword [ebx + 0x14], eax
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x24c], esi
mov dword [ebx + 0x18], esi
push str.s_inv.dat
lea eax, [ebp - 0x224]
push eax
call fcn.00451c70
pop ecx
pop ecx
push str.s_inv.dat
push str.ServerSync_
push 0
push 0
call fcn.0046a855
pop ecx
pop ecx
push eax
push 0x4faf68
push 0x104
lea eax, [ebp - 0x120]
push eax
call fcn.0048d960
add esp, 0x18
call fcn.0046ab67
test eax, eax
je 0x461961
call fcn.0040d344
test eax, eax
push 1
pop eax
cmove esi, eax
mov dword [ebp - 0x24c], esi
mov dword [ebp + 0xc], esi
test esi, esi
je 0x461a9d
xor eax, eax
lea edi, [ebp - 0x234]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0x244]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x2326
push str.C:UsersOfficeDocumentsVisual_StudioPAULAParseSA12.c
lea eax, [ebp - 0x234]
push eax
call fcn.004b5bf0
xor edi, edi
push edi
push edi
lea eax, [ebp - 0x244]
push eax
push edi
push edi
lea eax, [ebp - 0x120]
push eax
call fcn.00420bdb
add esp, 0x24
test eax, eax
jne 0x4619fa
mov esi, edi
mov dword [ebp - 0x24c], esi
mov dword [ebp + 0xc], esi
call fcn.0040d344
test eax, eax
jne 0x461a97
lea eax, [ebp - 0x224]
push eax
call fcn.0041fc00
pop ecx
push eax
lea eax, [ebp - 0x120]
push eax
call fcn.0041fc00
pop ecx
push eax
push str.:4:LoadGlobalInvArchive___cannot_use_bQuick_because_the_local_archive_does_not_exist:_DoesFileExist___d__d
call fcn.0041cce9
jmp 0x461a94
mov ax, word [ebp - 0x23e]
cmp ax, word [ebp - 0x22e]
je 0x461a97
push edi
push 0x1388
lea eax, [ebp - 0x234]
push eax
push edi
push edi
lea eax, [ebp - 0x224]
push eax
call fcn.00420bdb
add esp, 0x18
mov ax, word [ebp - 0x23e]
cmp ax, word [ebp - 0x22e]
je 0x461a97
mov esi, edi
mov dword [ebp - 0x24c], esi
mov dword [ebp + 0xc], esi
call fcn.0040d344
test eax, eax
jne 0x461a97
push 1
sub esp, 0x10
lea esi, [ebp - 0x234]
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.004b639c
add esp, 0x14
push eax
push 1
sub esp, 0x10
lea esi, [ebp - 0x244]
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.004b639c
add esp, 0x14
push eax
push str.:4:LoadGlobalInvArchive___cannot_use_bQuick_because_the_local_archive_is_not_recent__s:_Global___s_
call fcn.0041cce9
mov esi, dword [ebp - 0x24c]
add esp, 0xc
mov edi, dword [ebp - 0x248]
push ebx
push dword [0x64b38c]
call fcn.0047c0cd
pop ecx
pop ecx
test eax, eax
jne 0x461aca
push 0x233a
push esi
push dword [ebp + 8]
push str.:5:LoadGlobalInvArchive__d__d__FAILED:_Someone_deleted_the_handle_while_loading:_Line_d
call fcn.0041c80a
add esp, 0x10
jmp 0x461e2d
cmp dword [ebx + 0xc], 0
je 0x461ae4
and dword [ebx + 0x10], 0
push 0x233a
push esi
push dword [ebp + 8]
push str.:5:LoadGlobalInvArchive__d__d__FAILED:_Someone_is_waiting_to_delete_the_handle:_Line_d
jmp 0x461abd
xor esi, esi
mov dword [ebp - 0x248], esi
cmp dword [ebp - 0x24c], esi
jne 0x461b47
push 0x233f
push str.C:UsersOfficeDocumentsVisual_StudioPAULAParseSA12.c
call fcn.0048e1bb
mov esi, eax
mov dword [ebp - 0x248], esi
push 0x2340
push str.C:UsersOfficeDocumentsVisual_StudioPAULAParseSA12.c
push 0x10
call fcn.0044f4b7
lea eax, [ebp - 0x224]
push eax
push esi
call fcn.0048e9c2
add esp, 0x1c
test eax, eax
jg 0x461b3f
push esi
call fcn.0048e3a1
pop ecx
xor esi, esi
mov dword [ebp - 0x248], esi
push 0x10
call fcn.004552b3
pop ecx
test esi, esi
jne 0x461bd6
push 0x234b
push str.C:UsersOfficeDocumentsVisual_StudioPAULAParseSA12.c
call fcn.0048e1bb
mov esi, eax
mov dword [ebp - 0x248], esi
lea eax, [ebp - 0x120]
push eax
push esi
call fcn.0048e9c2
add esp, 0x10
test eax, eax
jg 0x461bd6
xor edi, edi
push edi
push edi
lea eax, [ebp - 0x120]
push eax
call fcn.004209b8
add esp, 0xc
cmp eax, 0x400
jae 0x461b9f
push str.:5:LoadGlobalInvArchive___EAP:_The_invoice_archive_could_not_be_accessed.
call fcn.0041cce9
pop ecx
push esi
call fcn.0048e3a1
push ebx
push dword [0x64b38c]
call fcn.0047c0cd
add esp, 0xc
test eax, eax
je 0x461e2d
mov dword [ebx + 0x10], edi
cmp dword [ebp - 0x258], edi
jne 0x461e2d
push ebx
call fcn.0045ebdb
jmp 0x461e2c
push esi
call fcn.0048f3c8
push esi
call fcn.0048e54b
pop ecx
pop ecx
mov dword [ebp - 0x25c], eax
cmp dword [ebp + 8], 0
jle 0x461c7d
call fcn.004b59c8
mov dword [ebp - 0x254], eax
mov eax, dword [ebp - 0x25c]
dec eax
mov dword [ebp - 0x250], eax
test eax, eax
js 0x461c87
push eax
push esi
call fcn.0048e57d
push eax
call fcn.0048f1b9
mov esi, eax
push edi
push esi
call fcn.004b702a
add esp, 0x14
test eax, eax
jle 0x461c5c
push esi
push dword [ebp - 0x254]
call fcn.004b5d59
pop ecx
pop ecx
test eax, eax
jne 0x461c47
mov edi, esi
mov dword [ebp - 0x264], edi
mov eax, dword [ebp - 0x250]
dec eax
mov dword [ebp - 0x250], eax
mov esi, dword [ebp - 0x248]
jmp 0x461c0c
push eax
call fcn.004ccf1a
pop ecx
cmp eax, dword [ebp + 8]
jl 0x461c47
mov edi, dword [ebp - 0x250]
inc edi
mov dword [ebp - 0x250], edi
mov esi, dword [ebp - 0x248]
jmp 0x461c8d
xor edi, edi
mov dword [ebp - 0x250], edi
jmp 0x461c8d
mov edi, dword [ebp - 0x250]
push ebx
push dword [0x64b38c]
call fcn.0047c0cd
pop ecx
pop ecx
test eax, eax
jne 0x461cba
test esi, esi
je 0x461caa
push esi
call fcn.0048e3a1
pop ecx
push 0x2387
push dword [ebp - 0x24c]
jmp 0x461ab5
cmp dword [ebx + 0xc], 0
je 0x461cdf
and dword [ebx + 0x10], 0
test esi, esi
je 0x461ccf
push esi
call fcn.0048e3a1
pop ecx
push 0x2387
push dword [ebp - 0x24c]
jmp 0x461ada
mov eax, dword [ebp - 0x25c]
sub eax, edi
add eax, 0xa
mov dword [ebp - 0x254], eax
push 0x90
push eax
call fcn.004ccef4
pop ecx
pop ecx
mov dword [ebx + 4], eax
test eax, eax
jne 0x461d32
push 0x90
push dword [ebp - 0x254]
push str.:7:LoadGlobalInvArchive___FAILED:_calloc__d___d__FAILED:_out_of_memory_
call fcn.0041c80a
push esi
call fcn.0048e3a1
add esp, 0x10
and dword [ebx + 0x10], 0
cmp dword [ebp - 0x258], 0
jmp 0x461bc5
and dword [ebx], 0
xor eax, eax
cmp edi, dword [ebp - 0x25c]
jge 0x461ded
push edi
push esi
call fcn.0048e57d
pop ecx
pop ecx
mov dword [ebp - 0x254], eax
mov eax, edi
cdq
push 0x64
pop ecx
idiv ecx
test edx, edx
jne 0x461da4
push ebx
push dword [0x64b38c]
call fcn.0047c0cd
pop ecx
pop ecx
test eax, eax
jne 0x461d85
test esi, esi
je 0x461d7b
push esi
call fcn.0048e3a1
pop ecx
push 0x239b
jmp 0x461caf
cmp dword [ebx + 0xc], 0
je 0x461da4
and dword [ebx + 0x10], 0
test esi, esi
je 0x461d9a
push esi
call fcn.0048e3a1
pop ecx
push 0x239b
jmp 0x461cd4
push 9
imul eax, dword [ebx], 0x90
add eax, dword [ebx + 4]
push eax
push dword [ebp - 0x254]
call fcn.004691c4
add esp, 0xc
test eax, eax
jne 0x461ddc
push 0x90
push eax
imul eax, dword [ebx], 0x90
add eax, dword [ebx + 4]
push eax
call fcn.004c37f0
add esp, 0xc
dec dword [ebx]
mov eax, dword [ebx]
inc eax
mov dword [ebx], eax
inc edi
mov dword [ebp - 0x250], edi
jmp 0x461d37
push 0x90
push 0
imul eax, eax, 0x90
add eax, dword [ebx + 4]
push eax
call fcn.004c37f0
and dword [ebx + 0x10], 0
push esi
call fcn.0048e3a1
add esp, 0x10
mov dword [ebp - 4], 0xfffffffe
mov eax, ebx
jmp 0x461e36
pop ecx
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret