Function at 0x403a60
Capabilities:
Check mutex on windows
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x47b2b2
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x49d340]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
push esi
push edi
mov eax, dword [0x49d340]
xor eax, esp
push eax
lea eax, [esp + 0x240]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
push str.COMETBIRD_DOWNLOADERAB21CF4E_03B9_474b_BDB8_85A61E274CBF
xor ebx, ebx
push ebx
push ebx
mov dword [esp + 0x30], edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
mov dword [esp + 0x48], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x44], eax
cmp eax, 0xb7
mov dword [esp + 0x248], ebx
je 0x403b08
lea eax, [esp + 0x3c]
push eax
call fcn.004012d0
mov eax, edi
mov byte [esp + 0x248], 1
call fcn.00404140
mov eax, edi
call fcn.004041d0
test eax, eax
jne 0x403b1a
lea ecx, [esp + 0x3c]
mov byte [esp + 0x248], al
call fcn.00401480
cmp esi, ebx
je 0x403b13
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4040bd
lea ecx, [esp + 0xe0]
call fcn.00401590
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
lea ecx, [esp + 0x14]
push ecx
mov byte [esp + 0x24c], 3
call fcn.00401ce0
cmp byte [esp + 0xe0], 0
jne 0x403bc4
lea ecx, [esp + 0x14]
call fcn.004049a0
test al, al
je 0x403bc4
mov esi, dword [0x4ed08c]
push 0x400
push 0x40
push str.Tip:
push esi
call fcn.00407e70
push eax
push str.HELP_MSG
push esi
call fcn.00407e70
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxExW]
lea edx, [esp + 0x14]
push edx
call fcn.00405010
lea esi, [esp + 0xe0]
call fcn.004040f0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x248], 0
call fcn.00401480
mov eax, dword [esp + 0x48]
cmp eax, ebx
je 0x403bbd
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4040bd
mov eax, dword [0x4ed08c]
mov esi, dword [0x4ed090]
push str.CometBird_Downloader
push eax
call fcn.00407e70
push eax
push 0x6e
push edi
call dword [sym.imp.USER32.dll_LoadIconW]
mov edx, eax
mov ecx, esi
call fcn.00419610
lea ecx, [esp + 0x11c]
push ecx
call fcn.00408190
mov byte [esp + 0x248], 4
cmp byte [esp + 0xe0], 0
mov byte [esp + 0x10], 0
mov byte [esp + 0x11], 0
je 0x403d6e
lea edx, [esp + 0x84]
push edx
lea eax, [esp + 0xe4]
push eax
call fcn.00402580
mov dword [esp + 0x64], 7
mov dword [esp + 0x60], ebx
mov word [esp + 0x50], bx
mov edi, 8
mov byte [esp + 0x248], 6
cmp dword [eax + 0x18], edi
jb 0x403c57
mov eax, dword [eax + 4]
jmp 0x403c5a
add eax, 4
push eax
lea ecx, [esp + 0x50]
call fcn.0041ac59
mov byte [esp + 0x248], 7
mov ecx, dword [0x4ed08c]
push str.CometBird
push ecx
call fcn.00407e70
push eax
lea ecx, [esp + 0xac]
call fcn.00404340
mov byte [esp + 0x248], 8
mov eax, dword [0x4ec7ac]
mov esi, eax
lea edx, [esp + 0xe0]
add eax, 1
push edx
lea ecx, [esp + 0xc8]
mov dword [0x4ec7ac], eax
call fcn.00402450
push esi
lea ecx, [esp + 0x50]
push ecx
push eax
lea eax, [esp + 0xb4]
lea esi, [esp + 0x128]
mov byte [esp + 0x254], 9
call fcn.004082a0
lea ecx, [esp + 0xc4]
call fcn.00407dc0
lea ecx, [esp + 0xa8]
call fcn.00407dc0
cmp dword [esp + 0x64], edi
jb 0x403d02
mov edx, dword [esp + 0x50]
push edx
call fcn.00433471
add esp, 4
lea ecx, [esp + 0x84]
mov dword [esp + 0x64], 7
mov dword [esp + 0x60], ebx
mov word [esp + 0x50], bx
call fcn.00407dc0
lea ecx, [esp + 0x10]
mov eax, 0x402fe0
push ecx
push eax
lea esi, [esp + 0x8c]
mov dword [esp + 0x8c], ebx
call fcn.00406c30
lea eax, [esp + 0x214]
push eax
mov ecx, esi
mov byte [esp + 0x24c], 0xa
call fcn.004046a0
mov byte [esp + 0x248], 4
call fcn.0040cf30
lea ecx, [esp + 0x11c]
push ecx
call fcn.00408450
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov byte [esp + 0x248], 0xb
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
cmp edi, eax
jbe 0x403d97
call fcn.00433461
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x18], eax
mov esi, eax
jbe 0x403da4
call fcn.00433461
cmp edi, esi
je 0x403e73
push 0x6c
call fcn.00433525
mov esi, eax
add esp, 4
mov dword [esp + 0x28], esi
cmp esi, ebx
mov byte [esp + 0x248], 0xc
je 0x403ddd
cmp edi, dword [esp + 0x1c]
jb 0x403dd3
call fcn.00433461
push esi
mov ecx, edi
call fcn.004032c0
mov ebx, eax
mov byte [esp + 0x248], 0xb
cmp edi, dword [esp + 0x1c]
mov dword [esp + 0x28], ebx
jb 0x403df4
call fcn.00433461
lea esi, [edi + 0x48]
push str.tigerplayer
mov edx, esi
call fcn.00406790
test eax, eax
jne 0x403e10
mov edx, dword [esp + 0x24]
push 0x6f
push edx
jmp 0x403e32
cmp edi, dword [esp + 0x1c]
jb 0x403e1b
call fcn.00433461
push str.cometplayer
mov edx, esi
call fcn.00406790
test eax, eax
jne 0x403e46
mov eax, dword [esp + 0x24]
push 0x70
push eax
mov esi, dword [0x4ed090]
call dword [sym.imp.USER32.dll_LoadIconW]
push eax
mov ecx, esi
call fcn.004196e0
test ebx, ebx
je 0x403e58
lea ecx, [esp + 0x28]
push ecx
lea esi, [esp + 0x30]
call fcn.00404520
mov eax, dword [esp + 0x1c]
cmp edi, eax
jb 0x403e69
call fcn.00433461
mov eax, dword [esp + 0x1c]
add edi, 0x64
xor ebx, ebx
jmp 0x403d97
push ebx
push ebx
push ebx
lea edx, [esp + 0x74]
push edx
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x403f09
mov esi, dword [sym.imp.USER32.dll_SetTimer]
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
cmp dword [esp + 0x6c], 0x8026
jne 0x403ee5
mov al, byte [esp + 0xe0]
cmp al, byte [esp + 0x11]
jne 0x403ee5
lea ecx, [esp + 0x2c]
push ecx
call fcn.004038f0
add esp, 4
test al, al
je 0x403ee5
mov eax, dword [0x4ec7b0]
cmp eax, ebx
je 0x403ed7
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
test eax, eax
je 0x403ed7
mov dword [0x4ec7b0], ebx
push 0x403a20
push 0x3e8
push ebx
push ebx
call esi
lea edx, [esp + 0x68]
push edx
call edi
lea eax, [esp + 0x68]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push ebx
push ebx
push ebx
lea ecx, [esp + 0x74]
push ecx
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x403e95
mov edi, dword [esp + 0x30]
cmp edi, dword [esp + 0x34]
jbe 0x403f20
call fcn.00433461
jmp 0x403f20
mov esi, dword [esp + 0x34]
cmp dword [esp + 0x30], esi
jbe 0x403f2f
call fcn.00433461
cmp edi, esi
je 0x403f65
cmp edi, dword [esp + 0x34]
jb 0x403f3e
call fcn.00433461
mov esi, dword [edi]
cmp esi, ebx
je 0x403f55
push esi
call fcn.00403420
push esi
call fcn.00433471
add esp, 4
mov dword [edi], ebx
cmp edi, dword [esp + 0x34]
jb 0x403f60
call fcn.00433461
add edi, 4
jmp 0x403f20
mov eax, dword [esp + 0x30]
cmp eax, ebx
mov edx, dword [esp + 0x70]
mov dword [esp + 0x24], edx
je 0x403f7e
push eax
call fcn.00433471
add esp, 4
lea ecx, [esp + 0x11c]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov byte [esp + 0x248], 3
call fcn.004082f0
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x404025
mov ecx, dword [esp + 0x1c]
cmp eax, ecx
mov dword [esp + 0x28], ecx
je 0x40401c
lea esi, [eax + 0x60]
cmp dword [esi], 8
jb 0x403fc6
mov eax, dword [esi - 0x14]
push eax
call fcn.00433471
add esp, 4
mov edi, 7
mov dword [esi], edi
mov dword [esi - 4], ebx
mov word [esi - 0x14], bx
cmp dword [esi - 0x1c], 8
jb 0x403fe6
mov eax, dword [esi - 0x30]
push eax
call fcn.00433471
add esp, 4
mov dword [esi - 0x1c], edi
mov dword [esi - 0x20], ebx
mov word [esi - 0x30], bx
cmp dword [esi - 0x48], 8
jb 0x404002
mov eax, dword [esi - 0x5c]
push eax
call fcn.00433471
add esp, 4
mov dword [esi - 0x48], edi
mov dword [esi - 0x4c], ebx
mov word [esi - 0x5c], bx
add esi, 0x64
lea eax, [esi - 0x60]
cmp eax, dword [esp + 0x28]
jne 0x403fb5
mov eax, dword [esp + 0x18]
push eax
call fcn.00433471
add esp, 4
mov edi, 8
cmp dword [esp + 0x118], edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
jb 0x40404f
mov ecx, dword [esp + 0x104]
push ecx
call fcn.00433471
add esp, 4
cmp dword [esp + 0xfc], edi
mov esi, 7
mov dword [esp + 0x118], esi
mov dword [esp + 0x114], ebx
mov word [esp + 0x104], bx
jb 0x404083
mov edx, dword [esp + 0xe8]
push edx
call fcn.00433471
add esp, 4
lea ecx, [esp + 0x3c]
mov dword [esp + 0xfc], esi
mov dword [esp + 0xf8], ebx
mov word [esp + 0xe8], bx
mov byte [esp + 0x248], 0
call fcn.00401480
mov eax, dword [esp + 0x48]
cmp eax, ebx
je 0x4040b9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x240]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.00433192
mov esp, ebp
pop ebp
ret 0x10