Function at 0x4737fb
Capabilities:
Terminate process

Disassembly:
push 0x254
push 0x587b30
call fcn.004e3670
mov ebx, dword [ebp + 0x10]
mov edi, 0x104
push edi
xor esi, esi
push esi
lea eax, [ebp - 0x224]
push eax
call fcn.004e4da0
push edi
push esi
lea eax, [ebp - 0x120]
push eax
call fcn.004e4da0
add esp, 0x18
mov edi, esi
mov dword [ebp - 0x248], edi
mov dword [ebp - 4], esi
call fcn.004ca9ca
test ebx, ebx
je 0x473859
mov dword [ebp - 0x260], ebx
mov dword [ebp - 0x258], 1
jmp 0x473874
call fcn.00470a2a
mov ebx, eax
mov dword [ebp - 0x260], ebx
test ebx, ebx
je 0x473dd5
mov dword [ebp - 0x258], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov dword [ebx + 0x10], eax
test eax, eax
jne 0x473896
push str._GetLastError_
push str.:8:LoadGlobalInvArchive___encountered_an_impossible_exception:_GetCurrentThread___returned_NULL:__s
call fcn.004255b9
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.0046379e
pop ecx
pop ecx
push str.s_inv.dat
push str.ServerSync_
push 0
push 0
call fcn.0047cdb0
pop ecx
pop ecx
push eax
push 0x523780
push 0x104
lea eax, [ebp - 0x120]
push eax
call fcn.004a0ddb
add esp, 0x18
call fcn.0047d475
test eax, eax
je 0x473909
call fcn.0040ead4
test eax, eax
push 1
pop eax
cmove esi, eax
mov dword [ebp - 0x24c], esi
mov dword [ebp + 0xc], esi
test esi, esi
je 0x473a45
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 0x2308
push str.E:UserskerryDocumentsVisual_Studio_2022ProjectsPAULA__TEMP_COPY_ParseSA12.c
lea eax, [ebp - 0x234]
push eax
call fcn.004c9210
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.0042ac63
add esp, 0x24
test eax, eax
jne 0x4739a2
mov esi, edi
mov dword [ebp - 0x24c], esi
mov dword [ebp + 0xc], esi
call fcn.0040ead4
test eax, eax
jne 0x473a3f
lea eax, [ebp - 0x224]
push eax
call fcn.0042916f
pop ecx
push eax
lea eax, [ebp - 0x120]
push eax
call fcn.0042916f
pop ecx
push eax
push str.:4:LoadGlobalInvArchive___cannot_use_bQuick_because_the_local_archive_does_not_exist:_DoesFileExist___d__d
call fcn.00425c08
jmp 0x473a3c
mov ax, word [ebp - 0x23e]
cmp ax, word [ebp - 0x22e]
je 0x473a3f
push edi
push 0x1388
lea eax, [ebp - 0x234]
push eax
push edi
push edi
lea eax, [ebp - 0x224]
push eax
call fcn.0042ac63
add esp, 0x18
mov ax, word [ebp - 0x23e]
cmp ax, word [ebp - 0x22e]
je 0x473a3f
mov esi, edi
mov dword [ebp - 0x24c], esi
mov dword [ebp + 0xc], esi
call fcn.0040ead4
test eax, eax
jne 0x473a3f
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.004c9acc
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.004c9acc
add esp, 0x14
push eax
push str.:4:LoadGlobalInvArchive___cannot_use_bQuick_because_the_local_archive_is_not_recent__s:_Global___s_
call fcn.00425c08
mov esi, dword [ebp - 0x24c]
add esp, 0xc
mov edi, dword [ebp - 0x248]
push ebx
push dword [0x686d6c]
call fcn.0048ea43
pop ecx
pop ecx
test eax, eax
jne 0x473a72
push 0x231c
push esi
push dword [ebp + 8]
push str.:5:LoadGlobalInvArchive__d__d__FAILED:_Someone_deleted_the_handle_while_loading:_Line_d
call fcn.004255b9
add esp, 0x10
jmp 0x473dd5
cmp dword [ebx + 0xc], 0
je 0x473a8c
and dword [ebx + 0x10], 0
push 0x231c
push esi
push dword [ebp + 8]
push str.:5:LoadGlobalInvArchive__d__d__FAILED:_Someone_is_waiting_to_delete_the_handle:_Line_d
jmp 0x473a65
xor esi, esi
mov dword [ebp - 0x248], esi
cmp dword [ebp - 0x24c], esi
jne 0x473aef
push 0x2321
push str.E:UserskerryDocumentsVisual_Studio_2022ProjectsPAULA__TEMP_COPY_ParseSA12.c
call fcn.004a169c
mov esi, eax
mov dword [ebp - 0x248], esi
push 0x2322
push str.E:UserskerryDocumentsVisual_Studio_2022ProjectsPAULA__TEMP_COPY_ParseSA12.c
push 0x10
call fcn.00460f18
lea eax, [ebp - 0x224]
push eax
push esi
call fcn.004a1f9e
add esp, 0x1c
test eax, eax
jg 0x473ae7
push esi
call fcn.004a1882
pop ecx
xor esi, esi
mov dword [ebp - 0x248], esi
push 0x10
call fcn.0046733c
pop ecx
test esi, esi
jne 0x473b7e
push 0x232d
push str.E:UserskerryDocumentsVisual_Studio_2022ProjectsPAULA__TEMP_COPY_ParseSA12.c
call fcn.004a169c
mov esi, eax
mov dword [ebp - 0x248], esi
lea eax, [ebp - 0x120]
push eax
push esi
call fcn.004a1f9e
add esp, 0x10
test eax, eax
jg 0x473b7e
xor edi, edi
push edi
push edi
lea eax, [ebp - 0x120]
push eax
call fcn.0042aa40
add esp, 0xc
cmp eax, 0x400
jae 0x473b47
push str.:5:LoadGlobalInvArchive___EAP:_The_invoice_archive_could_not_be_accessed.
call fcn.00425c08
pop ecx
push esi
call fcn.004a1882
push ebx
push dword [0x686d6c]
call fcn.0048ea43
add esp, 0xc
test eax, eax
je 0x473dd5
mov dword [ebx + 0x10], edi
cmp dword [ebp - 0x258], edi
jne 0x473dd5
push ebx
call fcn.00470ad5
jmp 0x473dd4
push esi
call fcn.004a29b5
push esi
call fcn.004a1abb
pop ecx
pop ecx
mov dword [ebp - 0x25c], eax
cmp dword [ebp + 8], 0
jle 0x473c25
call fcn.004c8fe8
mov dword [ebp - 0x254], eax
mov eax, dword [ebp - 0x25c]
dec eax
mov dword [ebp - 0x250], eax
test eax, eax
js 0x473c2f
push eax
push esi
call fcn.004a1aed
push eax
call fcn.004a2795
mov esi, eax
push edi
push esi
call fcn.004ca75a
add esp, 0x14
test eax, eax
jle 0x473c04
push esi
push dword [ebp - 0x254]
call fcn.004c93c7
pop ecx
pop ecx
test eax, eax
jne 0x473bef
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 0x473bb4
push eax
call fcn.004ee48a
pop ecx
cmp eax, dword [ebp + 8]
jl 0x473bef
mov edi, dword [ebp - 0x250]
inc edi
mov dword [ebp - 0x250], edi
mov esi, dword [ebp - 0x248]
jmp 0x473c35
xor edi, edi
mov dword [ebp - 0x250], edi
jmp 0x473c35
mov edi, dword [ebp - 0x250]
push ebx
push dword [0x686d6c]
call fcn.0048ea43
pop ecx
pop ecx
test eax, eax
jne 0x473c62
test esi, esi
je 0x473c52
push esi
call fcn.004a1882
pop ecx
push 0x2369
push dword [ebp - 0x24c]
jmp 0x473a5d
cmp dword [ebx + 0xc], 0
je 0x473c87
and dword [ebx + 0x10], 0
test esi, esi
je 0x473c77
push esi
call fcn.004a1882
pop ecx
push 0x2369
push dword [ebp - 0x24c]
jmp 0x473a82
mov eax, dword [ebp - 0x25c]
sub eax, edi
add eax, 0xa
mov dword [ebp - 0x254], eax
push 0x90
push eax
call fcn.004ee464
pop ecx
pop ecx
mov dword [ebx + 4], eax
test eax, eax
jne 0x473cda
push 0x90
push dword [ebp - 0x254]
push str.:7:LoadGlobalInvArchive___FAILED:_calloc__d___d__FAILED:_out_of_memory_
call fcn.004255b9
push esi
call fcn.004a1882
add esp, 0x10
and dword [ebx + 0x10], 0
cmp dword [ebp - 0x258], 0
jmp 0x473b6d
and dword [ebx], 0
xor eax, eax
cmp edi, dword [ebp - 0x25c]
jge 0x473d95
push edi
push esi
call fcn.004a1aed
pop ecx
pop ecx
mov dword [ebp - 0x254], eax
mov eax, edi
cdq
push 0x64
pop ecx
idiv ecx
test edx, edx
jne 0x473d4c
push ebx
push dword [0x686d6c]
call fcn.0048ea43
pop ecx
pop ecx
test eax, eax
jne 0x473d2d
test esi, esi
je 0x473d23
push esi
call fcn.004a1882
pop ecx
push 0x237d
jmp 0x473c57
cmp dword [ebx + 0xc], 0
je 0x473d4c
and dword [ebx + 0x10], 0
test esi, esi
je 0x473d42
push esi
call fcn.004a1882
pop ecx
push 0x237d
jmp 0x473c7c
push 9
imul eax, dword [ebx], 0x90
add eax, dword [ebx + 4]
push eax
push dword [ebp - 0x254]
call fcn.0047b2e4
add esp, 0xc
test eax, eax
jne 0x473d84
push 0x90
push eax
imul eax, dword [ebx], 0x90
add eax, dword [ebx + 4]
push eax
call fcn.004e4da0
add esp, 0xc
dec dword [ebx]
mov eax, dword [ebx]
inc eax
mov dword [ebx], eax
inc edi
mov dword [ebp - 0x250], edi
jmp 0x473cdf
push 0x90
push 0
imul eax, eax, 0x90
add eax, dword [ebx + 4]
push eax
call fcn.004e4da0
and dword [ebx + 0x10], 0
push esi
call fcn.004a1882
add esp, 0x10
mov dword [ebp - 4], 0xfffffffe
mov eax, ebx
jmp 0x473dde
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