Function at 0x409690
Capabilities:
Create thread
Get hostname
Resume thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5a298d
mov eax, dword fs:[0]
push eax
sub esp, 0x5b0
mov eax, dword [0x619e70]
xor eax, esp
mov dword [esp + 0x5a8], eax
push ebx
push esi
push edi
mov eax, dword [0x619e70]
xor eax, esp
push eax
lea eax, [esp + 0x5c0]
mov dword fs:[0], eax
mov edi, ecx
call fcn.00578fb3
mov esi, 0x62c588
call fcn.00409e50
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x48
mov esi, eax
push 0x5a
push esi
call ebx
push eax
push 8
call dword [sym.imp.KERNEL32.dll_MulDiv]
push 0x48
push 0x5a
neg eax
push esi
mov dword [esp + 0x1c], eax
call ebx
push eax
push 9
call dword [sym.imp.KERNEL32.dll_MulDiv]
push 0x48
push 0x5a
push esi
call ebx
push eax
push 0xa
call dword [sym.imp.KERNEL32.dll_MulDiv]
push 0x48
push 0x5a
push esi
call ebx
push eax
push 0xb
call dword [sym.imp.KERNEL32.dll_MulDiv]
push esi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [0x62d2c8]
test eax, eax
jne 0x40974d
mov eax, dword [esp + 0x10]
push 0x62d0c4
push 0x20
push 0
mov esi, dword [sym.imp.GDI32.dll_CreateFontW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0x190
push 0
push 0
push 0
push eax
call esi
push eax
lea ecx, [edi + 0x92c]
call fcn.0056eda0
mov eax, dword [0x62d2c4]
test eax, eax
jne 0x40978f
mov eax, dword [esp + 0x10]
push 0x62cec4
push 0x20
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x190
push 0
push 0
push 0
push eax
call esi
push eax
lea ecx, [edi + 0x934]
call fcn.0056eda0
mov ebx, dword [edi + 0x48]
push 0x5d03b4
lea esi, [edi + 0x4b8]
push 0x200
push esi
mov dword [edi + 0x8c0], 0
call fcn.0043a300
add esp, 0xc
push str._txt
push ebx
call fcn.0057e562
add esp, 8
test eax, eax
je 0x409833
push 0x200
push esi
push str._txt_s
push eax
mov dword [edi + 0x8bc], 1
call fcn.0057e7e0
push str..txt
push 0x200
push esi
call fcn.0057dc29
add esp, 0x1c
mov dword [edi + 0x8c0], 1
jmp 0x409aa5
push str._html
push ebx
call fcn.0057e562
add esp, 8
test eax, eax
je 0x409882
push 0x200
push esi
push str._html_s
push eax
mov dword [edi + 0x8bc], 1
call fcn.0057e7e0
push str..htm
push 0x200
push esi
call fcn.0057dc29
add esp, 0x1c
mov dword [edi + 0x8c0], 2
jmp 0x409aa5
push str._console
push ebx
call fcn.0057e562
add esp, 8
test eax, eax
je 0x4098ad
mov dword [edi + 0x8bc], 1
mov dword [edi + 0x8c0], 3
jmp 0x409aa5
push str._bench
push ebx
call fcn.0057e562
add esp, 8
test eax, eax
je 0x4098d8
mov dword [edi + 0x8bc], 1
mov dword [edi + 0x8c0], 6
jmp 0x409aa5
push str._jsontxt
push ebx
call fcn.0057e562
add esp, 8
test eax, eax
je 0x4099dd
push 0x200
push esi
push str._jsontxt_s
push eax
mov dword [edi + 0x8bc], 1
call fcn.0057e7e0
add esp, 0x10
test eax, eax
jge 0x409924
lea eax, [esp + 0x10]
push eax
push esi
mov dword [esp + 0x18], 0x200
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [esp + 0x20]
movzx eax, word [esp + 0x1e]
movzx ecx, word [esp + 0x1c]
push edx
movzx edx, word [esp + 0x1e]
push eax
movzx eax, word [esp + 0x1e]
push ecx
movzx ecx, word [esp + 0x20]
push edx
push eax
push ecx
push str.__04d_02d_02d__02d_02d_02d
lea edx, [esp + 0x1d0]
push 0x200
push edx
call fcn.0043a300
add esp, 0x24
lea eax, [esp + 0x1b4]
push eax
push 0x200
push esi
call fcn.0057dc29
add esp, 0xc
push 0x400
call fcn.0056cbbf
add esp, 4
push esi
push 0x200
push eax
mov dword [edi + 0x8b8], eax
call fcn.0057e5c3
add esp, 0xc
push str..json
push 0x200
push esi
call fcn.0057dc29
mov ecx, dword [edi + 0x8b8]
add esp, 0xc
push str..txt
push 0x200
push ecx
call fcn.0057dc29
mov dword [edi + 0x8c0], 8
jmp 0x409aa2
push str._json
push ebx
call fcn.0057e562
add esp, 8
test eax, eax
je 0x409aa5
push 0x200
push esi
push str._json_s
push eax
mov dword [edi + 0x8bc], 1
call fcn.0057e7e0
add esp, 0x10
test eax, eax
jge 0x409a29
lea edx, [esp + 0x10]
push edx
push esi
mov dword [esp + 0x18], 0x200
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [esp + 0x20]
movzx edx, word [esp + 0x1e]
movzx eax, word [esp + 0x1c]
push ecx
movzx ecx, word [esp + 0x1e]
push edx
movzx edx, word [esp + 0x1e]
push eax
movzx eax, word [esp + 0x20]
push ecx
push edx
push eax
push str.__04d_02d_02d__02d_02d_02d
lea ecx, [esp + 0x1d0]
push 0x200
push ecx
call fcn.0043a300
add esp, 0x24
lea edx, [esp + 0x1b4]
push edx
push 0x200
push esi
call fcn.0057dc29
add esp, 0xc
push str..json
push 0x200
push esi
call fcn.0057dc29
mov dword [edi + 0x8c0], 7
add esp, 0xc
push str._core
push ebx
call fcn.0057e562
add esp, 8
test eax, eax
je 0x409ace
push 4
lea ecx, [edi + 0x8c4]
push ecx
push str._core_d
push eax
call fcn.0057e7e0
add esp, 0x10
push str._coremask
push ebx
call fcn.0057e562
add esp, 8
test eax, eax
je 0x409b0b
push 4
lea edx, [edi + 0x8c8]
push edx
push str._coremask_X
push eax
call fcn.0057e7e0
add esp, 0x10
mov dword [edi + 0x8bc], 1
mov dword [edi + 0x8c0], 4
push str._removeservice
push ebx
call fcn.0057e562
add esp, 8
test eax, eax
je 0x409b31
mov dword [edi + 0x8bc], 1
mov dword [edi + 0x8c0], 5
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
cmp dword [edi + 0x8bc], 0
mov dword [edi + 0xda0], eax
jne 0x409c0b
cmp dword [edi + 0xd90], 0
je 0x409b92
lea eax, [esp + 0x10]
push eax
push 4
push 0
push 0x40c3f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0xb0], eax
test eax, eax
je 0x409b85
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov ecx, dword [edi + 0xb0]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
call fcn.00435000
mov ecx, edi
call fcn.0040b9e0
mov ecx, dword [0x62c560]
mov edx, dword [ecx]
mov eax, dword [edx + 0x60]
call eax
mov ecx, dword [0x62c560]
test ecx, ecx
je 0x409bbe
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push 1
call eax
mov esi, edi
mov dword [0x62c560], 0
call fcn.0040c2d0
lea ecx, [esp + 0x24]
push ecx
call fcn.0040c960
lea edx, [esp + 0x24]
mov dword [esp + 0x5c8], 0
mov ecx, edx
mov dword [edi + 0x20], edx
call fcn.0056f867
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x5cc], 0xffffffff
call fcn.00409c40
xor eax, eax
jmp 0x409c17
mov ecx, edi
call fcn.0040b9e0
mov eax, 1
mov ecx, dword [esp + 0x5c0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x5a8]
xor ecx, esp
call fcn.0057db4c
mov esp, ebp
pop ebp
ret