Function at 0x4287c0
Capabilities:
Get common file path
Get hostname
Manipulate console buffer
Read .ini file
Resolve function by parsing pe exports
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42da17
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x1770
call fcn.00412040
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetProfileSectionA]
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetDefaultCommConfigW]
xor ebx, ebx
cmp ebx, 0x2cf6b
jge 0x428810
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_CharToOemBuffA]
cmp dword [0x7b9804], 0x6fb
jne 0x428869
push 0x30
lea eax, [esp + 0xf4]
push 0
push eax
mov dword [esp + 0xf8], 0
call fcn.0040f1f0
add esp, 0xc
push esi
lea ecx, [esp + 0xf0]
push ecx
push 0
call edi
push 0
lea edx, [esp + 0x384]
push edx
push 0x403ffc
call ebp
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcessShutdownParameters]
cmp ebx, 0x1e7e0166
jle 0x428888
cmp dword [esp + 0x10], 0xc0f00a
je 0x428888
cmp dword [esp + 0xf8], 0x92805e8
jne 0x428897
inc ebx
cmp ebx, 0x7d605
jl 0x4287fc
jmp 0x4288cd
cmp dword [0x7b9804], 0x28
jne 0x4288cd
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x784]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [esp + 0x120]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCPInfoExA]
cmp dword [0x7b9804], 0xcf8
jne 0x428a93
push 0
push 0
call fcn.0041250a
xor edx, edx
xor ebx, ebx
push 0x40408c
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], ebx
mov word [esp + 0x28], dx
call fcn.0040835b
mov esi, eax
add esp, 0xc
lea eax, [esp + 0x1c]
call fcn.004064e0
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x1790], ebx
call fcn.00405a20
cmp dword [esp + 0x30], 8
jb 0x42893c
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.004084b0
add esp, 4
push ebx
call fcn.004085b9
add esp, 4
push ebx
call fcn.00408499
add esp, 4
push ebx
push ebx
call fcn.004084bb
push ebx
call fcn.00408321
mov eax, dword [esp + 0x54]
mov ecx, dword [eax + 4]
lea edx, [esp + 0xac]
add esp, 0xc
mov dword [esp + 0x14], edx
mov dword [esp + ecx + 0x48], 0x40437c
mov dword [esp + 0x178c], 1
test byte [esp + 0x98], 1
lea edx, [esp + 0x58]
mov dword [esp + 0x18], edx
mov dword [esp + 0x58], 0x40433c
je 0x4289ac
mov eax, dword [esp + 0x68]
mov eax, dword [eax]
push eax
call fcn.004084b0
add esp, 4
mov ecx, dword [esp + 0x68]
mov dword [ecx], ebx
mov edx, dword [esp + 0x78]
mov dword [edx], ebx
mov eax, dword [esp + 0x88]
mov dword [eax], ebx
mov ecx, dword [esp + 0x6c]
mov dword [ecx], ebx
mov edx, dword [esp + 0x7c]
mov dword [edx], ebx
mov eax, dword [esp + 0x8c]
mov dword [eax], ebx
and dword [esp + 0x98], 0xfffffffe
mov dword [esp + 0x94], ebx
mov dword [esp + 0x58], 0x4042f4
mov byte [esp + 0x178c], 2
mov eax, dword [esp + 0x90]
mov ebp, eax
cmp eax, ebx
je 0x428a4d
mov edi, dword [eax]
cmp edi, ebx
je 0x428a44
push ebx
lea ecx, [esp + 0x14]
call fcn.0040759c
mov eax, dword [edi + 4]
cmp eax, ebx
jbe 0x428a22
cmp eax, 0xffffffff
jae 0x428a22
dec eax
mov dword [edi + 4], eax
mov esi, dword [edi + 4]
neg esi
sbb esi, esi
not esi
lea ecx, [esp + 0x10]
and esi, edi
call fcn.004075c4
cmp esi, ebx
je 0x428a44
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
push ebp
call fcn.004084b0
add esp, 4
lea ecx, [esp + 0x5c]
mov byte [esp + 0x178c], 1
call fcn.004075f5
mov dword [esp + 0x178c], 0xffffffff
mov ecx, dword [esp + 0x48]
mov edx, dword [ecx + 4]
lea eax, [esp + 0xa0]
mov dword [esp + edx + 0x48], 0x404334
push eax
mov dword [esp + 0xa4], 0x4042e0
call fcn.004070cb
add esp, 4
mov edi, dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointA]
mov ebp, dword [sym.imp.KERNEL32.dll_IsWow64Process]
xor esi, esi
cmp esi, 0x408
jne 0x428ab4
mov eax, 0x5d1
add dword [0x7b9804], eax
cmp dword [0x7b9804], 0xca3
jne 0x428add
call dword [sym.imp.KERNEL32.dll_SetFileApisToOEM]
push 0
lea ecx, [esp + 0x384]
push ecx
push 0
call edi
lea edx, [esp + 0x18]
push edx
push 0
call ebp
inc esi
cmp esi, 0x1518d4
jl 0x428aa1
mov eax, dword [0x7b9804]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [0x7b976c], eax
mov eax, dword [0x7b9804]
xor esi, esi
test eax, eax
je 0x428ba5
mov edi, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStructA]
lea ebx, [ebx]
cmp eax, 0xfe
jne 0x428b6d
push 0
lea ecx, [esp + 0x784]
push ecx
call edi
call ebp
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessShutdownParameters]
xor eax, eax
lea edx, [esp + 0x1c]
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
push edx
lea eax, [esp + 0xf0]
push eax
push 0x403ef4
call dword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsA]
call fcn.00428310
mov eax, dword [0x7b9804]
cmp eax, 0x29
jne 0x428b9c
call dword [sym.imp.KERNEL32.dll_SetFileApisToOEM]
push 0x40409c
push 0
push 0
push 0x4040a8
push 0x404108
call ebx
mov eax, dword [0x7b9804]
inc esi
cmp esi, eax
jb 0x428b20
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
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 dword [esp + 0x10], 0x9682ab
cmp eax, 3
jne 0x428bef
push 0x404128
push 0
lea ecx, [esp + 0x388]
push ecx
push 0x404184
push 0x4041b0
push 0x4041f0
call ebx
mov eax, dword [0x7b9804]
cmp eax, 0xdf
jne 0x428c46
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 + 0x28], edx
call ebp
xor eax, eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0xf0]
push edx
push eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
call dword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsA]
mov eax, dword [0x7b9804]
dec dword [esp + 0x10]
jne 0x428bc5
mov esi, dword [sym.imp.KERNEL32.dll_GetLargestConsoleWindowSize]
mov ebx, 0x25887
mov edi, 0xabebc05c
mov dword [0x7b9774], edi
cmp eax, 0x222
jne 0x428c76
push 0
call esi
mov eax, dword [0x7b9804]
dec ebx
jne 0x428c60
mov byte [0x435ab8], bl
call fcn.00428260
call fcn.004285b0
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 [0x7b9804], 0xba
jne 0x428cb4
push 0x4041a4
push 0
push 0
call ebx
push 0
call edi
push 0
call ebp
cmp esi, 0x2f64
jne 0x428ccf
mov eax, 0x4c2e
add dword [0x7b976c], eax
inc esi
cmp esi, 0x1605a
jl 0x428c9d
push 0x403ee8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp dword [0x7b9804], 0xc30
jne 0x428dc4
push 0
push 0
call dword [sym.imp.KERNEL32.dll_TerminateThread]
lea eax, [esp + 0x240]
push eax
push 0x404238
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x404250
call esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateActCtxW]
push 0
lea edx, [esp + 0x14]
push edx
push 0
lea eax, [esp + 0x38c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleA]
push 0
lea ecx, [esp + 0xf84]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x4c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateW]
push 0x404278
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomW]
push 0
call esi
push 0
lea eax, [esp + 0x784]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VerLanguageNameA]
push 0
lea ecx, [esp + 0x40]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
lea edx, [esp + 0x120]
push edx
call dword [sym.imp.KERNEL32.dll_SetTimeZoneInformation]
push 0
call dword [sym.imp.KERNEL32.dll_ZombifyActCtx]
push 0x404284
call dword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointW]
mov ecx, dword [esp + 0x1784]
pop edi
xor eax, eax
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret