Function at 0x40ecb6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
mov eax, dword [0x492840]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 6
pop ecx
xor eax, eax
mov ebx, dword [ebp + 0xc]
lea edi, [ebp - 0x20]
mov esi, dword [ebp + 8]
rep stosd dword es:[edi], eax
push 0x104
mov dword [ebp - 0x134], ebx
stosb byte es:[edi], al
lea eax, [ebp - 0x124]
xor edi, edi
push edi
push eax
call fcn.0043dc10
push ebx
mov dword [ebp - 0x12c], edi
call fcn.0042da83
add esp, 0x10
test eax, eax
jne 0x40f311
test esi, esi
je 0x40f311
cmp dword [esi + 0x90], edi
je 0x40ed31
cmp dword [esi + 0x8c], edi
jle 0x40ed31
push str.:5:LoadSales___has_detected_a_potential_memory_leak:_Extended_emp_sales_data_has_not_been_freed_
call fcn.0040953d
pop ecx
push 0x300c
push edi
push esi
call fcn.0043dc10
push 0x104
lea eax, [ebp - 0x124]
push ebx
push eax
call fcn.0042ee2a
lea eax, [ebp - 0x124]
push eax
call fcn.0042e37d
lea eax, [ebp - 0x124]
push 0x4611ec
push eax
call fcn.0042ecc9
add esp, 0x24
test eax, eax
jne 0x40eed5
push 0x19
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x20]
push edi
push eax
call fcn.0041b8c1
lea eax, [ebp - 0x20]
mov dword [ebp - 0x140], 1
push eax
mov dword [ebp - 0x13c], edi
call fcn.0042da83
add esp, 0x20
test eax, eax
jne 0x40ede0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x140], 1
push eax
lea eax, [ebp - 0x124]
xor edi, edi
push eax
mov dword [ebp - 0x13c], edi
call fcn.0042ecfe
pop ecx
pop ecx
test eax, eax
je 0x40ede0
xor eax, eax
inc eax
mov edi, eax
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x13c], edi
call fcn.00447349
push eax
push 0
push 0
call fcn.004252b8
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x124]
push 0x4678f0
push eax
call fcn.00403b2c
add esp, 0x10
test edi, edi
je 0x40ee24
cmp dword [ebp + 0x10], 0
je 0x40ee24
push 0x288
push str.C:UsersOfficeDocumentsVisual_StudioHoodSoftUpdateGetSalesSa7.c
push 0x40
call fcn.0041c3d2
add esp, 0xc
call fcn.00438ea7
push 0
mov edi, eax
lea eax, [ebp - 0x124]
push 0
push eax
push ebx
call fcn.0040a895
add esp, 0x10
test eax, eax
jne 0x40eebc
push 0x4e20
push ebx
call fcn.0040bd51
pop ecx
pop ecx
test eax, eax
jne 0x40ee76
cmp dword [ebp - 0x13c], eax
je 0x40f311
cmp dword [ebp + 0x10], eax
je 0x40f311
push 0x40
call fcn.00421e68
pop ecx
jmp 0x40f311
call fcn.00438ea7
sub eax, edi
cmp eax, 0x1388
jae 0x40eea7
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
lea eax, [ebp - 0x124]
push eax
push ebx
call fcn.0040a895
add esp, 0x10
test eax, eax
jne 0x40eebc
lea eax, [ebp - 0x124]
push eax
push ebx
push str.:7:LoadSales___FAILED_to_CopyFileSafe___s_____s___0__
call fcn.0040953d
add esp, 0xc
cmp dword [ebp - 0x13c], 0
je 0x40eee1
cmp dword [ebp + 0x10], 0
je 0x40eee1
push 0x40
call fcn.00421e68
pop ecx
jmp 0x40eee1
mov dword [ebp - 0x140], edi
mov dword [ebp - 0x13c], edi
push 0x29e
push str.C:UsersOfficeDocumentsVisual_StudioHoodSoftUpdateGetSalesSa7.c
lea eax, [ebp - 0x124]
push 0x46051c
push eax
call fcn.0040e692
mov edi, eax
add esp, 0x10
test edi, edi
je 0x40f311
push edi
push 1
lea eax, [ebp - 0x12c]
push 4
push eax
call fcn.00441a37
add esp, 0x10
cmp eax, 1
jne 0x40f2ed
mov eax, dword [ebp - 0x12c]
test eax, eax
je 0x40f2ed
mov ecx, 0x300c
cmp eax, ecx
jbe 0x40ef57
push ecx
push eax
push str.:7:LoadSales___will_fail:_SALESPARAMS_has_decreased_in_size_from__d_to__d.
call fcn.0040953d
mov eax, 0x300c
add esp, 0xc
mov dword [ebp - 0x12c], eax
push edi
add eax, 0xfffffffc
lea ecx, [esi + 4]
push eax
push 1
push ecx
call fcn.00441a37
push dword [0x49d7a0]
and dword [esi + 0x90], 0
add eax, 4
mov dword [ebp - 0x128], eax
mov eax, dword [ebp - 0x12c]
mov dword [esi], eax
call fcn.00426cef
add esp, 0x14
cmp eax, 0x96
jle 0x40efad
push dword [0x49d7a0]
call fcn.00426cef
push eax
push str.:8:LoadSalesSub___has_detected_a_potential_memory_leak____d_units_
call fcn.0040953d
add esp, 0xc
and dword [ebp - 0x138], 0
mov eax, dword [esi + 0x8c]
test eax, eax
jle 0x40f0e5
cmp eax, 0x1f4
jle 0x40efd1
push eax
push str.:7:LoadSales___FAILED:_iNumIndividualEmps___d_is_corrupt_
jmp 0x40eff4
shl eax, 6
push eax
call fcn.0044772b
mov dword [esi + 0x90], eax
pop ecx
test eax, eax
jne 0x40f000
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.0040906e
pop ecx
pop ecx
jmp 0x40f0e5
xor ebx, ebx
mov dword [ebp - 0x138], 1
cmp dword [esi + 0x8c], ebx
jle 0x40f0df
and dword [ebp - 0x130], ebx
push edi
push 1
lea eax, [ebp - 0x12c]
push 4
push eax
call fcn.00441a37
add esp, 0x10
cmp eax, 1
jne 0x40f0cd
mov eax, dword [ebp - 0x12c]
test eax, eax
je 0x40f0bb
cmp eax, 0x40
ja 0x40f0bb
mov ecx, dword [ebp - 0x130]
add eax, 0xfffffffc
push edi
push 1
push eax
mov eax, dword [esi + 0x90]
add ecx, 4
add eax, ecx
push eax
call fcn.00441a37
mov edx, dword [ebp - 0x130]
add esp, 0x10
cmp eax, 1
mov eax, dword [esi + 0x90]
mov dword [edx + eax], 0x40
jne 0x40f0ad
mov eax, dword [ebp - 0x128]
add edx, 0x40
add eax, dword [ebp - 0x12c]
inc ebx
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x130], edx
cmp ebx, dword [esi + 0x8c]
jl 0x40f01e
jmp 0x40f0df
push ebx
push str.:7:LoadSales___FAILED:_fread___failed_to_load_emp_index__d.
call fcn.0040906e
pop ecx
jmp 0x40f0d7
push 0x40
push eax
push str.:7:LoadSales___FAILED:_The_EMPSALESPARAMS_dwSize__ld_is_invalid___Current_size_is__ld.
call fcn.0040906e
add esp, 0xc
jmp 0x40f0d8
push str.:7:LoadSales___FAILED:_fread___failed_to_load_the_EMPSALESPARAMS_dwSize.
call fcn.0040906e
pop ecx
and dword [ebp - 0x138], 0
mov ebx, dword [ebp - 0x134]
push edi
call fcn.0040e507
cmp dword [ebp - 0x140], 0
pop ecx
je 0x40f102
lea eax, [ebp - 0x124]
push eax
call fcn.0040c8d3
pop ecx
mov eax, dword [esi]
xor ecx, ecx
neg eax
xor edi, edi
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x128], ecx
jle 0x40f182
mov edx, esi
sub edx, eax
mov ebx, edx
mov edx, dword [ebp - 0x128]
cmp ecx, 4
jb 0x40f12e
cmp ecx, 8
jb 0x40f177
cmp ecx, 0x90
jb 0x40f13e
cmp ecx, 0x94
jb 0x40f177
lea edx, [eax + ecx]
test edx, edx
js 0x40f26c
cmp dword [ebp - 0x138], 0
je 0x40f171
mov eax, dword [esi + 0x8c]
shl eax, 6
cmp edx, eax
jge 0x40f16b
mov eax, dword [esi + 0x90]
movzx eax, byte [edx + eax]
add edi, eax
mov eax, dword [ebp - 0x130]
mov edx, dword [ebp - 0x128]
inc ecx
cmp ecx, edx
jl 0x40f124
mov ebx, dword [ebp - 0x134]
add edi, dword [ebp - 0x128]
and dword [esi + 0xc], 0
and dword [esi + 0x10], 0
and dword [esi + 0x20], 0
cmp dword [ebp - 0x138], 0
jne 0x40f1bc
and dword [esi + 0x8c], 0
mov eax, dword [esi + 0x90]
test eax, eax
je 0x40f1b5
push eax
call fcn.0044731f
pop ecx
and dword [esi + 0x90], 0
mov dword [esi], 0x300c
cmp edi, dword [esi + 4]
je 0x40f2b1
and dword [esi + 0x8c], 0
cmp dword [0x49d790], 0
mov eax, dword [esi + 0x90]
jne 0x40f275
test eax, eax
je 0x40f1f0
push eax
call fcn.0044731f
pop ecx
and dword [esi + 0x90], 0
xor edi, edi
cmp dword [ebp - 0x13c], edi
je 0x40f21d
cmp dword [ebp + 0x10], edi
jne 0x40f21d
push edi
push 0x40
call fcn.0041c23f
pop ecx
pop ecx
test eax, eax
je 0x40f21d
push 0x40
inc edi
call fcn.00421e68
pop ecx
push 0x36a
push str.C:UsersOfficeDocumentsVisual_StudioHoodSoftUpdateGetSalesSa7.c
push 0x40
call fcn.0041d933
add esp, 0xc
test edi, edi
je 0x40f249
push 0x36c
push str.C:UsersOfficeDocumentsVisual_StudioHoodSoftUpdateGetSalesSa7.c
push 0x40
call fcn.0041c3d2
add esp, 0xc
push dword [ebp + 0x10]
mov dword [0x49d790], 1
push ebx
push esi
call fcn.0040ecb6
add esp, 0xc
and dword [0x49d790], 0
jmp 0x40f313
movzx eax, byte [ebx + edx]
jmp 0x40f169
test eax, eax
je 0x40f280
push eax
call fcn.0044731f
pop ecx
mov al, byte [0x49d794]
and dword [esi + 0x90], 0
lea ecx, [eax + 1]
mov byte [0x49d794], cl
cmp al, 0xa
jae 0x40f311
push edi
push dword [esi + 4]
movzx eax, cl
push ebx
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.0040906e
add esp, 0x14
jmp 0x40f311
mov esi, dword [esi + 0x90]
test esi, esi
je 0x40f2e8
mov eax, dword [0x49d7a0]
test eax, eax
jne 0x40f2df
call fcn.00426b31
mov dword [0x49d7a0], eax
test eax, eax
jne 0x40f2df
push esi
push str.:6:RegisterIndividualEmpData__p__FAILED:_CreatePtrList___FAILED.
call fcn.0040906e
jmp 0x40f2e6
push esi
push eax
call fcn.00426e93
pop ecx
pop ecx
xor eax, eax
inc eax
jmp 0x40f313
push edi
call fcn.0040e507
push 0
lea eax, [ebp - 0x124]
push 0
push eax
call fcn.0040c98f
push eax
push str.:7:LoadSales___FAILED_to_read_the_size_of_the_sales_file.__GetFileSize_____ld.
call fcn.0040906e
add esp, 0x18
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043c5ec
leave
ret