Function at 0x401040
Capabilities:
Delete file
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x46c
cmp dword [0x84a134], 0x594
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [eax]
mov eax, dword [eax + 4]
push edi
mov dword [ebp - 8], eax
jne 0x40106e
push str.Kelepa_jugogiviwalo_saja_lijuguj_nizirozopibiwep
call dword [sym.imp.KERNEL32.dll_AddAtomA]
mov ecx, dword [0x42c0b8]
mov edx, dword [0x42c0bc]
xor edi, edi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], edx
call fcn.00401030
mov eax, dword [0x42c0c0]
mov ecx, dword [0x42c0c4]
add dword [ebp - 0x18], 0x23f
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x30], ecx
lea ebx, [edi + 0x20]
jmp 0x4010b0
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov ecx, dword [0x84a134]
mov eax, esi
shl eax, 4
mov dword [ebp - 4], eax
cmp ecx, 0xc
jne 0x401136
push edi
lea edx, [ebp - 0x46c]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointA]
push edi
lea eax, [ebp - 0x34]
push eax
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
push 0x30
lea ecx, [ebp - 0x68]
push edi
push ecx
mov dword [ebp - 0x6c], edi
call fcn.00403670
mov edx, dword [ebp + 8]
add esp, 0xc
push edx
lea eax, [ebp - 0x6c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetCommConfig]
xor ecx, ecx
xor edx, edx
lea eax, [ebp - 0x38]
push eax
mov word [ebp - 0x1c], cx
mov word [ebp - 0x1a], dx
mov ecx, dword [ebp - 0x1c]
push ecx
push edi
push str.yasuzelavopoj
push edi
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterA]
mov eax, dword [ebp - 4]
mov ecx, dword [0x84a134]
add eax, dword [ebp - 0x20]
mov dword [ebp - 4], eax
cmp ecx, 0xfa9
jne 0x401150
mov dword [0x84a130], 0xedeb2e40
jmp 0x40116c
cmp ecx, 0x3eb
jne 0x40116c
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov dword [0x849ae4], edi
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
add edx, esi
mov dword [ebp - 0x14], edx
mov edx, esi
shr edx, cl
mov dword [0x84a12c], 0xf4ea3dee
add edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
xor edx, dword [ebp - 4]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
add dword [ebp - 8], 0x64
sub dword [ebp - 8], eax
sub dword [ebp - 8], 0x64
mov eax, dword [ebp - 8]
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov dword [ebp - 0x10], edi
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
nop
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov eax, edx
shr eax, cl
mov ecx, dword [ebp - 4]
add eax, dword [ebp - 0x24]
xor eax, dword [ebp - 0x14]
xor ecx, eax
lea eax, [ebp - 0x18]
mov dword [ebp - 4], ecx
sub esi, ecx
call fcn.00401020
sub ebx, 1
jne 0x4010b0
cmp dword [0x84a134], 0xa6d
mov ebx, dword [ebp + 8]
mov dword [ebx], esi
jne 0x40121b
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov ecx, dword [ebp - 8]
pop edi
pop esi
mov dword [ebx + 4], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
mov dword [ebx + 4], edx
pop ebx
mov esp, ebp
pop ebp
ret 4