Function at 0x41a150
Capabilities:
Get common file path
Get hostname
Query environment variable
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x41bf37
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
mov eax, 0x21f0
call fcn.00416680
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetDefaultCommConfigW]
push ebp
push esi
xor eax, eax
mov dword [esp + 0x40], eax
mov esi, dword [esp + 0x40]
mov ebp, dword [esp + 0x40]
push edi
mov edi, dword [esp + 0x44]
cmp eax, 0x2c787
jge 0x41a1ab
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_CharToOemBuffW]
mov eax, dword [esp + 0x44]
cmp dword [0x7bd2e4], 0x6fb
jne 0x41a204
push 0x30
lea eax, [esp + 0x124]
push 0
push eax
mov dword [esp + 0x128], 0
call fcn.0040c390
add esp, 0xc
push esi
lea ecx, [esp + 0x120]
push ecx
push 0
call ebx
push 0
lea edx, [esp + 0x204]
push edx
push 0x4044bc
call dword [sym.imp.KERNEL32.dll_GetProfileSectionA]
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_SetProcessShutdownParameters]
mov eax, dword [esp + 0x44]
cmp eax, 0x1e7d3ede
jle 0x41a222
cmp dword [esp + 0x44], 0xc0f3f2
je 0x41a222
cmp dword [esp + 0x128], 0x9374828
jne 0x41a234
inc eax
mov dword [esp + 0x44], eax
cmp eax, 0x7d9ed
jl 0x41a194
jmp 0x41a268
cmp dword [0x7bd2e4], 0x28
jne 0x41a268
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x604]
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [esp + 0x200]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCPInfoExW]
cmp dword [0x7bd2e4], 0xcf8
jne 0x41a510
push 0
push 0
call fcn.00419a7e
xor eax, eax
xor ebx, ebx
push 0x4044f4
mov dword [esp + 0x70], 7
mov dword [esp + 0x6c], ebx
mov word [esp + 0x5c], ax
call fcn.00408c2c
mov esi, eax
add esp, 0xc
lea eax, [esp + 0x50]
call fcn.00406910
lea ecx, [esp + 0x78]
push ecx
lea ecx, [esp + 0x54]
mov dword [esp + 0x2240], ebx
call fcn.00405e50
cmp dword [esp + 0x64], 8
jb 0x41a2d7
mov edx, dword [esp + 0x50]
push edx
call fcn.00408e6f
add esp, 4
push ebx
call fcn.004091cd
add esp, 4
push ebx
call fcn.00408d6a
fldz
sub esp, 0xc
fst qword [esp + 8]
fstp qword [esp]
call fcn.00408d90
fstp st(0)
fldz
add esp, 8
fstp qword [esp]
call fcn.00408e80
fstp st(0)
fldz
fstp qword [esp]
call fcn.004089e0
fstp st(0)
push ebx
call fcn.00408c21
add esp, 0xc
push ebx
call fcn.00408c0b
add esp, 4
push ebx
push ebx
call fcn.00408b37
push ebx
push ebx
call fcn.00408fc9
push ebx
call fcn.00408afd
add esp, 0x14
push 0x404504
push 0x404508
push 0x439598
call fcn.0040846a
fld qword [0x404828]
add esp, 4
fstp qword [esp]
push 0x404510
call fcn.00408db2
add esp, 0xc
push ebx
call fcn.00408b77
add esp, 4
push ebx
push ebx
call fcn.00408b37
push ebx
call fcn.00408afd
add esp, 0xc
push ebx
push ebx
call fcn.00408fc9
push ebx
call fcn.00408fa1
add esp, 0xc
push ebx
call fcn.00409249
add esp, 4
push ebx
push ebx
push ebx
call fcn.00409100
add esp, 0xc
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004082f8
add esp, 0x14
push ebx
push ebx
push ebx
push ebx
call fcn.0040844d
add esp, 0x10
mov ecx, dword [esp + 0x78]
mov edx, dword [ecx + 4]
lea eax, [esp + 0xd0]
mov dword [esp + 0x4c], eax
mov dword [esp + edx + 0x78], 0x4047cc
mov dword [esp + 0x223c], 1
test byte [esp + 0xc8], 1
lea eax, [esp + 0x88]
mov dword [esp + 0x48], eax
mov dword [esp + 0x88], 0x40478c
je 0x41a417
mov ecx, dword [esp + 0x98]
mov eax, dword [ecx]
push eax
call fcn.00408e6f
add esp, 4
mov edx, dword [esp + 0x98]
mov dword [edx], ebx
mov eax, dword [esp + 0xa8]
mov dword [eax], ebx
mov ecx, dword [esp + 0xb8]
mov dword [ecx], ebx
mov edx, dword [esp + 0x9c]
mov dword [edx], ebx
mov eax, dword [esp + 0xac]
mov dword [eax], ebx
mov ecx, dword [esp + 0xbc]
mov dword [ecx], ebx
and dword [esp + 0xc8], 0xfffffffe
mov dword [esp + 0xc4], ebx
mov dword [esp + 0x88], 0x404744
mov byte [esp + 0x223c], 2
mov eax, dword [esp + 0xc0]
mov ebp, eax
cmp eax, ebx
je 0x41a4c7
mov edi, dword [eax]
cmp edi, ebx
je 0x41a4be
push ebx
lea ecx, [esp + 0x48]
call fcn.004079cc
mov eax, dword [edi + 4]
cmp eax, ebx
jbe 0x41a49c
cmp eax, 0xffffffff
jae 0x41a49c
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.004079f4
cmp esi, ebx
je 0x41a4be
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
push ebp
call fcn.00408e6f
add esp, 4
lea ecx, [esp + 0x8c]
mov byte [esp + 0x223c], 1
call fcn.00407a25
mov dword [esp + 0x223c], 0xffffffff
mov ecx, dword [esp + 0x78]
mov edx, dword [ecx + 4]
lea eax, [esp + 0xd0]
mov dword [esp + edx + 0x78], 0x404784
push eax
mov dword [esp + 0xd4], 0x404730
call fcn.004074fb
add esp, 4
mov edi, dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
mov ebx, dword [sym.imp.KERNEL32.dll_IsWow64Process]
xor esi, esi
mov edi, edi
cmp esi, 0x408
jne 0x41a533
mov eax, 0x5d1
add dword [0x7bd2e4], eax
cmp dword [0x7bd2e4], 0xca3
jne 0x41a55c
call dword [sym.imp.KERNEL32.dll_SetFileApisToOEM]
push 0
lea ecx, [esp + 0xa04]
push ecx
push 0
call edi
lea edx, [esp + 0x48]
push edx
push 0
call ebx
inc esi
cmp esi, 0x1518d4
jl 0x41a520
mov eax, dword [0x7bd2e4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [0x7bd24c], eax
mov eax, dword [0x7bd2e4]
xor esi, esi
test eax, eax
je 0x41a61e
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 0x41a5e6
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_SetProcessShutdownParameters]
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 0x404518
call ebx
call fcn.00419be0
mov eax, dword [0x7bd2e4]
cmp eax, 0x29
jne 0x41a615
call dword [sym.imp.KERNEL32.dll_SetFileApisToOEM]
push 0x40453c
push 0
push 0
push 0x404590
push 0x404554
call ebp
mov eax, dword [0x7bd2e4]
inc esi
cmp esi, eax
jb 0x41a599
mov esi, dword [sym.imp.KERNEL32.dll_IsValidCodePage]
mov edi, 0x9682ab
lea esp, [esp]
cmp eax, 3
jne 0x41a63e
push 0
call esi
mov eax, dword [0x7bd2e4]
dec edi
jne 0x41a630
mov esi, dword [sym.imp.KERNEL32.dll_GetLargestConsoleWindowSize]
mov ebx, 0x25887
mov edi, 0xabebc05c
mov dword [0x7bd254], edi
cmp eax, 0x222
jne 0x41a667
push 0
call esi
mov eax, dword [0x7bd2e4]
dec ebx
jne 0x41a651
mov byte [0x439598], bl
call fcn.00419b30
call fcn.00419ef0
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 [0x7bd2e4], 0xba
jne 0x41a6a4
push 0
push 0
push 0
call ebx
push 0
call edi
push 0
call ebp
cmp esi, 0x2f64
jne 0x41a6bf
mov eax, 0x2b5e
add dword [0x7bd24c], eax
inc esi
cmp esi, 0x1605a
jl 0x41a690
push 0x404298
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp dword [0x7bd2e4], 0xc30
jne 0x41a7d3
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 + 0x200]
push ecx
push 0x404650
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x404680
call esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateActCtxW]
push 0
lea edx, [esp + 0x4c]
push edx
push 0
lea eax, [esp + 0x60c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
push 0
lea ecx, [esp + 0x1204]
push ecx
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x7c]
push ecx
lea edx, [esp + 0x84]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateW]
push 0x4046a8
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomW]
push 0
call esi
push 0
lea eax, [esp + 0xa04]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VerLanguageNameA]
push 0
lea ecx, [esp + 0x1a04]
push ecx
push 0x4046b4
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0
lea edx, [esp + 0x78]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
lea eax, [esp + 0x150]
push eax
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
push 0
call dword [sym.imp.KERNEL32.dll_ReleaseActCtx]
push 0x4046e4
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