Function at 0x474430
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
mov eax, dword [0x59a240]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push edi
mov dword [ebp - 0x130], edi
mov dword [ebp - 0x124], esi
call fcn.0049f486
pop ecx
test eax, eax
jne 0x4744db
push esi
call fcn.0049f486
pop ecx
test eax, eax
jne 0x4744db
mov ecx, dword [ebp + 0x10]
mov edx, str.SaveStringListToArchive
test ecx, ecx
mov eax, str.SaveStringListToFile
push 0x25ca
cmovne eax, edx
mov edx, fcn.004a2f35
mov dword [ebp - 0x140], eax
mov eax, fcn.004a2b10
cmove eax, edx
mov edx, fcn.004a2547
mov dword [ebp - 0x13c], eax
mov eax, fcn.004a250b
cmove eax, edx
push str.E:UserskerryDocumentsVisual_Studio_2022ProjectsPAULA__TEMP_COPY_ParseSA12.c
mov dword [ebp - 0x134], eax
call fcn.004a169c
mov ebx, eax
push edi
mov edi, dword [ebp - 0x134]
push ebx
mov dword [ebp - 0x128], ebx
call edi
add esp, 0x10
test eax, eax
jg 0x4744ec
push ebx
call fcn.004a1882
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e3632
leave
ret
push esi
call fcn.0049f658
pop ecx
test eax, eax
je 0x474510
push esi
call fcn.00429152
pop ecx
test eax, eax
je 0x474510
mov dword [ebp - 0x118], 1
xor ebx, ebx
jmp 0x47452f
and dword [ebp - 0x118], 0
push 0x25d9
push str.E:UserskerryDocumentsVisual_Studio_2022ProjectsPAULA__TEMP_COPY_ParseSA12.c
call fcn.004a169c
mov ebx, eax
push esi
push ebx
call edi
add esp, 0x10
mov edi, dword [ebp - 0x128]
push edi
call fcn.004a29b5
push edi
call fcn.004a1abb
push dword [ebp - 0x130]
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x12c], 1
call fcn.004a33a6
mov eax, dword [ebp - 0x120]
add esp, 0xc
test eax, eax
jle 0x47482d
and dword [ebp - 0x138], 0
cmp dword [ebp - 0x118], 0
je 0x474760
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
push 0x104
push 0
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x114]
push eax
call fcn.004e4da0
mov edi, dword [ebp - 0x128]
add esp, 0xc
and dword [ebp - 0x118], 0
mov dword [ebp - 0x124], 5
push edi
call fcn.004a1a3b
mov dword [ebp - 0x11c], eax
pop ecx
test eax, eax
je 0x4745de
push 6
lea ecx, [ebp - 0x10]
push ecx
push eax
call fcn.004efcd0
add esp, 0xc
test eax, eax
je 0x474731
test ebx, ebx
je 0x47463c
lea eax, [ebp - 0x114]
push eax
call fcn.0049f486
pop ecx
test eax, eax
jne 0x47463c
push eax
push 1
lea eax, [ebp - 0x114]
push eax
push ebx
call dword [ebp - 0x13c]
add esp, 0x10
test eax, eax
jg 0x474633
push ebx
call fcn.004a1abb
push eax
lea eax, [ebp - 0x114]
push eax
push dword [ebp - 0x140]
push str.:5:MergeInvoiceRegister___FAILED:__s__s__FAILED:_Num_Lines_to_save__d.
call fcn.004255b9
add esp, 0x14
and dword [ebp - 0x12c], 0
push ebx
call fcn.004a1882
pop ecx
xor ebx, ebx
mov eax, dword [ebp - 0x11c]
test eax, eax
je 0x47482d
push 7
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.004a11a5
lea eax, [ebp - 0x114]
push eax
call fcn.004a01ca
lea eax, [ebp - 0x114]
push eax
call fcn.004ee800
add esp, 0x14
cmp eax, 6
je 0x4746bd
sub dword [ebp - 0x124], 1
js 0x4746ab
push dword [ebp - 0x11c]
push dword [ebp - 0x120]
push dword [ebp - 0x118]
push dword [ebp + 0x10]
push esi
push dword [ebp - 0x130]
push str.:5:MergeInvoiceRegister__s___s___d__EAP:_An_invalid_entry_was_found_at__d_of__d:___s_
call fcn.004255b9
add esp, 0x1c
lea eax, [ebp - 0x114]
push eax
call fcn.0049e2d6
pop ecx
jmp 0x474742
push 4
lea eax, [ebp - 0x114]
push 0x2d
push eax
call fcn.0049f318
push 0x104
lea eax, [ebp - 0x114]
push str._AllInv.r12
push eax
call fcn.004a10b8
lea eax, [ebp - 0x114]
push esi
push eax
call fcn.0049fcaa
push 7
push dword [ebp - 0x11c]
lea eax, [ebp - 0x10]
push eax
call fcn.004a11a5
add esp, 0x2c
test ebx, ebx
je 0x47470f
push ebx
call fcn.004a1882
pop ecx
push 0x261b
push str.E:UserskerryDocumentsVisual_Studio_2022ProjectsPAULA__TEMP_COPY_ParseSA12.c
call fcn.004a169c
mov ebx, eax
lea eax, [ebp - 0x114]
push eax
push ebx
call dword [ebp - 0x134]
add esp, 0x10
push 0x12
push dword [ebp - 0x11c]
push ebx
call fcn.004a12cf
add esp, 0xc
mov eax, dword [ebp - 0x118]
inc eax
mov dword [ebp - 0x118], eax
cmp eax, dword [ebp - 0x120]
jle 0x4745b6
jmp 0x47482d
mov esi, eax
push 0x12
push edi
call fcn.004a1a3b
pop ecx
push eax
push ebx
call fcn.004a12cf
add esp, 0xc
sub esi, 1
jne 0x474762
push 0xffffff46
call fcn.004c8f47
push eax
call fcn.004c7ea1
push ebx
mov esi, eax
call fcn.004a29b5
jmp 0x4747b5
push esi
push edi
call fcn.004a2795
pop ecx
push eax
call fcn.004c93c7
pop ecx
pop ecx
test eax, eax
je 0x4747d1
push 1
push 0xc8
push ebx
call fcn.004a331e
push ebx
call fcn.004a1a3b
mov edi, eax
lea eax, [ebp - 0x138]
push eax
push edi
call fcn.004a1dc4
add esp, 0x18
test eax, eax
jne 0x474794
push ebx
call fcn.004a1abb
push ebx
mov esi, eax
call fcn.004a349d
sub esi, eax
pop ecx
pop ecx
cmp esi, dword [ebp - 0x120]
jg 0x4747f2
push ebx
call fcn.004a29b5
pop ecx
mov esi, dword [ebp - 0x124]
push 0
push 1
push esi
push ebx
call dword [ebp - 0x13c]
add esp, 0x10
test eax, eax
jg 0x47482d
push ebx
call fcn.004a1abb
push eax
push esi
push dword [ebp - 0x140]
push str.:5:MergeInvoiceRegister___FAILED:__s__s__FAILED:_Num_Lines_to_save__d.
call fcn.004255b9
add esp, 0x14
and dword [ebp - 0x12c], 0
push 0x50c926
call fcn.004a33a6
push ebx
call fcn.004a1882
push dword [ebp - 0x128]
call fcn.004a1882
mov eax, dword [ebp - 0x12c]
add esp, 0xc
jmp 0x4744dd