Function at 0x4221a1
Capabilities:
Check mutex on windows
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
mov byte [0x48fba6], bl
cmp word [eax], 0x2a
mov dword [ebp - 0x18], eax
lea eax, [ebp + 8]
push esi
push eax
mov dword [ebp - 0xc], ecx
sete byte [ebp - 1]
call fcn.0040f4fc
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov si, word [eax]
cmp si, 0x2d
pop ecx
mov dword [ebp - 8], ebx
mov cl, 0x2a
jne 0x4221e3
add cl, 3
movsx ecx, cl
movzx edx, si
cmp ecx, edx
jne 0x42221c
movzx edx, word [eax + 2]
cmp ecx, edx
jne 0x42221c
add eax, 4
xor esi, esi
mov dword [ebp - 0x10], eax
inc esi
push esi
lea eax, [ebp - 0x10]
push eax
push 0x47e150
call fcn.0042c7e8
add esp, 0xc
test al, al
je 0x42221f
mov eax, dword [ebp - 0x10]
mov dword [ebp + 8], eax
jmp 0x422236
xor esi, esi
inc esi
push 5
lea eax, [ebp + 8]
push eax
push str._user
call fcn.0042c7e8
add esp, 0xc
test al, al
je 0x422242
mov dword [ebp - 8], esi
mov dword [ebp - 0x1c], str.UCallBackhWnd
jmp 0x42224a
mov eax, dword [0x48e2b0]
mov dword [ebp - 0x1c], eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp - 8], ebx
mov eax, str.GlobalPECMD:main_u
jne 0x422260
mov eax, str.GlobalPECMD:main
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
je 0x422283
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0xb7
cmp eax, ecx
jne 0x422283
mov eax, ecx
jmp 0x422698
cmp dword [ebp - 8], ebx
je 0x422291
mov byte [0x493003], 0x20
jmp 0x4222a1
mov eax, dword [ebp + 8]
cmp word [eax], bx
setne al
add al, 0x10
mov byte [0x493003], al
cmp dword [0x48fdf8], ebx
push edi
mov edi, 0x47a8e8
mov esi, 0x48feb8
jne 0x4222d0
push 0x47e282
call fcn.0046646e
test eax, eax
pop ecx
je 0x4222d0
push edi
push str.D:DebugPeMain.log
mov ecx, esi
call fcn.00415cfb
push dword [ebp - 0x18]
push str.MAIN__s_r_n
push esi
call fcn.0040af7b
add esp, 0xc
call fcn.00412dfd
cmp byte [ebp - 1], bl
je 0x4222f2
mov byte [0x493001], 1
cmp dword [ebp - 8], ebx
jne 0x422331
mov eax, dword [ebp + 8]
cmp word [eax], bx
je 0x422349
push 0x10000000
push 1
push ebx
push str.Default
call dword [sym.imp.USER32.dll_OpenDesktopW]
mov esi, eax
cmp esi, ebx
je 0x422331
push esi
call dword [sym.imp.USER32.dll_SetThreadDesktop]
test eax, eax
je 0x42232a
push esi
call dword [sym.imp.USER32.dll_SwitchDesktop]
push esi
call dword [sym.imp.USER32.dll_CloseDesktop]
mov eax, dword [ebp + 8]
cmp word [eax], bx
je 0x422349
mov ecx, dword [ebp - 0xc]
push ebx
push 0x24
push ebx
push edi
call fcn.00418b2f
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cx, word [eax]
cmp cx, 0x2a
mov dword [ebp - 0x24], ecx
jne 0x42236b
add eax, 2
cmp word [eax], 0x23
je 0x42236b
lea ecx, [ebp + 8]
mov dword [ebp + 8], eax
call fcn.00409aad
push edi
push edi
call sym.PECMD.exe_LoadEnvi
mov eax, dword [ebp + 8]
cmp word [eax], bx
pop ecx
pop ecx
jne 0x422383
mov byte [0x490191], 1
call fcn.00426654
call fcn.0042216d
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 4
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 4
push str.MainPECMDPID
mov esi, str.SOFTWAREPELOGON
push esi
mov edi, 0x80000002
push edi
call fcn.00426e2f
push ebx
push 0x48feb8
call fcn.0045c318
mov eax, dword [ebp - 0xc]
add esp, 0x20
cmp dword [eax + 0x3c], ebx
jne 0x42243e
test byte [0x48ff94], 1
jne 0x4223eb
or dword [0x48ff94], 1
push 0x479e3b
mov dword [0x48ff90], ebx
call fcn.0046711d
pop ecx
mov ecx, dword [ebp - 0xc]
mov esi, 0x48ff90
push 0x10000
mov dword [ecx + 0x3c], esi
call fcn.0042965b
lea ecx, [ebp - 0x14]
call fcn.0042aeb8
push dword [ebp - 0x14]
mov ecx, esi
call fcn.0044e8ba
mov eax, dword [0x48ff90]
mov esi, dword [ebp - 0xc]
push 1
push dword [ebp - 0x18]
mov dword [ebp - 0x14], ebx
mov eax, dword [eax]
mov ecx, esi
mov dword [esi + 0x40], eax
call fcn.0042d162
lea ecx, [ebp - 0x14]
mov dword [esi + 0x48], ebx
call fcn.0042602e
mov esi, str.SOFTWAREPELOGON
cmp dword [ebp - 8], ebx
jne 0x422462
mov al, byte [0x493003]
push 1
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push eax
push 3
push str.bInMain
push esi
push edi
call fcn.00426e2f
add esp, 0x18
mov eax, dword [ebp + 8]
cmp word [eax], bx
je 0x42246f
call fcn.0040c580
push 4
push 0x48fdec
push 4
push dword [ebp - 0x1c]
push esi
push edi
call fcn.00426e2f
add esp, 0x18
cmp word [ebp - 0x24], bx
jne 0x422490
cmp dword [ebp - 8], ebx
je 0x422495
call fcn.0041aec8
mov ecx, dword [ebp - 0xc]
call fcn.00412b33
mov eax, dword [ebp + 8]
cmp word [eax], bx
jne 0x4224aa
cmp dword [ebp - 8], ebx
je 0x4224ec
lea eax, [ebp - 0x24]
push eax
push 0x10000
push ebx
push 0x422192
push 0x80000
push ebx
mov dword [ebp - 0x24], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
je 0x4224e9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4224e9
lea ecx, [eax + 2]
cmp word [ecx], 0x23
je 0x4224f2
mov dword [ebp + 8], ecx
lea ecx, [ebp + 8]
call fcn.00409aad
mov eax, dword [ebp + 8]
cmp word [eax], 0x2a
je 0x4224d5
cmp word [eax], bx
je 0x422656
push eax
call fcn.0040bca6
test eax, eax
pop ecx
je 0x422527
push dword [ebp + 8]
lea ecx, [ebp - 0x1c]
call fcn.00434695
mov ecx, dword [ebp - 0xc]
push ebx
push ebx
push ebx
push dword [ebp - 0x1c]
call fcn.0041ff01
lea ecx, [ebp - 0x1c]
jmp 0x422651
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], ebx
xor edi, edi
call fcn.0042aeb8
mov eax, dword [ebp + 8]
cmp word [eax], 0x22
jne 0x422566
inc esi
inc esi
mov ax, word [esi]
mov word [ebp - 0x18], ax
push 0x22
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], esi
call fcn.0040f443
mov edi, dword [ebp - 0x1c]
cmp word [edi], bx
pop ecx
je 0x422564
mov word [edi], bx
jmp 0x422566
xor edi, edi
mov ecx, dword [ebp - 0xc]
push 1
push ebx
lea eax, [ebp - 0x14]
push eax
push esi
call fcn.0043b18c
mov eax, dword [ebp - 0x18]
cmp ax, bx
je 0x42258b
cmp edi, ebx
mov word [esi - 2], ax
je 0x42258b
mov word [edi], 0x22
push dword [ebp - 0x14]
call fcn.0046646e
test eax, eax
pop ecx
jne 0x4225de
lea ecx, [ebp - 0x30]
call fcn.0042adba
push ebx
lea eax, [ebp - 0x30]
push eax
push str.SCRIPT
push 0x66
push dword [0x48fde8]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
call fcn.0040f8b6
add esp, 0x14
cmp dword [ebp - 0x2c], 4
jb 0x4225cd
mov dword [ebp + 8], str.102
push dword [ebp - 0x30]
call fcn.00425fea
pop ecx
lea ecx, [ebp - 0x30]
call fcn.0042602e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 0x348
push eax
lea ecx, [ebp - 8]
call fcn.0042aed6
mov eax, dword [ebp - 8]
push 0x104
push eax
push ebx
lea esi, [eax + 0x208]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
push ebx
push dword [ebp - 8]
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
cmp eax, ebx
jne 0x422620
mov eax, dword [ebp - 8]
jmp 0x422622
inc eax
inc eax
push dword [ebp + 8]
push eax
push dword [ebp - 8]
push str.___exe:__s_____s___LOAD__s
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp - 0xc]
add esp, 0x14
push ebx
push ebx
push ebx
push ebx
push ecx
push esi
call fcn.0040653e
lea ecx, [ebp - 8]
call fcn.0042602e
lea ecx, [ebp - 0x14]
call fcn.0042602e
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
push ebx
push ebx
push ebx
lea eax, [ebp - 0x4c]
push eax
call esi
pop edi
jmp 0x422685
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push ebx
push ebx
push ebx
lea eax, [ebp - 0x4c]
push eax
call esi
test eax, eax
jne 0x422668
push dword [0x48fddc]
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov eax, dword [ebp - 0x44]
pop esi
pop ebx
leave
ret 4