Function at 0x403b57
Capabilities:
Get common file path
Get file attributes
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc38
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [eax]
mov eax, dword [eax + 4]
xor esi, esi
cmp dword [0x43ac98], 0x594
mov dword [ebp - 0x14], edi
mov dword [ebp - 8], eax
jne 0x403b90
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov eax, dword [0x42b738]
mov dword [ebp - 0x24], eax
mov eax, dword [0x42b73c]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
call fcn.00403b50
mov eax, dword [0x42b740]
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [0x42b744]
add ebx, 0x23f
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 0x20
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov eax, edi
shl eax, 4
cmp dword [0x43ac98], 0xc
mov dword [ebp - 4], eax
jne 0x403c35
lea eax, [ebp - 0x438]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
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 - 0x18], ax
lea edi, [ebp - 0x16]
stosw word es:[edi], ax
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x18]
lea eax, [ebp - 0xc38]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
lea eax, [ebp - 0x38]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
add dword [ebp - 4], eax
mov eax, dword [0x43ac98]
cmp eax, 0xfa9
jne 0x403c51
mov dword [0x43a234], 0xedeb2e40
cmp eax, 0x3eb
jne 0x403c5e
mov dword [0x439be0], esi
mov ecx, dword [ebp - 0xc]
mov edx, edi
shr edx, cl
lea eax, [ebx + edi]
mov dword [ebp - 0x10], eax
mov dword [0x43a230], 0xf4ea3dee
add edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x10]
xor dword [ebp - 4], eax
xor edx, dword [ebp - 4]
cmp dword [0x43ac98], 0x213
mov dword [ebp - 0x14], edx
jne 0x403c9b
push 0x4035e4
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov eax, dword [ebp - 0x14]
add dword [ebp - 8], 0x64
sub dword [ebp - 8], eax
sub dword [ebp - 8], 0x64
cmp dword [0x43ac98], 0xc
jne 0x403cc8
lea eax, [ebp - 0x14]
push eax
push esi
push esi
lea eax, [ebp - 0x34]
push eax
push esi
push esi
push esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_BackupWrite]
mov eax, dword [ebp - 8]
lea ecx, [ebp - 4]
call fcn.00403b4a
mov eax, dword [ebp - 0x24]
add dword [ebp - 4], eax
mov eax, dword [ebp - 8]
lea ecx, [ebx + eax]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0xc]
shr eax, cl
add eax, dword [ebp - 0x2c]
mov ecx, eax
mov eax, dword [ebp - 0x10]
xor dword [ebp - 4], eax
xor dword [ebp - 4], ecx
sub edi, dword [ebp - 4]
add ebx, 0x61c88647
dec dword [ebp - 0x1c]
mov dword [ebp - 0x14], edi
jne 0x403bcb
cmp dword [0x43ac98], 0xa6d
mov ebx, dword [ebp + 8]
mov dword [ebx], edi
jne 0x403d23
push esi
push esi
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
mov eax, dword [ebp - 8]
pop edi
pop esi
mov dword [ebx + 4], eax
pop ebx
leave
ret 4