Function at 0x414300
Capabilities:
Get common file path
Get hostname
Query environment variable
Resolve function by parsing pe exports
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x415ff7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x2110
call fcn.00412180
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetDefaultCommConfigW]
push ebp
push esi
xor eax, eax
mov dword [esp + 0x10], eax
mov esi, dword [esp + 0x10]
mov ebp, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x14]
cmp eax, 0x2c787
jge 0x414359
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_CharToOemBuffW]
mov eax, dword [esp + 0x14]
cmp dword [0x7b6b0c], 0x6fb
jne 0x4143b2
push 0x30
lea eax, [esp + 0xf4]
push 0
push eax
mov dword [esp + 0xf8], 0
call fcn.0040b8f0
add esp, 0xc
push esi
lea ecx, [esp + 0xf0]
push ecx
push 0
call ebx
push 0
lea edx, [esp + 0x124]
push edx
push 0x40410c
call dword [sym.imp.KERNEL32.dll_GetProfileSectionA]
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_SetProcessShutdownParameters]
mov eax, dword [esp + 0x14]
cmp eax, 0x1e7d3ede
jle 0x4143d0
cmp dword [esp + 0x14], 0xc0f3f2
je 0x4143d0
cmp dword [esp + 0xf8], 0x9374828
jne 0x4143e2
inc eax
mov dword [esp + 0x14], eax
cmp eax, 0x7d9ed
jl 0x414342
jmp 0x414416
cmp dword [0x7b6b0c], 0x28
jne 0x414416
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x524]
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [esp + 0x120]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCPInfoExW]
cmp dword [0x7b6b0c], 0xcf8
jne 0x4145ec
push 0
push 0
call fcn.0041261a
xor eax, eax
xor ebx, ebx
push 0x404150
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], ebx
mov word [esp + 0x2c], ax
call fcn.0040859b
mov esi, eax
add esp, 0xc
lea eax, [esp + 0x20]
call fcn.00406530
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x2130], ebx
call fcn.00405aa0
cmp dword [esp + 0x34], 8
jb 0x414485
mov edx, dword [esp + 0x20]
push edx
call fcn.004086f0
add esp, 4
push ebx
call fcn.004087f9
add esp, 4
push ebx
call fcn.004086d9
add esp, 4
push ebx
push ebx
call fcn.004086fb
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00407f18
add esp, 0x1c
push ebx
push ebx
push ebx
push ebx
call fcn.0040806d
mov ecx, dword [esp + 0x58]
mov edx, dword [ecx + 4]
lea eax, [esp + 0xb0]
add esp, 0x10
mov dword [esp + 0x1c], eax
mov dword [esp + edx + 0x48], 0x404404
mov dword [esp + 0x212c], 1
test byte [esp + 0x98], 1
lea eax, [esp + 0x58]
mov dword [esp + 0x18], eax
mov dword [esp + 0x58], 0x4043c4
je 0x414505
mov ecx, dword [esp + 0x68]
mov eax, dword [ecx]
push eax
call fcn.004086f0
add esp, 4
mov edx, dword [esp + 0x68]
mov dword [edx], ebx
mov eax, dword [esp + 0x78]
mov dword [eax], ebx
mov ecx, dword [esp + 0x88]
mov dword [ecx], ebx
mov edx, dword [esp + 0x6c]
mov dword [edx], ebx
mov eax, dword [esp + 0x7c]
mov dword [eax], ebx
mov ecx, dword [esp + 0x8c]
mov dword [ecx], ebx
and dword [esp + 0x98], 0xfffffffe
mov dword [esp + 0x94], ebx
mov dword [esp + 0x58], 0x40437c
mov byte [esp + 0x212c], 2
mov eax, dword [esp + 0x90]
mov ebp, eax
cmp eax, ebx
je 0x4145a6
mov edi, dword [eax]
cmp edi, ebx
je 0x41459d
push ebx
lea ecx, [esp + 0x18]
call fcn.004075ec
mov eax, dword [edi + 4]
cmp eax, ebx
jbe 0x41457b
cmp eax, 0xffffffff
jae 0x41457b
dec eax
mov dword [edi + 4], eax
mov esi, dword [edi + 4]
neg esi
sbb esi, esi
not esi
lea ecx, [esp + 0x14]
and esi, edi
call fcn.00407614
cmp esi, ebx
je 0x41459d
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
push ebp
call fcn.004086f0
add esp, 4
lea ecx, [esp + 0x5c]
mov byte [esp + 0x212c], 1
call fcn.00407645
mov dword [esp + 0x212c], 0xffffffff
mov ecx, dword [esp + 0x48]
mov edx, dword [ecx + 4]
lea eax, [esp + 0xa0]
mov dword [esp + edx + 0x48], 0x4043bc
push eax
mov dword [esp + 0xa4], 0x404368
call fcn.0040711b
add esp, 4
mov edi, dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
mov ebx, dword [sym.imp.KERNEL32.dll_IsWow64Process]
xor esi, esi
lea ebx, [ebx]
cmp esi, 0x408
jne 0x414613
mov eax, 0x5d1
add dword [0x7b6b0c], eax
cmp dword [0x7b6b0c], 0xca3
jne 0x41463c
call dword [sym.imp.KERNEL32.dll_SetFileApisToOEM]
push 0
lea ecx, [esp + 0x924]
push ecx
push 0
call edi
lea edx, [esp + 0x18]
push edx
push 0
call ebx
inc esi
cmp esi, 0x1518d4
jl 0x414600
mov eax, dword [0x7b6b0c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [0x7b6a74], eax
mov eax, dword [0x7b6b0c]
xor esi, esi
test eax, eax
je 0x4146fe
mov edi, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov ebx, dword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsW]
mov ebp, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStructW]
cmp eax, 0xfe
jne 0x4146c6
push 0
lea ecx, [esp + 0x924]
push ecx
call edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetProcessShutdownParameters]
xor eax, eax
lea edx, [esp + 0x20]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
push edx
lea eax, [esp + 0xf0]
push eax
push 0x404160
call ebx
call fcn.00413d90
mov eax, dword [0x7b6b0c]
cmp eax, 0x29
jne 0x4146f5
call dword [sym.imp.KERNEL32.dll_SetFileApisToOEM]
push 0x404184
push 0
push 0
push 0x4041a0
push 0x404260
call ebp
mov eax, dword [0x7b6b0c]
inc esi
cmp esi, eax
jb 0x414679
mov esi, dword [sym.imp.KERNEL32.dll_IsValidCodePage]
mov edi, 0x9682ab
lea esp, [esp]
cmp eax, 3
jne 0x41471e
push 0
call esi
mov eax, dword [0x7b6b0c]
dec edi
jne 0x414710
mov esi, dword [sym.imp.KERNEL32.dll_GetLargestConsoleWindowSize]
mov ebx, 0x25887
mov edi, 0xabebc05c
mov dword [0x7b6a7c], edi
cmp eax, 0x222
jne 0x414747
push 0
call esi
mov eax, dword [0x7b6b0c]
dec ebx
jne 0x414731
mov byte [0x432dc0], bl
call fcn.00413ce0
call fcn.004140a0
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
mov edi, edi
cmp dword [0x7b6b0c], 0xba
jne 0x414784
push 0
push 0
push 0
call ebx
push 0
call edi
push 0
call ebp
cmp esi, 0x2f64
jne 0x41479f
mov eax, 0x513d
add dword [0x7b6a74], eax
inc esi
cmp esi, 0x1605a
jl 0x414770
push 0x403ee8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp dword [0x7b6b0c], 0xc30
jne 0x41488f
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 ecx, [esp + 0x120]
push ecx
push 0x40429c
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x4042cc
call esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateActCtxA]
push 0
lea edx, [esp + 0x1c]
push edx
push 0
lea eax, [esp + 0x52c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
push 0
lea ecx, [esp + 0x1124]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x54]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateW]
push 0x4042f4
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomW]
push 0
call esi
push 0
lea eax, [esp + 0x924]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VerLanguageNameA]
push 0
lea ecx, [esp + 0x1924]
push ecx
push 0x404300
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0
lea edx, [esp + 0x40]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
mov ecx, dword [esp + 0x2124]
pop edi
xor eax, eax
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret