Function at 0x478050
Capabilities:
Get common file path
Get disk information
Get file size
Manipulate console buffer
Read .ini file
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x479d0b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x2000
call fcn.004131e0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
push ebp
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_CharToOemBuffW]
xor ebp, ebp
xor esi, esi
lea ebx, [ebx]
cmp esi, 0x2d1eb
jge 0x47809d
push ebp
push ebp
push ebp
call edi
cmp dword [0x80357c], 0x6fb
jne 0x4780ae
push ebp
push ebp
push ebp
call ebx
cmp esi, 0x1e9c87d0
jle 0x4780ca
cmp dword [esp + 0x14], 0xc0e614
je 0x4780ca
cmp dword [esp + 0x54], 0x9266fa8
jne 0x4780d5
inc esi
cmp esi, 0x7e5cd
jl 0x478090
jmp 0x4780f3
cmp dword [0x80357c], 0x28
jne 0x4780f3
push 0x404200
push 0x404228
push 0x404264
call dword [sym.imp.KERNEL32.dll_WriteProfileStringW]
cmp dword [0x80357c], 0xcf8
jne 0x47816e
push 0x4042dc
push ebp
call fcn.00407e42
push ebp
push ebp
call fcn.00417e0a
push 0x4042e8
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], ebp
mov byte [esp + 0x30], 0
call fcn.00407c50
add esp, 0x14
push eax
push 0x4042e8
lea ecx, [esp + 0x24]
call fcn.004061d0
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x74]
push ecx
mov dword [esp + 0x2024], ebp
call fcn.00405930
cmp dword [esp + 0x30], 0x10
jb 0x478168
mov edx, dword [esp + 0x1c]
push edx
call fcn.00407f0a
add esp, 4
push ebp
call fcn.004081e9
mov edi, dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileSize]
xor esi, esi
lea esp, [esp]
cmp esi, 0x408
jne 0x478193
mov eax, 0x5d1
add dword [0x80357c], eax
cmp dword [0x80357c], 0xca3
jne 0x4781c8
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasW]
xor eax, eax
lea edx, [esp + 0x18]
push edx
push eax
push eax
push 0x4042f8
push eax
mov dword [esp + 0x28], eax
call edi
push 0
push 0
call ebp
inc esi
cmp esi, 0x1518d4
jl 0x478180
mov ecx, dword [0x80357c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [0x8034e4], eax
mov eax, dword [0x80357c]
xor esi, esi
test eax, eax
je 0x4782a3
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessId]
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessShutdownParameters]
cmp eax, 0xfe
jne 0x478256
push 0
lea edx, [esp + 0x414]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0
call ebp
push 0
call ebx
push 0
push 0
call edi
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x4c]
push ecx
push 0x404310
call dword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsW]
call fcn.00477b20
mov eax, dword [0x80357c]
cmp eax, 0x29
jne 0x47829a
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
push 0
push 0
lea edx, [esp + 0x418]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasW]
push 0
push 0
call edi
mov eax, dword [0x80357c]
inc esi
cmp esi, eax
jb 0x478206
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov edi, 0x9682ab
mov edi, edi
cmp eax, 3
jne 0x4782c8
push 0
push 0
push 0
push 0
push 0
push 0
call esi
mov eax, dword [0x80357c]
dec edi
jne 0x4782b0
mov esi, dword [sym.imp.KERNEL32.dll_AddAtomW]
mov edi, dword [sym.imp.KERNEL32.dll_GetLargestConsoleWindowSize]
mov ebp, 0x25887
mov ebx, 0xabebc05c
mov dword [0x8034ec], ebx
cmp eax, 0x222
jne 0x47830e
push 0x404338
call esi
push 0
lea eax, [esp + 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0
call edi
mov eax, dword [0x80357c]
dec ebp
jne 0x4782e1
mov byte [0x47f830], 0
call fcn.00477a30
call fcn.00477e30
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFix]
mov ebx, dword [sym.imp.KERNEL32.dll_OpenWaitableTimerW]
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalFlags]
xor esi, esi
jmp 0x478340
cmp dword [0x80357c], 0xba
jne 0x478369
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
lea edx, [esp + 0x48]
push edx
call edi
push 0x40434c
push 0
push 0
call ebx
push 0
call ebp
push 0
call dword [sym.imp.KERNEL32.dll_LocalFlags]
cmp esi, 0x2f64
jne 0x478388
mov eax, 0
add dword [0x8034e4], eax
inc esi
cmp esi, 0x1605a
jl 0x478340
mov ecx, 0x6d
mov word [0x803586], cx
mov ecx, 0x6c
mov word [0x803594], cx
mov eax, 0x69
xor ecx, ecx
push 0x803580
mov dword [0x803590], 0x6c0064
mov dword [0x80358c], 0x2e0032
mov word [0x803584], ax
mov dword [0x803580], 0x73006d
mov word [0x803596], cx
mov dword [0x803588], 0x330067
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov eax, 0x73
mov ecx, 0x6d
mov word [0x803582], ax
mov word [0x803586], cx
xor ecx, ecx
cmp dword [0x80357c], 0xc30
mov edx, 0x33
mov eax, 0x67
mov word [0x80358a], dx
mov word [0x803596], cx
mov word [0x803588], ax
mov ecx, 0x69
mov edx, 0x6d
mov eax, 0x6c
mov dword [0x803590], 0x6c0064
mov word [0x803584], cx
mov word [0x803580], dx
mov word [0x803594], ax
mov dword [0x80358c], 0x2e0032
jne 0x47855c
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
call dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_TerminateThread]
lea eax, [esp + 0x1c0]
push eax
push 0x404364
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push 0
lea edx, [esp + 0x1014]
push edx
push 0x404378
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0
call dword [sym.imp.KERNEL32.dll_CreateActCtxA]
push 0
lea eax, [esp + 0x18]
push eax
push 0
lea ecx, [esp + 0xc1c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
push 0
lea edx, [esp + 0x414]
push edx
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x50]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateA]
push 0
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
push 0x4043a4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0
lea ecx, [esp + 0x1814]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VerLanguageNameW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetProcessAffinityMask]
lea edx, [esp + 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ActivateActCtx]
push 0x4043b0
call dword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointA]
mov ecx, dword [esp + 0x2014]
pop edi
xor eax, eax
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret