Function at 0x42dc2d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
mov eax, dword [0x59a240]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
push 6
mov dword [ebp - 0x13c], eax
lea edi, [ebp - 0x20]
pop ecx
xor eax, eax
mov ebx, dword [ebp + 8]
rep stosd dword es:[edi], eax
push 0x104
xor esi, esi
push esi
stosb byte es:[edi], al
lea eax, [ebp - 0x124]
push eax
call fcn.004e4da0
mov edi, dword [ebp - 0x13c]
push edi
mov dword [ebp - 0x12c], esi
call fcn.0049f486
add esp, 0x10
test eax, eax
jne 0x42e296
test ebx, ebx
je 0x42e296
cmp dword [ebx + 0x90], esi
je 0x42dcae
cmp dword [ebx + 0x8c], esi
jle 0x42dcae
push str.:5:LoadSales___has_detected_a_potential_memory_leak:_Extended_emp_sales_data_has_not_been_freed_
call fcn.00425c08
pop ecx
push 0x300c
push esi
push ebx
call fcn.004e4da0
push 0x104
lea eax, [ebp - 0x124]
push edi
push eax
call fcn.004a11a5
lea eax, [ebp - 0x124]
push eax
call fcn.004a03e7
lea eax, [ebp - 0x124]
push 0x50aeb0
push eax
call fcn.004a0f20
add esp, 0x24
neg eax
sbb esi, esi
inc esi
call fcn.0047d25f
xor ecx, ecx
test eax, eax
cmove ecx, esi
xor eax, eax
mov dword [ebp - 0x140], ecx
mov esi, eax
mov dword [ebp - 0x138], esi
test ecx, ecx
je 0x42de48
push 0x19
push eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0045fe28
lea eax, [ebp - 0x20]
push eax
call fcn.0049f486
add esp, 0x20
test eax, eax
jne 0x42dd55
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x124]
push eax
call fcn.004a0f55
pop ecx
pop ecx
push 1
test eax, eax
pop ecx
cmovne esi, ecx
mov dword [ebp - 0x138], esi
call fcn.004ee499
push eax
push 0
push 0
call fcn.0047ced0
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x124]
push str._stemp_d.sls
push eax
call fcn.00404f28
add esp, 0x10
test esi, esi
je 0x42dd99
cmp dword [ebp + 0x10], 0
je 0x42dd99
push 0x286
push str.E:UserskerryDocumentsVisual_Studio_2022ProjectsPAULA__TEMP_COPY_GetSalesSa7.c
push 0x40
call fcn.00460f18
add esp, 0xc
call fcn.004ca9ca
push 0
mov esi, eax
lea eax, [ebp - 0x124]
push 0
push eax
push edi
call fcn.0042737d
add esp, 0x10
test eax, eax
jne 0x42de31
push 0x4e20
push edi
call fcn.0042921e
pop ecx
pop ecx
test eax, eax
jne 0x42ddeb
cmp dword [ebp - 0x138], eax
je 0x42e296
cmp dword [ebp + 0x10], eax
je 0x42e296
push 0x40
call fcn.0046733c
pop ecx
jmp 0x42e296
call fcn.004ca9ca
sub eax, esi
cmp eax, 0x1388
jae 0x42de1c
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
lea eax, [ebp - 0x124]
push eax
push edi
call fcn.0042737d
add esp, 0x10
test eax, eax
jne 0x42de31
lea eax, [ebp - 0x124]
push eax
push edi
push str.:7:LoadSales___FAILED_to_CopyFileSafe___s_____s___0__
call fcn.00425c08
add esp, 0xc
cmp dword [ebp - 0x138], 0
je 0x42de48
cmp dword [ebp + 0x10], 0
je 0x42de48
push 0x40
call fcn.0046733c
pop ecx
push 0x29c
push str.E:UserskerryDocumentsVisual_Studio_2022ProjectsPAULA__TEMP_COPY_GetSalesSa7.c
lea eax, [ebp - 0x124]
push 0x50965c
push eax
call fcn.0042d2de
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42e296
push esi
xor edi, edi
lea eax, [ebp - 0x12c]
inc edi
push edi
push 4
push eax
call fcn.004e8bc6
add esp, 0x10
cmp eax, edi
jne 0x42e272
mov eax, dword [ebp - 0x12c]
test eax, eax
je 0x42e272
mov ecx, 0x300c
cmp eax, ecx
jbe 0x42debf
push ecx
push eax
push str.:7:LoadSales___will_fail:_SALESPARAMS_has_decreased_in_size_from__d_to__d.
call fcn.00425c08
mov eax, 0x300c
add esp, 0xc
mov dword [ebp - 0x12c], eax
push esi
add eax, 0xfffffffc
lea ecx, [ebx + 4]
push eax
push edi
push ecx
call fcn.004e8bc6
mov ecx, dword [ebp - 0x12c]
add eax, 4
push dword [0x5a5840]
and dword [ebx + 0x90], 0
mov dword [ebp - 0x128], eax
mov dword [ebx], ecx
call fcn.0048e7fe
add esp, 0x14
cmp eax, 0x96
jle 0x42df30
call fcn.0047d25f
test eax, eax
je 0x42df17
push dword [0x5a5840]
call fcn.0048e7fe
pop ecx
cmp eax, 0x12c0
jle 0x42df30
push dword [0x5a5840]
call fcn.0048e7fe
push eax
push str.:8:LoadSalesSub___has_detected_a_potential_memory_leak____d_units_
call fcn.00425c08
add esp, 0xc
and dword [ebp - 0x134], 0
mov eax, dword [ebx + 0x8c]
test eax, eax
jle 0x42e069
cmp eax, 0x1f4
jle 0x42df5d
push eax
push str.:7:LoadSales___FAILED:_iNumIndividualEmps___d_is_corrupt_
call fcn.004255b9
pop ecx
jmp 0x42e068
shl eax, 6
push eax
call fcn.004ee88b
mov dword [ebx + 0x90], eax
pop ecx
test eax, eax
jne 0x42df82
mov eax, dword [ebx + 0x8c]
shl eax, 6
push eax
push str.:7:LoadSales___FAILED:_malloc__ld__FAILED_to_allocate_individual_employee_details_
jmp 0x42df52
mov dword [ebp - 0x134], edi
xor edi, edi
cmp dword [ebx + 0x8c], edi
jle 0x42e069
and dword [ebp - 0x130], edi
xor ecx, ecx
inc ecx
push esi
push ecx
lea eax, [ebp - 0x12c]
push 4
push eax
call fcn.004e8bc6
xor ecx, ecx
add esp, 0x10
inc ecx
cmp eax, ecx
jne 0x42e057
mov eax, dword [ebp - 0x12c]
test eax, eax
je 0x42e03e
cmp eax, 0x40
ja 0x42e03e
push esi
push ecx
mov ecx, dword [ebp - 0x130]
add eax, 0xfffffffc
push eax
mov eax, dword [ebx + 0x90]
add ecx, 4
add eax, ecx
push eax
call fcn.004e8bc6
mov ecx, dword [ebx + 0x90]
add esp, 0x10
mov edx, dword [ebp - 0x130]
mov dword [edx + ecx], 0x40
xor ecx, ecx
inc ecx
cmp eax, ecx
jne 0x42e030
mov eax, dword [ebp - 0x128]
add edx, 0x40
add eax, dword [ebp - 0x12c]
inc edi
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x130], edx
cmp edi, dword [ebx + 0x8c]
jl 0x42df9f
jmp 0x42e069
push edi
push str.:7:LoadSales___FAILED:_fread___failed_to_load_emp_index__d.
call fcn.004255b9
pop ecx
jmp 0x42e061
push 0x40
push eax
push str.:7:LoadSales___FAILED:_The_EMPSALESPARAMS_dwSize__ld_is_invalid___Current_size_is__ld.
call fcn.004255b9
add esp, 0xc
and dword [ebp - 0x134], 0
jmp 0x42e069
push str.:7:LoadSales___FAILED:_fread___failed_to_load_the_EMPSALESPARAMS_dwSize.
call fcn.004255b9
and dword [ebp - 0x134], 0
pop ecx
push esi
call fcn.0042d153
cmp dword [ebp - 0x140], 0
pop ecx
je 0x42e086
lea eax, [ebp - 0x124]
push eax
call fcn.00429e69
pop ecx
mov edi, dword [ebx]
xor esi, esi
mov eax, dword [ebp - 0x128]
neg edi
xor ecx, ecx
test eax, eax
jle 0x42e106
mov edx, dword [ebp - 0x128]
mov eax, ebx
sub eax, edi
mov dword [ebp - 0x130], eax
cmp ecx, 4
jb 0x42e0b2
cmp ecx, 8
jb 0x42e0fb
cmp ecx, 0x90
jb 0x42e0c2
cmp ecx, 0x94
jb 0x42e0fb
lea edx, [edi + ecx]
test edx, edx
js 0x42e1ec
cmp dword [ebp - 0x134], 0
je 0x42e0f5
mov eax, dword [ebx + 0x8c]
shl eax, 6
cmp edx, eax
jge 0x42e0ef
mov eax, dword [ebx + 0x90]
movzx eax, byte [edx + eax]
add esi, eax
mov eax, dword [ebp - 0x130]
mov edx, dword [ebp - 0x128]
inc ecx
cmp ecx, edx
jl 0x42e0a8
mov eax, dword [ebp - 0x128]
xor edi, edi
add esi, eax
mov dword [ebx + 0xc], edi
mov dword [ebx + 0x10], edi
mov dword [ebx + 0x20], edi
cmp dword [ebp - 0x134], edi
jne 0x42e138
mov eax, dword [ebx + 0x90]
mov dword [ebx + 0x8c], edi
test eax, eax
je 0x42e132
push eax
call fcn.004ee46f
pop ecx
mov dword [ebx + 0x90], edi
mov dword [ebx], 0x300c
cmp esi, dword [ebx + 4]
je 0x42e236
mov dword [ebx + 0x8c], edi
mov eax, dword [ebx + 0x90]
cmp dword [0x5a5830], edi
jne 0x42e1f5
test eax, eax
je 0x42e16a
push eax
call fcn.004ee46f
pop ecx
mov esi, edi
mov dword [ebx + 0x90], edi
cmp dword [ebp - 0x138], esi
je 0x42e19a
cmp dword [ebp + 0x10], esi
jne 0x42e19a
push edi
push 0x40
call fcn.00460bec
pop ecx
pop ecx
test eax, eax
je 0x42e19a
xor eax, eax
push 0x40
lea esi, [eax + 1]
call fcn.0046733c
pop ecx
push 0x368
push str.E:UserskerryDocumentsVisual_Studio_2022ProjectsPAULA__TEMP_COPY_GetSalesSa7.c
push 0x40
call fcn.004625f2
add esp, 0xc
test esi, esi
je 0x42e1c6
push 0x36a
push str.E:UserskerryDocumentsVisual_Studio_2022ProjectsPAULA__TEMP_COPY_GetSalesSa7.c
push 0x40
call fcn.00460f18
add esp, 0xc
push dword [ebp + 0x10]
xor eax, eax
inc eax
mov dword [0x5a5830], eax
mov eax, dword [ebp - 0x13c]
push eax
push ebx
call fcn.0042dc2d
add esp, 0xc
mov dword [0x5a5830], edi
jmp 0x42e298
movzx eax, byte [eax + edx]
jmp 0x42e0ed
test eax, eax
je 0x42e200
push eax
call fcn.004ee46f
pop ecx
mov al, byte [0x5a5834]
mov dword [ebx + 0x90], edi
lea ecx, [eax + 1]
mov byte [0x5a5834], cl
cmp al, 0xa
jae 0x42e296
mov eax, dword [ebp - 0x13c]
push esi
push dword [ebx + 4]
push eax
movzx eax, cl
push eax
push str.:5:__d_of_10:_LoadSales___s___FAILED:_The_checksum_failed:_Should_be__ld__but_was_calculated_to_be__ld.
call fcn.004255b9
add esp, 0x14
jmp 0x42e296
mov esi, dword [ebx + 0x90]
test esi, esi
je 0x42e26d
mov eax, dword [0x5a5840]
test eax, eax
jne 0x42e264
call fcn.0048e640
mov dword [0x5a5840], eax
test eax, eax
jne 0x42e264
push esi
push str.:6:RegisterIndividualEmpData__p__FAILED:_CreatePtrList___FAILED.
call fcn.004255b9
jmp 0x42e26b
push esi
push eax
call fcn.0048eaf2
pop ecx
pop ecx
xor eax, eax
inc eax
jmp 0x42e298
push esi
call fcn.0042d153
push 0
lea eax, [ebp - 0x124]
push 0
push eax
call fcn.0042aa40
push eax
push str.:7:LoadSales___FAILED_to_read_the_size_of_the_sales_file.__GetFileSize_____ld.
call fcn.004255b9
add esp, 0x18
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e3632
leave
ret