Function at 0x42cd00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
mov eax, dword [0x581900]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x124]
push esi
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
push edi
push 0x104
push 0
push eax
mov dword [ebp - 0x13c], ebx
movups xmmword [ebp - 0x20], xmm0
mov byte [ebp - 8], 0
movq qword [ebp - 0x10], xmm0
call fcn.004e69c0
push ebx
mov dword [ebp - 0x12c], 0
call fcn.004a73a0
add esp, 0x10
test eax, eax
jne 0x42d427
test esi, esi
je 0x42d427
cmp dword [esi + 0x90], eax
je 0x42cd85
cmp dword [esi + 0x8c], eax
jle 0x42cd85
push str.:5:LoadSales___has_detected_a_potential_memory_leak:_Extended_emp_sales_data_has_not_been_freed_
call fcn.00424fd0
add esp, 4
push 0x300c
push 0
push esi
call fcn.004e69c0
push 0x104
lea eax, [ebp - 0x124]
push ebx
push eax
call fcn.004a9a20
lea eax, [ebp - 0x124]
push eax
call fcn.004a87a0
lea eax, [ebp - 0x124]
push 0x50b2a4
push eax
call fcn.004a96a0
add esp, 0x24
test eax, eax
jne 0x42cf4e
xor ebx, ebx
lea eax, [ebp - 0x20]
push 0x19
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
mov dword [ebp - 0x140], ebx
call fcn.0045d9b0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x128], 1
push eax
call fcn.004a73a0
add esp, 0x20
test eax, eax
jne 0x42ce36
lea eax, [ebp - 0x20]
mov dword [ebp - 0x128], 1
push eax
lea eax, [ebp - 0x124]
mov dword [ebp - 0x140], ebx
push eax
call fcn.004a96e0
add esp, 8
test eax, eax
je 0x42ce36
mov ebx, 1
mov dword [ebp - 0x140], ebx
mov dword [ebp - 0x128], ebx
call fcn.004eeaba
push eax
push 0
push 0
call fcn.0047dbc0
add esp, 8
push eax
lea eax, [ebp - 0x124]
push str._stemp_d.sls
push eax
call fcn.00404200
add esp, 0x10
test ebx, ebx
je 0x42ce7b
cmp dword [ebp + 0x10], 0
je 0x42ce7b
push 0x286
push str.C:UsersOfficeDocumentsVisual_StudioPAULAGetSalesSa7.c
push 0x40
call fcn.0045ec30
add esp, 0xc
call fcn.004d9850
push 0
mov edi, eax
lea eax, [ebp - 0x124]
push 0
push eax
push dword [ebp - 0x13c]
call fcn.00426810
add esp, 0x10
test eax, eax
jne 0x42cf38
push 0x4e20
push dword [ebp - 0x13c]
call fcn.00428ae0
add esp, 8
test eax, eax
jne 0x42cee8
test ebx, ebx
je 0x42d427
cmp dword [ebp + 0x10], eax
je 0x42d427
push 0x40
call fcn.004656c0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e50dc
mov esp, ebp
pop ebp
ret
call fcn.004d9850
sub eax, edi
cmp eax, 0x1388
jae 0x42cf1e
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
lea eax, [ebp - 0x124]
push eax
push dword [ebp - 0x13c]
call fcn.00426810
add esp, 0x10
test eax, eax
jne 0x42cf38
lea eax, [ebp - 0x124]
push eax
push dword [ebp - 0x13c]
push str.:7:LoadSales___FAILED_to_CopyFileSafe___s_____s___0__
call fcn.00424fd0
add esp, 0xc
test ebx, ebx
je 0x42cf62
cmp dword [ebp + 0x10], 0
je 0x42cf62
push 0x40
call fcn.004656c0
add esp, 4
jmp 0x42cf62
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x140], 0
push 0x29c
push str.C:UsersOfficeDocumentsVisual_StudioPAULAGetSalesSa7.c
lea eax, [ebp - 0x124]
push 0x50a5d0
push eax
call fcn.0042c170
add esp, 0x10
mov dword [ebp - 0x130], eax
test eax, eax
je 0x42d427
push eax
push 1
lea eax, [ebp - 0x12c]
push 4
push eax
call fcn.004e91b7
add esp, 0x10
cmp eax, 1
jne 0x42d3fe
mov eax, dword [ebp - 0x12c]
test eax, eax
je 0x42d3fe
cmp eax, 0x300c
jbe 0x42cfde
push 0x300c
push eax
push str.:7:LoadSales___will_fail:_SALESPARAMS_has_decreased_in_size_from__d_to__d.
call fcn.00424fd0
mov eax, 0x300c
add esp, 0xc
mov dword [ebp - 0x12c], eax
push dword [ebp - 0x130]
add eax, 0xfffffffc
lea ecx, [esi + 4]
push eax
push 1
push ecx
call fcn.004e91b7
mov ecx, dword [ebp - 0x12c]
push dword [0x58c3d0]
mov dword [esi], ecx
lea ebx, [eax + 4]
mov dword [esi + 0x90], 0
mov dword [ebp - 0x134], ebx
call fcn.00491040
add esp, 0x14
cmp eax, 0x96
jle 0x42d03c
push dword [0x58c3d0]
call fcn.00491040
push eax
push str.:8:LoadSalesSub___has_detected_a_potential_memory_leak____d_units_
call fcn.00424fd0
add esp, 0xc
mov eax, dword [esi + 0x8c]
mov dword [ebp - 0x138], 0
test eax, eax
jle 0x42d186
cmp eax, 0x1f4
jle 0x42d06e
push eax
push str.:7:LoadSales___FAILED:_iNumIndividualEmps___d_is_corrupt_
call fcn.00424a90
add esp, 8
jmp 0x42d186
shl eax, 6
push eax
call fcn.004eec81
add esp, 4
mov dword [esi + 0x90], eax
test eax, eax
jne 0x42d0a0
mov eax, dword [esi + 0x8c]
shl eax, 6
push eax
push str.:7:LoadSales___FAILED:_malloc__ld__FAILED_to_allocate_individual_employee_details_
call fcn.00424a90
add esp, 8
jmp 0x42d186
xor edi, edi
mov dword [ebp - 0x138], 1
cmp dword [esi + 0x8c], edi
jle 0x42d186
xor ebx, ebx
nop word [eax + eax]
push dword [ebp - 0x130]
lea eax, [ebp - 0x12c]
push 1
push 4
push eax
call fcn.004e91b7
add esp, 0x10
cmp eax, 1
jne 0x42d169
mov eax, dword [ebp - 0x12c]
test eax, eax
je 0x42d157
cmp eax, 0x40
ja 0x42d157
push dword [ebp - 0x130]
add eax, 0xfffffffc
push 1
push eax
mov eax, dword [esi + 0x90]
add eax, 4
add eax, ebx
push eax
call fcn.004e91b7
mov ecx, dword [esi + 0x90]
add esp, 0x10
mov dword [ebx + ecx], 0x40
cmp eax, 1
jne 0x42d147
mov eax, dword [ebp - 0x134]
inc edi
add eax, dword [ebp - 0x12c]
add ebx, 0x40
mov dword [ebp - 0x134], eax
cmp edi, dword [esi + 0x8c]
jl 0x42d0c0
jmp 0x42d180
push edi
push str.:7:LoadSales___FAILED:_fread___failed_to_load_emp_index__d.
call fcn.00424a90
add esp, 8
jmp 0x42d176
push 0x40
push eax
push str.:7:LoadSales___FAILED:_The_EMPSALESPARAMS_dwSize__ld_is_invalid___Current_size_is__ld.
call fcn.00424a90
add esp, 0xc
jmp 0x42d176
push str.:7:LoadSales___FAILED:_fread___failed_to_load_the_EMPSALESPARAMS_dwSize.
call fcn.00424a90
add esp, 4
mov dword [ebp - 0x138], 0
mov ebx, dword [ebp - 0x134]
push dword [ebp - 0x130]
call fcn.0042bfc0
add esp, 4
cmp dword [ebp - 0x128], 0
je 0x42d1ac
lea eax, [ebp - 0x124]
push eax
call fcn.00429a50
add esp, 4
mov eax, dword [esi]
xor edi, edi
neg eax
xor ecx, ecx
mov dword [ebp - 0x128], eax
test ebx, ebx
jle 0x42d21e
mov edx, esi
sub edx, eax
mov dword [ebp - 0x130], edx
cmp ecx, 4
jb 0x42d1d2
cmp ecx, 8
jb 0x42d219
cmp ecx, 0x90
jb 0x42d1e2
cmp ecx, 0x94
jb 0x42d219
lea edx, [eax + ecx]
test edx, edx
js 0x42d207
cmp dword [ebp - 0x138], 0
je 0x42d219
mov eax, dword [esi + 0x8c]
shl eax, 6
cmp edx, eax
jge 0x42d213
mov eax, dword [esi + 0x90]
jmp 0x42d20d
mov eax, dword [ebp - 0x130]
movzx eax, byte [edx + eax]
add edi, eax
mov eax, dword [ebp - 0x128]
inc ecx
cmp ecx, ebx
jl 0x42d1c8
add edi, ebx
mov dword [esi + 0xc], 0
cmp dword [ebp - 0x138], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x20], 0
jne 0x42d265
mov eax, dword [esi + 0x90]
mov dword [esi + 0x8c], 0
test eax, eax
je 0x42d25b
push eax
call fcn.004eea9f
add esp, 4
mov dword [esi + 0x90], 0
mov dword [esi], 0x300c
cmp edi, dword [esi + 4]
je 0x42d399
mov dword [esi + 0x8c], 0
cmp dword [0x58c3c0], 0
mov eax, dword [esi + 0x90]
jne 0x42d33e
test eax, eax
je 0x42d29e
push eax
call fcn.004eea9f
add esp, 4
cmp dword [ebp - 0x140], 0
mov ebx, dword [ebp + 0x10]
mov dword [esi + 0x90], 0
je 0x42d2f5
test ebx, ebx
jne 0x42d2f5
push ebx
push 0x40
call fcn.0045e7d0
add esp, 8
test eax, eax
je 0x42d2f5
push 0x40
call fcn.004656c0
push 0x368
push str.C:UsersOfficeDocumentsVisual_StudioPAULAGetSalesSa7.c
push 0x40
call fcn.004606f0
push 0x36a
push str.C:UsersOfficeDocumentsVisual_StudioPAULAGetSalesSa7.c
push 0x40
call fcn.0045ec30
add esp, 0x1c
jmp 0x42d309
push 0x368
push str.C:UsersOfficeDocumentsVisual_StudioPAULAGetSalesSa7.c
push 0x40
call fcn.004606f0
add esp, 0xc
push ebx
push dword [ebp - 0x13c]
mov dword [0x58c3c0], 1
push esi
call fcn.0042cd00
add esp, 0xc
mov dword [0x58c3c0], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e50dc
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x42d34b
push eax
call fcn.004eea9f
add esp, 4
mov al, byte [0x58c3c4]
mov dword [esi + 0x90], 0
lea ecx, [eax + 1]
mov byte [0x58c3c4], cl
cmp al, 0xa
jae 0x42d427
push edi
push dword [esi + 4]
movzx eax, cl
push dword [ebp - 0x13c]
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.00424a90
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e50dc
mov esp, ebp
pop ebp
ret
mov esi, dword [esi + 0x90]
test esi, esi
je 0x42d3e8
mov eax, dword [0x58c3d0]
test eax, eax
jne 0x42d3de
call fcn.00490e40
mov dword [0x58c3d0], eax
test eax, eax
jne 0x42d3de
push esi
push str.:6:RegisterIndividualEmpData__p__FAILED:_CreatePtrList___FAILED.
call fcn.00424a90
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e50dc
mov esp, ebp
pop ebp
ret
push esi
push eax
call fcn.004913f0
add esp, 8
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e50dc
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x130]
call fcn.0042bfc0
push 0
lea eax, [ebp - 0x124]
push 0
push eax
call fcn.00429b90
push eax
push str.:7:LoadSales___FAILED_to_read_the_size_of_the_sales_file.__GetFileSize_____ld.
call fcn.00424a90
add esp, 0x18
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e50dc
mov esp, ebp
pop ebp
ret