Function at 0x421220
Capabilities:
Create thread
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xd8
mov eax, dword [0x46c004]
xor eax, esp
mov dword [esp + 0xd4], eax
push esi
push edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0
call fcn.00401a70
cmp dword [esp + 0x10], 0
mov edi, eax
mov dword [0x46d934], edi
je 0x4214ba
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
movups xmm0, xmmword [esp + 0x10]
lea eax, [esp + 0x50]
push eax
push 0x46dddc
movups xmmword [0x46dddc], xmm0
call fcn.00422ac0
lea eax, [esp + 0x50]
push eax
push str._manager.c:ManagerInitialize:1474__write_guid_to_config__guid___s_
call fcn.00431ef0
mov ecx, dword [0x46d934]
lea eax, [esp + 0x58]
mov dword [esp + 0x1c], eax
xor edx, edx
lea eax, [esp + 0x18]
mov byte [esp + 0x18], 0
push eax
call fcn.00433e90
add esp, 0xc
mov dword [0x46d93c], eax
test eax, eax
je 0x4212c5
call fcn.004017b0
call fcn.00401b90
push 0x450
push 0
push 0x46de08
call fcn.00440480
add esp, 0xc
call fcn.00402aa0
mov edi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x46ddec
mov dword [0x46e274], 0
mov dword [0x46e270], 0
call edi
mov esi, dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
push 0
push 0xffff
push 0
push 0
call esi
push 0x46e258
mov dword [0x46d930], eax
mov dword [0x46ddd4], 0
mov dword [0x46ddd0], 0
call edi
push 0
push 0xffff
push 0
push 0
call esi
push 0x46ddac
mov dword [0x46d944], eax
mov dword [0x46ddc8], 0
mov dword [0x46ddc4], 0
call edi
push 0x46db9c
mov dword [0x46dbb8], 0
mov dword [0x46dbb4], 0
call edi
push 0
push 0
push 1
push 0
mov byte [0x46dcb4], 1
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x46ddcc], eax
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x40]
mov dword [0x46d938], eax
shl eax, 2
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x46d948], eax
test eax, eax
je 0x42141b
xor esi, esi
cmp dword [0x46d938], esi
jbe 0x42141b
nop dword [eax]
push 0
push 0
push 0
push 0x403a80
push 0
push 0
call edi
mov ecx, dword [0x46d948]
push 1
push eax
mov dword [ecx + esi*4], eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [0x46d948]
push esi
push dword [eax + esi*4]
call dword [sym.imp.KERNEL32.dll_SetThreadIdealProcessor]
inc esi
cmp esi, dword [0x46d938]
jb 0x4213e0
push 0
push 0
push 0
push 0x420b80
push 0
push 0
call edi
push 0
push 0
push 0
push 0x403a10
push 0
push 0
mov dword [0x46ddd8], eax
call edi
push 0x46d954
mov dword [0x46dbbc], eax
mov dword [0x46d970], 0
mov dword [0x46d950], 0
mov dword [0x46d94c], 0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0
push 0
push 0
push 0x421620
push 0
push 0
call edi
push 0x7e
push 1
push str.2.0.10
push str.release
push str._manager.c:ManagerInitialize:1577__im_ready__configuration___s__version___s__api___i__build___i_
mov dword [0x46d96c], eax
call fcn.00431ef0
mov ecx, dword [esp + 0xf0]
add esp, 0x14
mov eax, 1
pop edi
pop esi
xor ecx, esp
call fcn.0043de43
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x20], 0
jbe 0x4214cc
mov esi, dword [edi + 0x18]
test esi, esi
je 0x4214cc
mov esi, dword [esi + 0xc]
jmp 0x4214ce
xor esi, esi
mov dword [0x46d93c], esi
test esi, esi
je 0x4212c5
lea eax, [esp + 0x50]
mov edx, esi
push eax
mov ecx, edi
call fcn.00430b40
test al, al
je 0x4212c5
push dword [esp + 0x54]
lea eax, [esp + 0x78]
mov byte [esp + 0x14], 0
mov dword [esp + 0x18], eax
mov edx, esi
lea eax, [esp + 0x14]
mov ecx, edi
push eax
call fcn.004341c0
mov eax, dword [esp + 0x5c]
add esp, 8
cmp eax, 0x21
jae 0x421614
mov byte [esp + eax + 0x74], 0
lea eax, [esp + 0x74]
push eax
push 0x46dddc
call fcn.00422b50
lea eax, [esp + 0x74]
push eax
push str._manager.c:ManagerInitialize:1500__read_guid_from_config__guid___s_
call fcn.00431ef0
mov edi, dword [0x46d934]
add esp, 8
mov eax, dword [0x46d93c]
cmp eax, dword [edi + 0x20]
jae 0x421569
lea ecx, [eax + eax*4]
mov eax, dword [edi + 0x18]
lea esi, [eax + ecx*8]
test esi, esi
je 0x421569
mov esi, dword [esi + 0xc]
jmp 0x42156b
xor esi, esi
test esi, esi
je 0x4212c0
nop dword [eax]
nop word [eax + eax]
lea eax, [esp + 0x98]
mov byte [esp + 0x10], 0
mov dword [esp + 0x14], eax
mov edx, esi
lea eax, [esp + 0x10]
mov ecx, edi
push 0x40
push eax
call fcn.004341c0
add esp, 8
lea ecx, [esp + 0x98]
mov eax, str.servers
nop
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x4215d0
test dl, dl
je 0x4215cc
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x4215d0
add ecx, 2
add eax, 2
test dl, dl
jne 0x4215b0
xor eax, eax
jmp 0x4215d5
sbb eax, eax
or eax, 1
test eax, eax
je 0x4212c5
mov edi, dword [0x46d934]
test esi, esi
je 0x421605
cmp esi, dword [edi + 0x20]
jae 0x421605
mov eax, dword [edi + 0x18]
lea ecx, [esi + esi*4]
lea esi, [eax + ecx*8]
mov eax, dword [esi]
or eax, dword [esi + 4]
je 0x421605
test esi, esi
je 0x421605
mov esi, dword [esi + 0x14]
jmp 0x421607
xor esi, esi
test esi, esi
jne 0x421580
jmp 0x4212c0
call fcn.0043df77
int3