Function at 0x8123d0
Capabilities:
Get common file path
Get hostname
Manipulate console buffer
Query environment variable
Read .ini file
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x814167
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
mov eax, 0x25f0
call fcn.00413280
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProfileSectionA]
push ebp
push esi
mov esi, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetDefaultCommConfigW]
xor ebp, ebp
cmp ebp, 0x2c787
jge 0x812422
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_CharToOemBuffW]
cmp dword [0xba0934], 0x6fb
jne 0x81247b
push 0x30
lea eax, [esp + 0x124]
push 0
push eax
mov dword [esp + 0x128], 0
call fcn.0040fa50
add esp, 0xc
push esi
lea ecx, [esp + 0x120]
push ecx
push 0
call edi
push 0
lea edx, [esp + 0xa04]
push edx
push 0x4042c4
call ebx
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x4c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcessShutdownParameters]
cmp ebp, 0x1e7d3ede
jle 0x81249a
cmp dword [esp + 0x44], 0xc0f3f2
je 0x81249a
cmp dword [esp + 0x128], 0x9374828
jne 0x8124a9
inc ebp
cmp ebp, 0x7d9ed
jl 0x81240e
jmp 0x8124dd
cmp dword [0xba0934], 0x28
jne 0x8124dd
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0xa00]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCPInfoExW]
cmp dword [0xba0934], 0xcf8
jne 0x8126cb
push 0
push 0
call fcn.004167b4
xor edx, edx
xor ebp, ebp
push 0x404354
mov dword [esp + 0x70], 7
mov dword [esp + 0x6c], ebp
mov word [esp + 0x5c], dx
call fcn.004087f7
mov esi, eax
add esp, 0xc
lea eax, [esp + 0x50]
call fcn.00406850
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x54]
mov dword [esp + 0x2640], ebp
call fcn.00405d90
cmp dword [esp + 0x64], 8
jb 0x81254c
mov ecx, dword [esp + 0x50]
push ecx
call fcn.0040894c
add esp, 4
push ebp
call fcn.00408a55
add esp, 4
push ebp
call fcn.00408935
fldz
push ecx
fstp qword [esp]
call fcn.004086a0
fstp st(0)
push ebp
push ebp
call fcn.00408957
push ebp
call fcn.004087bd
mov eax, dword [esp + 0x8c]
mov ecx, dword [eax + 4]
lea edx, [esp + 0xe4]
add esp, 0x14
mov dword [esp + 0x48], edx
mov dword [esp + ecx + 0x78], 0x404714
mov dword [esp + 0x263c], 1
test byte [esp + 0xc8], 1
lea edx, [esp + 0x88]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x88], 0x4046d4
je 0x8125d2
mov eax, dword [esp + 0x98]
mov eax, dword [eax]
push eax
call fcn.0040894c
add esp, 4
mov ecx, dword [esp + 0x98]
mov dword [ecx], ebp
mov edx, dword [esp + 0xa8]
mov dword [edx], ebp
mov eax, dword [esp + 0xb8]
mov dword [eax], ebp
mov ecx, dword [esp + 0x9c]
mov dword [ecx], ebp
mov edx, dword [esp + 0xac]
mov dword [edx], ebp
mov eax, dword [esp + 0xbc]
mov dword [eax], ebp
and dword [esp + 0xc8], 0xfffffffe
mov dword [esp + 0xc4], ebp
mov dword [esp + 0x88], 0x40468c
mov byte [esp + 0x263c], 2
mov eax, dword [esp + 0xc0]
mov ebx, eax
cmp eax, ebp
je 0x812682
mov edi, dword [eax]
cmp edi, ebp
je 0x812679
push ebp
lea ecx, [esp + 0x48]
call fcn.0040790c
mov eax, dword [edi + 4]
cmp eax, ebp
jbe 0x812657
cmp eax, 0xffffffff
jae 0x812657
dec eax
mov dword [edi + 4], eax
mov esi, dword [edi + 4]
neg esi
sbb esi, esi
not esi
lea ecx, [esp + 0x44]
and esi, edi
call fcn.00407934
cmp esi, ebp
je 0x812679
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
push ebx
call fcn.0040894c
add esp, 4
lea ecx, [esp + 0x8c]
mov byte [esp + 0x263c], 1
call fcn.00407965
mov dword [esp + 0x263c], 0xffffffff
mov ecx, dword [esp + 0x78]
mov edx, dword [ecx + 4]
lea eax, [esp + 0xd0]
mov dword [esp + edx + 0x78], 0x4046cc
push eax
mov dword [esp + 0xd4], 0x404678
call fcn.0040743b
add esp, 4
mov edi, dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointA]
mov ebx, dword [sym.imp.KERNEL32.dll_IsWow64Process]
xor esi, esi
lea esp, [esp]
cmp esi, 0x408
jne 0x8126f3
mov eax, 0x5d1
add dword [0xba0934], eax
cmp dword [0xba0934], 0xca3
jne 0x81271c
call dword [sym.imp.KERNEL32.dll_SetFileApisToOEM]
push 0
lea ecx, [esp + 0x204]
push ecx
push 0
call edi
lea edx, [esp + 0x4c]
push edx
push 0
call ebx
inc esi
cmp esi, 0x1518d4
jl 0x8126e0
mov eax, dword [0xba0934]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [0xba089c], eax
mov eax, dword [0xba0934]
xor esi, esi
test eax, eax
je 0x8127e5
mov edi, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov ebx, dword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsW]
mov ebp, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStructW]
lea esp, [esp]
cmp eax, 0xfe
jne 0x8127ad
push 0
lea ecx, [esp + 0x204]
push ecx
call edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessShutdownParameters]
xor eax, eax
lea edx, [esp + 0x50]
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
push edx
lea eax, [esp + 0x120]
push eax
push 0x404364
call ebx
call fcn.00811e50
mov eax, dword [0xba0934]
cmp eax, 0x29
jne 0x8127dc
call dword [sym.imp.KERNEL32.dll_SetFileApisToOEM]
push 0x404388
push 0
push 0
push 0x4043a0
push 0x404460
call ebp
mov eax, dword [0xba0934]
inc esi
cmp esi, eax
jb 0x812760
mov esi, dword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileTime]
mov ebp, dword [sym.imp.KERNEL32.dll_WriteConsoleOutputW]
mov ebx, dword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsA]
mov dword [esp + 0x44], 0x9682ab
cmp eax, 3
jne 0x812833
push 0x4044a0
push 0
lea ecx, [esp + 0x208]
push ecx
push 0x4044fc
push 0x404528
push 0x404568
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [0xba0934]
cmp eax, 0xdf
jne 0x812886
push 0
push 0
push 0
call esi
push 0
push 0
push 0
push 0
call edi
xor edx, edx
push edx
mov eax, edx
push eax
push eax
push edx
push edx
mov dword [esp + 0x5c], edx
call ebp
xor eax, eax
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x120]
push edx
push eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
call ebx
mov eax, dword [0xba0934]
dec dword [esp + 0x44]
jne 0x812805
mov esi, dword [sym.imp.KERNEL32.dll_GetLargestConsoleWindowSize]
mov ebx, 0x25887
mov edi, 0xabebc05c
mov dword [0xba08a4], edi
cmp eax, 0x222
jne 0x8128b6
push 0
call esi
mov eax, dword [0xba0934]
dec ebx
jne 0x8128a0
mov byte [0x81cbe8], bl
call fcn.00811da0
call fcn.00812160
mov ebx, dword [sym.imp.KERNEL32.dll_OpenWaitableTimerA]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFlags]
mov ebp, dword [sym.imp.KERNEL32.dll_LocalSize]
xor esi, esi
cmp dword [0xba0934], 0xba
jne 0x8128f4
push 0x40451c
push 0
push 0
call ebx
push 0
call edi
push 0
call ebp
cmp esi, 0x2f64
jne 0x81290f
mov eax, 0
add dword [0xba089c], eax
inc esi
cmp esi, 0x1605a
jl 0x8128dd
push 0x4040b0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp dword [0xba0934], 0xc30
jne 0x812a11
push 0
push 0
call dword [sym.imp.KERNEL32.dll_TerminateThread]
lea eax, [esp + 0xa00]
push eax
push 0x4045b0
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x4045c8
call esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateActCtxW]
push 0
lea ecx, [esp + 0x50]
push ecx
push 0
lea edx, [esp + 0x20c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
push 0
lea eax, [esp + 0xe04]
push eax
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x84]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateW]
push 0x4045f0
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomW]
push 0
call esi
push 0
lea edx, [esp + 0x1604]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_VerLanguageNameW]
push 0
lea eax, [esp + 0x1e04]
push eax
push 0x4045fc
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0
lea ecx, [esp + 0x78]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
lea edx, [esp + 0x150]
push edx
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
push 0
call dword [sym.imp.KERNEL32.dll_ZombifyActCtx]
push 0x40462c
call dword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointA]
mov ecx, dword [esp + 0x2634]
pop edi
xor eax, eax
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret