Function at 0x42e6d0
Capabilities:
Get common file path
Get hostname
Query environment variable
Read .ini file
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x4304c7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
mov eax, 0x21f0
call fcn.00416770
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetProfileSectionA]
push esi
mov esi, dword [esp + 0x44]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetDefaultCommConfigW]
xor ebx, ebx
cmp ebx, 0x2c787
jge 0x42e722
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_CharToOemBuffW]
cmp dword [0x7bc964], 0x6fb
jne 0x42e77b
push 0x30
lea eax, [esp + 0x124]
push 0
push eax
mov dword [esp + 0x128], 0
call fcn.0040c480
add esp, 0xc
push esi
lea ecx, [esp + 0x120]
push ecx
push 0
call edi
push 0
lea edx, [esp + 0x604]
push edx
push 0x4044c4
call ebp
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcessShutdownParameters]
cmp ebx, 0x1e7d3ede
jle 0x42e79a
cmp dword [esp + 0x44], 0xc0f3f2
je 0x42e79a
cmp dword [esp + 0x128], 0x9374828
jne 0x42e7a9
inc ebx
cmp ebx, 0x7d9ed
jl 0x42e70e
jmp 0x42e7dd
cmp dword [0x7bc964], 0x28
jne 0x42e7dd
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 + 0x600]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCPInfoExW]
cmp dword [0x7bc964], 0xcf8
jne 0x42ea85
push 0
push 0
call fcn.00419b6e
xor edx, edx
xor ebx, ebx
push 0x4044fc
mov dword [esp + 0x70], 7
mov dword [esp + 0x6c], ebx
mov word [esp + 0x5c], dx
call fcn.00408d1c
mov esi, eax
add esp, 0xc
lea eax, [esp + 0x50]
call fcn.00406a00
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x54]
mov dword [esp + 0x2240], ebx
call fcn.00405f70
cmp dword [esp + 0x64], 8
jb 0x42e84c
mov ecx, dword [esp + 0x50]
push ecx
call fcn.00408f5f
add esp, 4
push ebx
call fcn.004092bd
add esp, 4
push ebx
call fcn.00408e5a
fldz
sub esp, 0xc
fst qword [esp + 8]
fstp qword [esp]
call fcn.00408e80
fstp st(0)
fldz
add esp, 8
fstp qword [esp]
call fcn.00408f70
fstp st(0)
fldz
fstp qword [esp]
call fcn.00408ad0
fstp st(0)
push ebx
call fcn.00408d11
add esp, 0xc
push ebx
call fcn.00408cfb
add esp, 4
push ebx
push ebx
call fcn.00408c27
push ebx
push ebx
call fcn.004090b9
push ebx
call fcn.00408bed
add esp, 0x14
push 0x40450c
push 0x404510
push 0x438c18
call fcn.0040855a
fld qword [0x404918]
add esp, 4
fstp qword [esp]
push 0x404518
call fcn.00408ea2
add esp, 0xc
push ebx
call fcn.00408c67
add esp, 4
push ebx
push ebx
call fcn.00408c27
push ebx
call fcn.00408bed
add esp, 0xc
push ebx
push ebx
call fcn.004090b9
push ebx
call fcn.00409091
add esp, 0xc
push ebx
call fcn.00409339
add esp, 4
push ebx
push ebx
push ebx
call fcn.004091f0
add esp, 0xc
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004083e8
add esp, 0x14
push ebx
push ebx
push ebx
push ebx
call fcn.0040853d
add esp, 0x10
mov eax, dword [esp + 0x78]
mov ecx, dword [eax + 4]
lea edx, [esp + 0xd0]
mov dword [esp + 0x44], edx
mov dword [esp + ecx + 0x78], 0x4048bc
mov dword [esp + 0x223c], 1
test byte [esp + 0xc8], 1
lea edx, [esp + 0x88]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x88], 0x40487c
je 0x42e98c
mov eax, dword [esp + 0x98]
mov eax, dword [eax]
push eax
call fcn.00408f5f
add esp, 4
mov ecx, dword [esp + 0x98]
mov dword [ecx], ebx
mov edx, dword [esp + 0xa8]
mov dword [edx], ebx
mov eax, dword [esp + 0xb8]
mov dword [eax], ebx
mov ecx, dword [esp + 0x9c]
mov dword [ecx], ebx
mov edx, dword [esp + 0xac]
mov dword [edx], ebx
mov eax, dword [esp + 0xbc]
mov dword [eax], ebx
and dword [esp + 0xc8], 0xfffffffe
mov dword [esp + 0xc4], ebx
mov dword [esp + 0x88], 0x404834
mov byte [esp + 0x223c], 2
mov eax, dword [esp + 0xc0]
mov ebp, eax
cmp eax, ebx
je 0x42ea3c
mov edi, dword [eax]
cmp edi, ebx
je 0x42ea33
push ebx
lea ecx, [esp + 0x4c]
call fcn.00407abc
mov eax, dword [edi + 4]
cmp eax, ebx
jbe 0x42ea11
cmp eax, 0xffffffff
jae 0x42ea11
dec eax
mov dword [edi + 4], eax
mov esi, dword [edi + 4]
neg esi
sbb esi, esi
not esi
lea ecx, [esp + 0x48]
and esi, edi
call fcn.00407ae4
cmp esi, ebx
je 0x42ea33
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
push ebp
call fcn.00408f5f
add esp, 4
lea ecx, [esp + 0x8c]
mov byte [esp + 0x223c], 1
call fcn.00407b15
mov dword [esp + 0x223c], 0xffffffff
mov ecx, dword [esp + 0x78]
mov edx, dword [ecx + 4]
lea eax, [esp + 0xd0]
mov dword [esp + edx + 0x78], 0x404874
push eax
mov dword [esp + 0xd4], 0x404824
call fcn.004075eb
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 0x42eaa6
mov eax, 0x5d1
add dword [0x7bc964], eax
cmp dword [0x7bc964], 0xca3
jne 0x42eacf
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 ebp
inc esi
cmp esi, 0x1518d4
jl 0x42ea93
mov eax, dword [0x7bc964]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [0x7bc8cc], eax
mov eax, dword [0x7bc964]
xor esi, esi
test eax, eax
je 0x42eb95
mov edi, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov ebp, dword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsW]
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStructW]
lea esp, [esp]
cmp eax, 0xfe
jne 0x42eb5d
push 0
lea ecx, [esp + 0xa04]
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 0x404520
call ebp
call fcn.0042e150
mov eax, dword [0x7bc964]
cmp eax, 0x29
jne 0x42eb8c
call dword [sym.imp.KERNEL32.dll_SetFileApisToOEM]
push 0x404544
push 0
push 0
push 0x404598
push 0x40455c
call ebx
mov eax, dword [0x7bc964]
inc esi
cmp esi, eax
jb 0x42eb10
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov edi, 0x9682ab
cmp eax, 3
jne 0x42ebca
push 0x404658
push 0
lea ecx, [esp + 0x208]
push ecx
push 0x4046b4
push 0x4046f8
push 0x404738
call esi
mov eax, dword [0x7bc964]
dec edi
jne 0x42eba0
mov esi, dword [sym.imp.KERNEL32.dll_GetLargestConsoleWindowSize]
mov ebx, 0x25887
mov edi, 0xabebc05c
lea ecx, [ecx]
mov dword [0x7bc8d4], edi
cmp eax, 0x222
jne 0x42ebf6
push 0
call esi
mov eax, dword [0x7bc964]
dec ebx
jne 0x42ebe0
mov byte [0x438c18], bl
call fcn.0042e0a0
call fcn.0042e460
mov ebx, dword [sym.imp.KERNEL32.dll_OpenWaitableTimerW]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFlags]
mov ebp, dword [sym.imp.KERNEL32.dll_LocalSize]
xor esi, esi
lea ecx, [ecx]
cmp dword [0x7bc964], 0xba
jne 0x42ec34
push 0
push 0
push 0
call ebx
push 0
call edi
push 0
call ebp
cmp esi, 0x2f64
jne 0x42ec4f
mov eax, 0x4cef
add dword [0x7bc8cc], eax
inc esi
cmp esi, 0x1605a
jl 0x42ec20
push 0x4042a8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp dword [0x7bc964], 0xc30
jne 0x42ed63
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleCP]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_TerminateThread]
lea edx, [esp + 0x600]
push edx
push 0x4046d4
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x404780
call esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateActCtxW]
push 0
lea eax, [esp + 0x50]
push eax
push 0
lea ecx, [esp + 0x20c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
push 0
lea edx, [esp + 0x1204]
push edx
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x7c]
push edx
lea eax, [esp + 0x84]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateW]
push 0x4046ec
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomW]
push 0
call esi
push 0
lea ecx, [esp + 0xa04]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VerLanguageNameA]
push 0
lea edx, [esp + 0x1a04]
push edx
push 0x4047a8
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0
lea eax, [esp + 0x78]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
lea ecx, [esp + 0x150]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
push 0
call dword [sym.imp.KERNEL32.dll_ReleaseActCtx]
push 0x4047d8
call dword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointA]
mov ecx, dword [esp + 0x2234]
pop edi
xor eax, eax
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret