Function at 0x40288d
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc30
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [eax]
mov eax, dword [eax + 4]
push esi
xor esi, esi
cmp dword [0x2a9f420], 0x594
push edi
mov dword [ebp - 8], eax
jne 0x4028c3
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomA]
mov eax, dword [0x42b078]
mov dword [ebp - 0x28], eax
mov eax, dword [0x42b07c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
call fcn.00402886
mov eax, dword [0x42b080]
add dword [ebp - 0x10], 0x23f
mov dword [ebp - 0x20], eax
mov eax, dword [0x42b084]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x18], 0x20
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov eax, ebx
shl eax, 4
cmp dword [0x2a9f420], 0xc
mov dword [ebp - 4], eax
jne 0x402946
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetThreadIdealProcessor]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
xor eax, eax
mov word [ebp - 0x1c], ax
lea edi, [ebp - 0x1a]
stosw word es:[edi], ax
push dword [ebp - 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TerminateJobObject]
mov eax, dword [ebp - 0x20]
add dword [ebp - 4], eax
mov eax, dword [0x2a9f420]
cmp eax, 0xfa9
jne 0x402962
mov dword [0x2a9e9bc], 0xedeb2e40
cmp eax, 0x3eb
jne 0x40296f
mov dword [0x2a9e370], esi
mov ecx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov edx, ebx
shr edx, cl
lea eax, [edi + ebx]
mov dword [ebp - 0x14], eax
mov dword [0x2a9e9b8], 0xf4ea3dee
add edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
xor edx, dword [ebp - 4]
cmp dword [0x2a9f420], 0x213
mov dword [ebp - 0x14], edx
jne 0x4029b0
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CompareStringA]
mov eax, dword [ebp - 0x14]
add dword [ebp - 8], 0x64
sub dword [ebp - 8], eax
sub dword [ebp - 8], 0x64
cmp dword [0x2a9f420], 0xc
jne 0x4029ff
lea eax, [ebp - 0x14]
push eax
push esi
push esi
lea eax, [ebp - 0x30]
push eax
push esi
push esi
push esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_BackupRead]
push esi
lea eax, [ebp - 0xc30]
push eax
push 0x402630
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointW]
push esi
lea eax, [ebp - 0x430]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameA]
mov eax, dword [ebp - 8]
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
lea eax, [edi + ecx]
xor dword [ebp - 4], eax
mov edi, ecx
mov ecx, dword [ebp - 0xc]
shr edi, cl
add edi, dword [ebp - 0x24]
cmp dword [0x2a9f420], 0x121
jne 0x402a3a
push 0x4026ac
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
xor dword [ebp - 4], edi
sub ebx, dword [ebp - 4]
lea eax, [ebp - 0x10]
call fcn.0040287f
dec dword [ebp - 0x18]
jne 0x4028fc
cmp dword [0x2a9f420], 0xa6d
mov edi, dword [ebp + 8]
mov dword [edi], ebx
jne 0x402a6e
push esi
push 0x4026c0
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
mov eax, dword [ebp - 8]
mov dword [edi + 4], eax
pop edi
pop esi
pop ebx
leave
ret 4