Function at 0x478d40
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
mov eax, 0x2108
call fcn.00413460
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_CharToOemBuffW]
xor esi, esi
cmp esi, 0x2d1eb
jge 0x478d76
push 0
push 0
push 0
call edi
cmp dword [0x806934], 0x6fb
jne 0x478d8a
push 0
push 0
push 0
call ebx
cmp esi, 0x1e9c87d0
jle 0x478da4
cmp ebp, 0xc0e614
je 0x478da4
cmp dword [esp + 0x4c], 0x9266fa8
jne 0x478daf
inc esi
cmp esi, 0x7e5cd
jl 0x478d66
jmp 0x478dcd
cmp dword [0x806934], 0x28
jne 0x478dcd
push 0x4040ec
push 0x404124
push 0x404130
call dword [sym.imp.KERNEL32.dll_WriteProfileStringW]
cmp dword [0x806934], 0xcf8
jne 0x478e03
push 0
push 0
push 0
push 0
call fcn.004076f2
push 0
push 0
call fcn.004186b4
add esp, 0x18
lea eax, [esp + 0x68]
push eax
call fcn.004057c0
push 0
call fcn.00407b5c
mov edi, dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileSize]
xor esi, esi
cmp esi, 0x408
jne 0x478e24
mov eax, 0x5d1
add dword [0x806934], eax
cmp dword [0x806934], 0xca3
jne 0x478e59
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasW]
xor ecx, ecx
lea eax, [esp + 0x18]
push eax
push ecx
push ecx
push 0x4041e0
push ecx
mov dword [esp + 0x28], ecx
call edi
push 0
push 0
call ebp
inc esi
cmp esi, 0x1518d4
jl 0x478e11
mov edx, dword [0x806934]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [0x80689c], eax
mov eax, dword [0x806934]
xor esi, esi
test eax, eax
je 0x478f48
mov ebp, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessId]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessShutdownParameters]
cmp eax, 0xfe
jne 0x478efb
push 0
lea eax, [esp + 0x91c]
push eax
call ebp
push 0
call ebx
xor ecx, ecx
lea eax, [esp + 0x18]
push eax
push ecx
push ecx
lea edx, [esp + 0x124]
push edx
push ecx
mov dword [esp + 0x28], ecx
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
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 + 0x44]
push ecx
push 0x4041f8
call dword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsW]
call fcn.00478800
mov eax, dword [0x806934]
cmp eax, 0x29
jne 0x478f3f
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 + 0x120]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasW]
push 0
push 0
call edi
mov eax, dword [0x806934]
inc esi
cmp esi, eax
jb 0x478e97
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov edi, 0x9682ab
cmp eax, 3
jne 0x478f6b
push 0
push 0
push 0
push 0
push 0
push 0
call esi
mov eax, dword [0x806934]
dec edi
jne 0x478f53
mov esi, dword [sym.imp.KERNEL32.dll_AddAtomW]
mov edi, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLargestConsoleWindowSize]
mov dword [esp + 0x14], 0x25887
mov ebx, 0xabebc05c
lea ecx, [ecx]
mov dword [0x8068a4], ebx
cmp eax, 0x222
jne 0x478fb9
push 0x404204
call esi
push 0
lea eax, [esp + 0x11c]
push eax
call edi
push 0
call ebp
mov eax, dword [0x806934]
dec dword [esp + 0x14]
jne 0x478f90
mov byte [0x482be8], 0
call fcn.00478710
call fcn.00478b20
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
cmp dword [0x806934], 0xba
jne 0x47900d
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
lea edx, [esp + 0x40]
push edx
call edi
push 0x404214
push 0
push 0
call ebx
push 0
call ebp
push 0
call dword [sym.imp.KERNEL32.dll_LocalFlags]
cmp esi, 0x2f64
jne 0x47902c
mov eax, 0
add dword [0x80689c], eax
inc esi
cmp esi, 0x1605a
jl 0x478fe4
mov ecx, 0x6d
mov word [0x80693e], cx
mov ecx, 0x6c
mov word [0x80694c], cx
mov eax, 0x69
xor ecx, ecx
push 0x806938
mov dword [0x806948], 0x6c0064
mov dword [0x806944], 0x2e0032
mov word [0x80693c], ax
mov dword [0x806938], 0x73006d
mov word [0x80694e], cx
mov dword [0x806940], 0x330067
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov eax, 0x73
mov ecx, 0x6d
mov word [0x80693a], ax
mov word [0x80693e], cx
xor ecx, ecx
cmp dword [0x806934], 0xc30
mov edx, 0x33
mov eax, 0x67
mov word [0x806942], dx
mov word [0x80694e], cx
mov word [0x806940], ax
mov ecx, 0x69
mov edx, 0x6d
mov eax, 0x6c
mov dword [0x806948], 0x6c0064
mov word [0x80693c], cx
mov word [0x806938], dx
mov word [0x80694c], ax
mov dword [0x806944], 0x2e0032
jne 0x4791fd
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 + 0x918]
push eax
push 0x404248
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 + 0xd1c]
push edx
push 0x404288
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 + 0x1524]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
push 0
lea edx, [esp + 0x11c]
push edx
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x44]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateA]
push 0
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
push 0x4042c4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0
lea ecx, [esp + 0x191c]
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 + 0x68]
push edx
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ActivateActCtx]
push 0x4042d0
call dword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointA]
pop edi
xor eax, eax
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret