Function at 0x403b65
Capabilities:
Get disk size
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
push ebx
push esi
push edi
xor esi, esi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp edi, 0x207142
jg 0x403a0f
inc edi
cmp edi, 0x67d12
jl 0x4039f1
cmp dword [0x283d638], 0x93
jne 0x403aae
push esi
call dword [sym.imp.KERNEL32.dll_AddAtomW]
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_ChangeMenuW]
push esi
call dword [sym.imp.USER32.dll_DrawMenuBar]
xor eax, eax
lock bts dword [eax], 0
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_ReplaceFileW]
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenJobObjectA]
push esi
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push esi
call fcn.00403f84
pop ecx
push esi
push esi
call fcn.004045ed
push esi
call fcn.004044e0
add esp, 0xc
push esi
push esi
call fcn.004046f9
push esi
push esi
call fcn.00403f50
push esi
push esi
call fcn.0040450f
add esp, 0x18
mov eax, dword [0x444c2c]
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
add dword [0x283d638], 0x1134b
push 0x403684
mov dword [0x283d63c], eax
call ebx
push dword [0x283d638]
mov dword [0x283c7f4], eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
lea ecx, [ebp - 8]
push ecx
push 0x40
push dword [0x283d638]
mov dword [0x283c28c], eax
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edi, 0x1692e
push esi
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_GetMenuBarInfo]
push esi
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.USER32.dll_CharUpperBuffA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
dec edi
jne 0x403afe
cmp dword [0x283d638], esi
jbe 0x403b7a
mov eax, dword [0x283d63c]
mov al, byte [eax + edi + 0x1134b]
mov ecx, dword [0x283c28c]
mov byte [ecx + edi], al
cmp dword [0x283d638], 0x490
jne 0x403b71
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleCP]
push esi
call ebx
lea eax, [ebp - 4]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
inc edi
cmp edi, dword [0x283d638]
jb 0x403b27
xor edi, edi
mov eax, dword [0x283d638]
add eax, edi
cmp eax, 0x8d
jne 0x403bbc
push esi
lea eax, [ebp - 0x808]
push eax
push esi
push 0x4036a0
push esi
push esi
call dword [sym.imp.KERNEL32.dll_LCMapStringW]
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_ChangeMenuA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenSemaphoreA]
inc edi
cmp edi, 0x38681
jl 0x403b7c
call fcn.00403925
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, 0x61
jne 0x403bea
mov dword [ebp - 4], esi
add dword [ebp - 4], 0x11709
mov eax, dword [ebp - 4]
add dword [0x283c28c], eax
inc edi
cmp edi, 0x674bd
jl 0x403bcc
push 0x7b
pop edi
cmp dword [0x283d638], 0x86
jne 0x403c32
push esi
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push esi
push esi
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenThread]
push esi
call dword [sym.imp.KERNEL32.dll_IsBadCodePtr]
dec edi
jne 0x403bf6
push 0x4036a8
call ebx
call dword [0x283c28c]
pop edi
pop esi
pop ebx
leave
ret