Function at 0x42a9e0
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 0x42cf6b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x21b0
call fcn.00413200
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_AddConsoleAliasW]
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 0x42aa2d
push ebp
push ebp
push ebp
call edi
cmp dword [0x7b983c], 0x6fb
jne 0x42aa3e
push ebp
push ebp
push ebp
call ebx
cmp esi, 0x1e9c87d0
jle 0x42aa5a
cmp dword [esp + 0x14], 0xc0e614
je 0x42aa5a
cmp dword [esp + 0x54], 0x9266fa8
jne 0x42aa65
inc esi
cmp esi, 0x7e5cd
jl 0x42aa20
jmp 0x42aa83
cmp dword [0x7b983c], 0x28
jne 0x42aa83
push 0x404210
push 0x404238
push 0x404274
call dword [sym.imp.KERNEL32.dll_WriteProfileStringW]
cmp dword [0x7b983c], 0xcf8
jne 0x42aafe
push 0x4042ec
push ebp
call fcn.00407e62
push ebp
push ebp
call fcn.00417e2a
push 0x4042f8
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], ebp
mov byte [esp + 0x30], 0
call fcn.00407c70
add esp, 0x14
push eax
push 0x4042f8
lea ecx, [esp + 0x24]
call fcn.004061f0
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x74]
push ecx
mov dword [esp + 0x21d4], ebp
call fcn.00405950
cmp dword [esp + 0x30], 0x10
jb 0x42aaf8
mov edx, dword [esp + 0x1c]
push edx
call fcn.00407f2a
add esp, 4
push ebp
call fcn.00408209
mov edi, dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterW]
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileSize]
xor esi, esi
lea esp, [esp]
cmp esi, 0x408
jne 0x42ab23
mov eax, 0x5d1
add dword [0x7b983c], eax
cmp dword [0x7b983c], 0xca3
jne 0x42ab58
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 0x404308
push eax
mov dword [esp + 0x28], eax
call edi
push 0
push 0
call ebp
inc esi
cmp esi, 0x1518d4
jl 0x42ab10
mov ecx, dword [0x7b983c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [0x7b97a4], eax
mov eax, dword [0x7b983c]
xor esi, esi
test eax, eax
je 0x42ac33
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 0x42abe6
push 0
lea edx, [esp + 0x1c4]
push edx
call ebp
push 0
call ebx
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
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 0x404334
call dword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsA]
call fcn.0042a480
mov eax, dword [0x7b983c]
cmp eax, 0x29
jne 0x42ac2a
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
push 0
push 0
lea edx, [esp + 0x5c8]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasW]
push 0
push 0
call edi
mov eax, dword [0x7b983c]
inc esi
cmp esi, eax
jb 0x42ab96
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov edi, 0x9682ab
mov edi, edi
cmp eax, 3
jne 0x42ac58
push 0
push 0
push 0
push 0
push 0
push 0
call esi
mov eax, dword [0x7b983c]
dec edi
jne 0x42ac40
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 ebx, [ebx]
mov dword [0x7b97ac], ebx
cmp eax, 0x222
jne 0x42aca9
push 0x404348
call esi
push 0
lea eax, [esp + 0x5c4]
push eax
call edi
push 0
call ebp
mov eax, dword [0x7b983c]
dec dword [esp + 0x14]
jne 0x42ac80
mov byte [0x435af0], 0
call fcn.0042a390
call fcn.0042a7b0
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalFix]
mov ebp, dword [sym.imp.KERNEL32.dll_OpenWaitableTimerW]
xor esi, esi
cmp dword [0x7b983c], 0xba
jne 0x42acf9
lea ecx, [esp + 0x18]
push ecx
call edi
lea edx, [esp + 0x48]
push edx
call ebx
push 0x40435c
push 0
push 0
call ebp
push 0
call dword [sym.imp.KERNEL32.dll_GlobalFlags]
push 0
call dword [sym.imp.KERNEL32.dll_LocalFlags]
cmp esi, 0x2f64
jne 0x42ad1c
mov eax, 0x2949
add dword [0x7b97a4], eax
inc esi
cmp esi, 0x1605a
jl 0x42acd4
mov ecx, 0x6d
mov word [0x7b9846], cx
mov ecx, 0x6c
mov word [0x7b9854], cx
mov eax, 0x69
xor ecx, ecx
push 0x7b9840
mov dword [0x7b9850], 0x6c0064
mov dword [0x7b984c], 0x2e0032
mov word [0x7b9844], ax
mov dword [0x7b9840], 0x73006d
mov word [0x7b9856], cx
mov dword [0x7b9848], 0x330067
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov eax, 0x73
mov ecx, 0x6d
mov word [0x7b9842], ax
mov word [0x7b9846], cx
xor ecx, ecx
cmp dword [0x7b983c], 0xc30
mov edx, 0x33
mov eax, 0x67
mov word [0x7b984a], dx
mov word [0x7b9856], cx
mov word [0x7b9848], ax
mov ecx, 0x69
mov edx, 0x6d
mov eax, 0x6c
mov dword [0x7b9850], 0x6c0064
mov word [0x7b9844], cx
mov word [0x7b9840], dx
mov word [0x7b9854], ax
mov dword [0x7b984c], 0x2e0032
jne 0x42aef2
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 0x404374
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push 0
lea edx, [esp + 0x11c4]
push edx
push 0x404388
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0
call dword [sym.imp.KERNEL32.dll_CreateActCtxW]
push 0
lea eax, [esp + 0x18]
push eax
push 0
lea ecx, [esp + 0xdcc]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
push 0
lea edx, [esp + 0x5c4]
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_GlobalFindAtomW]
push 0x4043b4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0
lea ecx, [esp + 0x19c4]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VerLanguageNameW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessAffinityMask]
lea edx, [esp + 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_DeactivateActCtx]
push 0x4043c0
call dword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointA]
mov ecx, dword [esp + 0x21c4]
pop edi
xor eax, eax
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret