Function at 0x479ed6
Capabilities:
Terminate process

Disassembly:
push 0x158
push 0x587af0
call fcn.004e3670
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x15c], ecx
xor eax, eax
mov dword [ebp - 0x144], eax
test ebx, ebx
je 0x47a3c2
test ecx, ecx
je 0x47a3c2
mov dword [ebp - 4], eax
mov esi, eax
mov dword [ebp - 0x144], esi
mov edi, eax
mov dword [ebp - 0x154], edi
cmp edi, dword [ebx + 4]
jge 0x479f6a
imul eax, edi, 0x90
mov dword [ebp - 0x14c], eax
push dword [eax + ebx + 0xc]
push ecx
call fcn.0042da72
pop ecx
pop ecx
mov edx, eax
mov dword [ebp - 0x168], edx
test edx, edx
jle 0x479f61
mov ecx, dword [ebp - 0x14c]
mov ax, word [ecx + ebx + 0x40]
mov word [ecx + ebx + 0x46], ax
mov word [ecx + ebx + 0x40], dx
inc esi
mov dword [ebp - 0x144], esi
inc edi
mov ecx, dword [ebp - 0x15c]
jmp 0x479f16
cmp dword [ebp + 0x10], 0
je 0x47a3a0
xor eax, eax
mov dword [ebp - 0x160], eax
mov dword [ebp - 0x148], eax
push 0x104
push eax
lea eax, [ebp - 0x140]
push eax
call fcn.004e4da0
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x3c]
rep stosd dword es:[edi], eax
push 0x116d
push str.E:UserskerryDocumentsVisual_Studio_2022ProjectsPAULA__TEMP_COPY_ParseSA12.c
call fcn.004a169c
mov esi, eax
mov dword [ebp - 0x148], esi
movzx eax, byte [ebx + 3]
push eax
movzx eax, byte [ebx + 2]
push eax
movzx eax, word [ebx]
push eax
push str._04d_02d_02d
push 0x20
lea eax, [ebp - 0x3c]
push eax
call fcn.004a0ddb
add esp, 0x2c
call fcn.0047d475
mov edi, str.s_inv.dat
push edi
test eax, eax
je 0x47a0cc
push str.ServerSync_
xor eax, eax
push eax
push eax
call fcn.0047cdb0
pop ecx
pop ecx
push eax
push 0x523780
push 0x104
lea eax, [ebp - 0x140]
push eax
call fcn.004a0ddb
push 0x1178
push str.E:UserskerryDocumentsVisual_Studio_2022ProjectsPAULA__TEMP_COPY_ParseSA12.c
push 0x10
call fcn.004625f2
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x140]
push eax
push esi
call fcn.004a1fb8
add esp, 0x3c
test eax, eax
jg 0x47a19e
push edi
lea eax, [ebp - 0x140]
push eax
call fcn.0046379e
push 0x117c
push str.E:UserskerryDocumentsVisual_Studio_2022ProjectsPAULA__TEMP_COPY_ParseSA12.c
push 0x10
call fcn.00460f18
xor edi, edi
push edi
push edi
push edi
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x140]
push eax
push esi
call fcn.004a1fb8
add esp, 0x2c
test eax, eax
jg 0x47a0bf
push edi
push edi
lea eax, [ebp - 0x140]
push eax
call fcn.0042aa40
add esp, 0xc
cmp eax, 0x400
jae 0x47a0b0
movzx eax, byte [ebx + 3]
push eax
movzx eax, byte [ebx + 2]
push eax
movzx eax, word [ebx]
push eax
push str.:5:SetCashierEmpNums___EAP:_The_global_invoice_archive_could_not_be_accessed_for__04d__02d__02d.
call fcn.00425c08
add esp, 0x10
push esi
call fcn.004a1882
mov esi, edi
mov dword [ebp - 0x148], edi
pop ecx
push 0x10
call fcn.0046733c
pop ecx
jmp 0x47a1a0
lea eax, [ebp - 0x140]
push eax
call fcn.0046379e
push 0x118a
push str.E:UserskerryDocumentsVisual_Studio_2022ProjectsPAULA__TEMP_COPY_ParseSA12.c
push 0x10
call fcn.00460f18
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x140]
push eax
push esi
call fcn.004a1fb8
add esp, 0x2c
test eax, eax
jg 0x47a197
push edi
push str.ServerSync_
xor edi, edi
push edi
push edi
call fcn.0047cdb0
pop ecx
pop ecx
push eax
push 0x523780
push 0x104
lea eax, [ebp - 0x140]
push eax
call fcn.004a0ddb
push edi
push edi
push edi
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x140]
push eax
push esi
call fcn.004a1fb8
add esp, 0x30
test eax, eax
jg 0x47a0bf
push edi
push edi
lea eax, [ebp - 0x140]
push eax
call fcn.0042aa40
add esp, 0xc
cmp eax, 0x400
jae 0x47a184
movzx eax, byte [ebx + 3]
push eax
movzx eax, byte [ebx + 2]
push eax
movzx eax, word [ebx]
push eax
push str.:5:SetCashierEmpNums___EAP:_The_global_invoice_archive_could_not_be_accessed_for__04d__02d__02d.
call fcn.00425c08
add esp, 0x10
push esi
call fcn.004a1882
mov esi, edi
mov dword [ebp - 0x148], esi
jmp 0x47a0be
xor edi, edi
jmp 0x47a0bf
xor edi, edi
test esi, esi
je 0x47a39a
mov dword [ebp - 0x150], edi
push esi
call fcn.004a29b5
push esi
call fcn.004a1abb
mov edi, eax
mov dword [ebp - 0x15c], edi
lea eax, [edi*2 + 0xa]
mov dword [ebp - 0x14c], eax
push 4
push eax
call fcn.004ee464
add esp, 0x10
mov ecx, eax
mov dword [ebp - 0x158], ecx
test ecx, ecx
jne 0x47a21a
push 4
push dword [ebp - 0x14c]
push str.:7:SetCashierEmpNums___FAILED:_calloc__d___d__FAILED:_out_of_memory_
call fcn.004255b9
push esi
call fcn.004a1882
add esp, 0x10
and dword [ebp - 0x148], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x144]
jmp 0x47a3c4
xor edx, edx
mov eax, edx
mov dword [ebp - 0x160], edx
cmp eax, edi
jge 0x47a2b8
push esi
call fcn.004a1a3b
lea ecx, [ebp - 0x150]
push ecx
push 1
mov esi, 0x511240
push esi
push eax
call fcn.0049fac9
mov edi, eax
push 9
call fcn.004ee48a
lea ecx, [ebp - 0x150]
push ecx
push eax
push esi
push dword [ebp - 0x150]
call fcn.0049fac9
mov esi, eax
push 5
call fcn.004ee48a
lea ecx, [ebp - 0x150]
push ecx
push eax
push 0x511240
push dword [ebp - 0x150]
call fcn.0049fac9
add esp, 0x3c
test eax, eax
cmovg esi, eax
mov eax, dword [ebp - 0x160]
mov ecx, dword [ebp - 0x158]
mov dword [ecx + eax*8], edi
mov dword [ecx + eax*8 + 4], esi
inc eax
mov dword [ebp - 0x160], eax
mov esi, dword [ebp - 0x148]
mov edi, dword [ebp - 0x15c]
jmp 0x47a224
push 0
push edi
push ecx
call fcn.00459603
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x154], eax
mov edi, dword [ebp - 0x144]
cmp eax, dword [ebx + 4]
jge 0x47a37f
imul ecx, eax, 0x90
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x154], eax
push dword [ecx + ebx + 0xc]
push dword [ebp - 0x15c]
push dword [ebp - 0x158]
call fcn.004586f5
add esp, 0xc
mov ecx, eax
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x14c], ecx
test ecx, ecx
js 0x47a32d
mov eax, dword [ebp - 0x158]
mov ecx, dword [eax + ecx*8 + 4]
mov dword [ebp - 0x14c], ecx
mov dword [ebp - 0x168], ecx
mov edx, dword [ebp - 0x164]
movzx eax, word [edx + ebx + 0x40]
mov dword [ebp - 0x164], eax
cwde
cmp dword [ebp - 0x14c], eax
je 0x47a36d
mov eax, ecx
test eax, eax
jle 0x47a36d
xor eax, eax
cmp word [edx + ebx + 0x46], ax
jne 0x47a368
mov eax, dword [ebp - 0x164]
mov word [edx + ebx + 0x46], ax
inc edi
mov dword [ebp - 0x144], edi
mov word [edx + ebx + 0x40], cx
mov eax, dword [ebp - 0x154]
inc eax
mov dword [ebp - 0x154], eax
jmp 0x47a2d2
push dword [ebp - 0x158]
call fcn.004ee46f
push esi
call fcn.004a1882
pop ecx
pop ecx
xor eax, eax
mov dword [ebp - 0x148], eax
mov esi, dword [ebp - 0x144]
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x47a3c4
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret