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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x814457
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
mov eax, 0x1b70
call fcn.00413240
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetProfileSectionA]
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetDefaultCommConfigW]
xor ebx, ebx
cmp ebx, 0x2c787
jge 0x812752
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_CharToOemBuffW]
cmp dword [0xba0934], 0x6fb
jne 0x8127ab
push 0x30
lea eax, [esp + 0xf4]
push 0
push eax
mov dword [esp + 0xf8], 0
call fcn.0040fa10
add esp, 0xc
push esi
lea ecx, [esp + 0xf0]
push ecx
push 0
call edi
push 0
lea edx, [esp + 0x384]
push edx
push 0x4042b4
call ebp
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcessShutdownParameters]
cmp ebx, 0x1e7d3ede
jle 0x8127ca
cmp dword [esp + 0x14], 0xc0f3f2
je 0x8127ca
cmp dword [esp + 0xf8], 0x9374828
jne 0x8127d9
inc ebx
cmp ebx, 0x7d9ed
jl 0x81273e
jmp 0x81280d
cmp dword [0xba0934], 0x28
jne 0x81280d
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x384]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x120]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCPInfoExA]
cmp dword [0xba0934], 0xcf8
jne 0x8129dd
push 0
push 0
call fcn.00416774
xor edx, edx
xor ebx, ebx
push 0x404344
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], ebx
mov word [esp + 0x2c], dx
call fcn.004087b7
mov esi, eax
add esp, 0xc
lea eax, [esp + 0x20]
call fcn.00406810
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x1bc0], ebx
call fcn.00405d50
cmp dword [esp + 0x34], 8
jb 0x81287c
mov ecx, dword [esp + 0x20]
push ecx
call fcn.0040890c
add esp, 4
push ebx
call fcn.00408a15
add esp, 4
push ebx
call fcn.004088f5
fldz
push ecx
fstp qword [esp]
call fcn.00408660
fstp st(0)
push ebx
push ebx
call fcn.00408917
push ebx
call fcn.0040877d
mov eax, dword [esp + 0x5c]
mov ecx, dword [eax + 4]
lea edx, [esp + 0xb4]
add esp, 0x14
mov dword [esp + 0x14], edx
mov dword [esp + ecx + 0x48], 0x4046d4
mov dword [esp + 0x1bbc], 1
test byte [esp + 0x98], 1
lea edx, [esp + 0x58]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x58], 0x404694
je 0x8128f6
mov eax, dword [esp + 0x68]
mov eax, dword [eax]
push eax
call fcn.0040890c
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], 0x40464c
mov byte [esp + 0x1bbc], 2
mov eax, dword [esp + 0x90]
mov ebp, eax
cmp eax, ebx
je 0x812997
mov edi, dword [eax]
cmp edi, ebx
je 0x81298e
push ebx
lea ecx, [esp + 0x1c]
call fcn.004078cc
mov eax, dword [edi + 4]
cmp eax, ebx
jbe 0x81296c
cmp eax, 0xffffffff
jae 0x81296c
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.004078f4
cmp esi, ebx
je 0x81298e
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
push ebp
call fcn.0040890c
add esp, 4
lea ecx, [esp + 0x5c]
mov byte [esp + 0x1bbc], 1
call fcn.00407925
mov dword [esp + 0x1bbc], 0xffffffff
mov ecx, dword [esp + 0x48]
mov edx, dword [ecx + 4]
lea eax, [esp + 0xa0]
mov dword [esp + edx + 0x48], 0x40468c
push eax
mov dword [esp + 0xa4], 0x404638
call fcn.004073fb
add esp, 4
mov edi, dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointA]
mov ebp, dword [sym.imp.KERNEL32.dll_IsWow64Process]
xor esi, esi
jmp 0x8129f0
cmp esi, 0x408
jne 0x812a03
mov eax, 0x5d1
add dword [0xba0934], eax
cmp dword [0xba0934], 0xca3
jne 0x812a2c
call dword [sym.imp.KERNEL32.dll_SetFileApisToOEM]
push 0
lea ecx, [esp + 0x384]
push ecx
push 0
call edi
lea edx, [esp + 0x1c]
push edx
push 0
call ebp
inc esi
cmp esi, 0x1518d4
jl 0x8129f0
mov eax, dword [0xba0934]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [0xba089c], eax
mov eax, dword [0xba0934]
xor esi, esi
test eax, eax
je 0x812af5
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 0x812abd
push 0
lea ecx, [esp + 0x384]
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 + 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 0x404354
call ebp
call fcn.00812180
mov eax, dword [0xba0934]
cmp eax, 0x29
jne 0x812aec
call dword [sym.imp.KERNEL32.dll_SetFileApisToOEM]
push 0x404378
push 0
push 0
push 0x404390
push 0x404450
call ebx
mov eax, dword [0xba0934]
inc esi
cmp esi, eax
jb 0x812a70
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov edi, 0x9682ab
cmp eax, 3
jne 0x812b2a
push 0x404490
push 0
lea ecx, [esp + 0x388]
push ecx
push 0x4044ec
push 0x404518
push 0x404558
call esi
mov eax, dword [0xba0934]
dec edi
jne 0x812b00
mov esi, dword [sym.imp.KERNEL32.dll_GetLargestConsoleWindowSize]
mov ebx, 0x25887
mov edi, 0xabebc05c
lea ecx, [ecx]
mov dword [0xba08a4], edi
cmp eax, 0x222
jne 0x812b56
push 0
call esi
mov eax, dword [0xba0934]
dec ebx
jne 0x812b40
mov byte [0x81cbe8], bl
call fcn.008120d0
call fcn.00812490
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
lea ecx, [ecx]
cmp dword [0xba0934], 0xba
jne 0x812b97
push 0x40450c
push 0
push 0
call ebx
push 0
call edi
push 0
call ebp
cmp esi, 0x2f64
jne 0x812bb2
mov eax, 0
add dword [0xba089c], eax
inc esi
cmp esi, 0x1605a
jl 0x812b80
push 0x4040a0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp dword [0xba0934], 0xc30
jne 0x812cae
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 + 0x240]
push edx
push 0x4045a0
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x4045b8
call esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateActCtxW]
push 0
lea eax, [esp + 0x20]
push eax
push 0
lea ecx, [esp + 0x38c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleA]
push 0
lea edx, [esp + 0xb84]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x54]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateW]
push 0x4045e0
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomW]
push 0
call esi
push 0
lea ecx, [esp + 0x1384]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VerLanguageNameW]
push 0
lea edx, [esp + 0x40]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
lea eax, [esp + 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
push 0
call dword [sym.imp.KERNEL32.dll_ZombifyActCtx]
push 0x4045ec
call dword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointA]
mov ecx, dword [esp + 0x1bb4]
pop edi
xor eax, eax
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret