Function at 0x4033d0
Capabilities:
Delete file
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x46c
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push esi
xor esi, esi
cmp dword [0x241d9a4], 0x594
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], eax
jne 0x40340c
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
mov eax, dword [0x432478]
mov dword [ebp - 0x24], eax
mov eax, dword [0x43247c]
mov dword [ebp - 0x2c], eax
push ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
call fcn.004033c9
mov eax, dword [0x432480]
mov ebx, dword [ebp - 8]
mov dword [ebp - 0x28], eax
mov eax, dword [0x432484]
add ebx, 0x23f
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0x20
mov dword [ebp - 8], 2
add dword [ebp - 8], 3
mov eax, dword [ebp - 0xc]
shl eax, 4
cmp dword [0x241d9a4], 0xc
mov dword [ebp - 4], eax
jne 0x4034aa
push esi
call dword [sym.imp.KERNEL32.dll_UnregisterWait]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
xor eax, eax
mov word [ebp - 0x14], ax
lea edi, [ebp - 0x12]
stosw word es:[edi], ax
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x14]
lea eax, [ebp - 0x46c]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterA]
lea eax, [ebp - 0x38]
push eax
push esi
lea eax, [ebp - 0x50]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov eax, dword [0x241d9a4]
cmp eax, 0xfa9
jne 0x4034c6
mov dword [0x241d9a0], 0xedeb2e40
cmp eax, 0x3eb
jne 0x4034d3
mov dword [0x23ff6c0], esi
mov edi, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
lea eax, [ebx + edi]
shr edi, cl
mov dword [ebp - 0x20], eax
mov dword [0x241d99c], 0xf4ea3dee
add edi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
xor dword [ebp - 4], eax
xor edi, dword [ebp - 4]
cmp dword [0x241d9a4], 0x213
jne 0x40350a
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
sub dword [ebp - 0x10], edi
cmp dword [0x241d9a4], 0xc
jne 0x403535
xor eax, eax
mov dword [ebp - 0x50], esi
lea edi, [ebp - 0x4c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x6c]
push eax
push 0x402e34
call dword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsA]
mov edi, dword [ebp - 0x10]
mov eax, edi
lea ecx, [ebp - 4]
call fcn.004033c3
mov eax, dword [ebp - 0x24]
add dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
lea eax, [ebx + edi]
xor dword [ebp - 4], eax
shr edi, cl
add edi, dword [ebp - 0x2c]
cmp dword [0x241d9a4], 0x121
jne 0x403572
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasW]
xor dword [ebp - 4], edi
mov eax, dword [ebp - 4]
sub dword [ebp - 0xc], eax
add ebx, 0x61c88647
dec dword [ebp - 0x18]
jne 0x403448
cmp dword [0x241d9a4], 0xa6d
mov eax, dword [ebp - 0xc]
mov edi, dword [ebp + 8]
mov dword [edi], eax
pop ebx
jne 0x4035ad
push esi
push esi
push 0x402e38
push esi
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesA]
mov eax, dword [ebp - 0x10]
mov dword [edi + 4], eax
pop edi
pop esi
leave
ret 4