Function at 0x4b24ce
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x15c
mov eax, dword [0x5345d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 6
mov esi, ecx
pop ecx
xor eax, eax
push 0x103
lea edi, [ebp - 0x3b]
push eax
mov byte [ebp - 0x3c], 0
rep stosd dword es:[edi], eax
mov byte [ebp - 0x148], al
lea eax, [ebp - 0x147]
push eax
mov dword [ebp - 0x150], esi
call fcn.004b53e0
add esp, 0xc
xor eax, eax
and dword [ebp - 0x14c], eax
and dword [ebp - 0x158], eax
push 6
pop ecx
lea edi, [ebp - 0x1f]
mov byte [ebp - 0x20], 0
mov edx, esi
rep stosd dword es:[edi], eax
call fcn.0047c3ca
test eax, eax
je 0x4b2540
xor eax, eax
jmp 0x4b28b5
test ebx, ebx
je 0x4b2539
push esi
mov ecx, 0x104
lea eax, [ebp - 0x148]
call fcn.0047c3fc
pop ecx
mov edx, eax
call fcn.0047cea7
mov eax, edx
push eax
mov esi, 0x4d3dec
call fcn.0047c50b
neg eax
sbb eax, eax
inc eax
xor edi, edi
cmp eax, edi
pop ecx
mov dword [ebp - 0x15c], eax
mov dword [ebp - 0x154], edi
je 0x4b25c2
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x3c]
push eax
push 0x19
pop eax
call fcn.004400a7
add esp, 0x18
lea edx, [ebp - 0x3c]
call fcn.0047c3ca
test eax, eax
jne 0x4b25c2
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x148]
push eax
call fcn.0047d058
test eax, eax
pop ecx
pop ecx
je 0x4b25c2
mov dword [ebp - 0x154], 1
push edi
mov esi, ebx
call fcn.004b375e
pop ecx
lea edx, [ebx + 0x6c]
call fcn.0047c3ca
test eax, eax
jne 0x4b25dc
cmp dword [ebx + 0x24], edi
je 0x4b25e7
push 0x19
lea ecx, [ebp - 0x20]
call fcn.00440582
pop ecx
cmp dword [ebx + 0x88], edi
je 0x4b25f4
cmp dword [ebx + 0x24], edi
je 0x4b2606
call fcn.004407ae
mov ecx, eax
call fcn.0044226e
mov dword [ebp - 0x14c], eax
cmp dword [ebx + 0x2f8c], edi
jle 0x4b2613
cmp dword [ebx + 0x24], edi
je 0x4b261c
call fcn.00440674
mov esi, eax
jmp 0x4b2622
mov esi, dword [ebp - 0x158]
lea edx, [ebp - 0x20]
call fcn.0047c3ca
test eax, eax
jne 0x4b263e
lea eax, [ebp - 0x20]
push eax
push 0x19
pop ecx
lea eax, [ebx + 0x6c]
call fcn.0047c3fc
pop ecx
mov eax, dword [ebp - 0x14c]
cmp eax, edi
je 0x4b264e
mov dword [ebx + 0x88], eax
cmp esi, edi
jle 0x4b2658
mov dword [ebx + 0x2f8c], esi
cmp dword [ebx + 0x90], 0
mov dword [ebx + 0x24], edi
mov edi, 0x300c
mov dword [ebx + 0x2f90], 1
mov dword [ebx], edi
jne 0x4b267c
and dword [ebx + 0x8c], 0
mov eax, dword [ebx + 0x8c]
mov esi, 0x1f4
cmp eax, esi
jle 0x4b26a0
push esi
push eax
push str.:8:SaveSales___FAILED:_The_max_number_of_employees_has_been_exceeded___ld__ld
call fcn.004178df
add esp, 0xc
mov dword [ebx + 0x8c], esi
cmp dword [ebp - 0x15c], 0
je 0x4b26cf
call fcn.004b586d
push eax
push 0
push 0
call fcn.0045e8df
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x148]
push str._stemp_d.sls
push eax
call fcn.004b532e
add esp, 0x10
xor edx, edx
xor eax, eax
cmp eax, 4
jb 0x4b26dd
cmp eax, 8
jb 0x4b26f1
cmp eax, 0x90
jl 0x4b26eb
cmp eax, 0x94
jl 0x4b26f1
movzx ecx, byte [ebx + eax]
add edx, ecx
inc eax
cmp eax, edi
jb 0x4b26d3
mov eax, dword [ebx + 0x8c]
add edx, edi
test eax, eax
jle 0x4b2731
shl eax, 6
xor ecx, ecx
test eax, eax
jle 0x4b272f
mov eax, dword [ebx + 0x8c]
shl eax, 6
mov dword [ebp - 0x158], eax
mov eax, dword [ebx + 0x90]
movzx esi, byte [eax + ecx]
add edx, esi
inc ecx
cmp ecx, dword [ebp - 0x158]
jl 0x4b2720
add edx, ecx
mov dword [ebx + 4], edx
push 0x10c
push str..GetSalesSa7.c
mov edx, 0x4d36e8
lea ecx, [ebp - 0x148]
call fcn.0041cea8
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x4b2539
push esi
push 1
push edi
push ebx
call fcn.004b43ca
add esp, 0x10
cmp eax, 1
je 0x4b27a6
mov ecx, esi
call fcn.0041d2f0
cmp dword [ebp - 0x15c], 0
je 0x4b2787
lea eax, [ebp - 0x148]
call fcn.0041aa09
push dword [ebp - 0x150]
lea eax, [ebp - 0x148]
push eax
push str.:6:SaveSales___FAILED_to_fwrite_to___s__for___s_
call fcn.004178df
add esp, 0xc
jmp 0x4b2539
mov eax, dword [ebx + 0x8c]
xor edi, edi
cmp eax, edi
jle 0x4b27f4
mov dword [ebp - 0x14c], edi
mov eax, dword [ebx + 0x90]
add eax, dword [ebp - 0x14c]
push esi
push 1
push 0x40
push eax
call fcn.004b43ca
add esp, 0x10
cmp eax, 1
je 0x4b27e4
push edi
push str.:7:SaveSales___FAILED:_fwrite___FAILED_to_write_cashier_index__d.
call fcn.004178df
pop ecx
pop ecx
add dword [ebp - 0x14c], 0x40
inc edi
cmp edi, dword [ebx + 0x8c]
jl 0x4b27b8
mov ecx, esi
call fcn.0041d2f0
xor edi, edi
cmp dword [ebp - 0x15c], edi
je 0x4b28b2
cmp dword [ebp - 0x154], edi
je 0x4b282a
cmp dword [ebp + 8], edi
je 0x4b282a
push 0x132
push str..GetSalesSa7.c
push 0x40
call fcn.004463fb
add esp, 0xc
call fcn.004a4ba8
mov edx, dword [ebp - 0x150]
push edi
lea ecx, [ebp - 0x148]
mov esi, eax
call fcn.0041aab4
cmp eax, edi
pop ecx
jne 0x4b2892
call fcn.004a4ba8
sub eax, esi
cmp eax, 0x1388
jae 0x4b2878
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp - 0x150]
push edi
lea ecx, [ebp - 0x148]
call fcn.0041aab4
cmp eax, edi
pop ecx
jne 0x4b2892
push dword [ebp - 0x150]
lea eax, [ebp - 0x148]
push eax
push str.:7:SaveSales___FAILED_to_CopyFileSafe___s_____s___0__
call fcn.00417db7
add esp, 0xc
cmp dword [ebp - 0x154], edi
je 0x4b28a7
cmp dword [ebp + 8], edi
je 0x4b28a7
push 0x40
call fcn.00447288
pop ecx
lea eax, [ebp - 0x148]
call fcn.0041aa09
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004b4c95
leave
ret