Function at 0x401f00
Capabilities:
Get system information on windows
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4326b0
mov eax, dword fs:[0]
push eax
sub esp, 0x1ac
mov eax, dword [0x43ccf0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
xor eax, eax
mov dword [ebx + 0x110], 0xf
mov dword [ebx + 0x10c], eax
mov dword [ebp - 0x84], ebx
mov esi, edx
mov byte [ebx + 0xfc], al
mov dword [ebp - 4], eax
lea eax, [ebp - 0x1b4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edx, esi
lea ecx, [ebp - 0xb4]
call fcn.00401d50
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0xb4]
mov esi, eax
mov ecx, 0x10
lea edi, [ebp - 0x190]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x154]
lea esi, [eax + ecx]
lea edi, [ebx + 4]
mov ecx, 0x3e
rep movsd dword es:[edi], dword [esi]
movzx eax, word [ebx + 0xa]
xor edi, edi
lea edx, [ebp - 0xa4]
push edx
mov dword [ebp - 0xa4], edi
mov dword [ebp - 0xa0], edi
mov dword [ebp - 0x9c], edi
call fcn.00404620
mov byte [ebp - 4], 2
movzx eax, word [ebx + 0xa]
mov ecx, dword [ebp - 0xb4]
mov edx, dword [ebp - 0x154]
mov esi, dword [ebp - 0xa4]
lea eax, [eax + eax*4]
add eax, eax
add eax, eax
add eax, eax
push eax
lea eax, [ecx + edx + 0xf8]
push eax
push esi
call fcn.0041eb60
mov ecx, dword [ebx + 0x54]
add esp, 0xc
push 4
push 0x3000
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebp - 0xa0]
mov ebx, eax
sub ecx, esi
mov eax, 0x66666667
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x94], eax
je 0x402075
add esi, 0x24
mov edi, eax
lea esp, [esp]
mov eax, dword [esi - 0x14]
test eax, eax
jne 0x402056
mov ecx, dword [esi]
test cl, cl
jns 0x402048
mov edx, dword [ebp - 0x84]
mov eax, dword [edx + 0x28]
jmp 0x402056
test cl, 0x40
je 0x402056
mov eax, dword [ebp - 0x84]
mov eax, dword [eax + 0x24]
mov ecx, dword [esi - 0x10]
add ecx, dword [ebp - 0xb4]
mov edx, dword [esi - 0x18]
push eax
push ecx
add edx, ebx
push edx
call fcn.0041eb60
add esp, 0xc
add esi, 0x28
dec edi
jne 0x402030
mov ecx, dword [ebp - 0x84]
mov eax, dword [ecx + 0x84]
mov edi, dword [ecx + 0x88]
lea esi, [eax + ebx]
add edi, eax
lea eax, [ebp - 0x80]
add edi, ebx
push eax
mov dword [ebp - 0x8c], esi
mov dword [ebp - 0x88], edi
call fcn.00403400
mov byte [ebp - 4], 3
cmp esi, edi
jae 0x40214b
jmp 0x4020b7
mov esi, dword [ebp - 0x8c]
mov edx, dword [esi + 0xc]
lea ecx, [ebp - 0x80]
add edx, ebx
push ecx
lea eax, [ebp - 0x2c]
call fcn.00403570
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x4020d4
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, dword [esi]
mov esi, dword [esi + 0x10]
add edi, ebx
mov ecx, eax
mov eax, dword [edi]
add esi, ebx
mov dword [ebp - 0x90], ecx
test eax, eax
je 0x402120
jmp 0x4020fa
mov ecx, dword [ebp - 0x90]
test eax, eax
jns 0x402106
and eax, 0x7fff
push eax
jmp 0x40210b
lea edx, [eax + ebx + 2]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
add edi, 4
mov dword [esi], eax
mov eax, dword [edi]
add esi, 4
test eax, eax
jne 0x4020f4
add dword [ebp - 0x8c], 0x14
cmp dword [ebp - 0x18], 8
jb 0x402139
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0041cbbd
add esp, 4
mov ecx, dword [ebp - 0x8c]
cmp ecx, dword [ebp - 0x88]
jb 0x4020b1
mov eax, dword [ebp - 0x84]
mov edx, dword [eax + 0xa4]
mov edi, ebx
sub edi, dword [eax + 0x38]
mov eax, dword [eax + 0xa8]
add eax, edx
add eax, ebx
add edx, ebx
mov dword [ebp - 0x88], eax
cmp edx, eax
jae 0x4021af
mov esi, 8
cmp dword [edx + 4], esi
jbe 0x4021a8
lea esp, [esp]
movzx eax, word [esi + edx]
mov ecx, eax
shr ecx, 0xc
and eax, 0xfff
cmp ecx, 3
jne 0x40219a
mov ecx, dword [edx]
add ecx, eax
add dword [ecx + ebx], edi
add esi, 2
cmp esi, dword [edx + 4]
jb 0x402180
mov eax, dword [ebp - 0x88]
add edx, dword [edx + 4]
cmp edx, eax
jb 0x402172
xor edi, edi
cmp dword [ebp - 0x94], edi
jbe 0x402256
mov esi, dword [ebp - 0xa4]
add esi, 0x24
mov ecx, dword [esi]
mov eax, ecx
and eax, 0x40000000
mov edx, 2
je 0x4021e1
test ecx, ecx
jns 0x4021e1
mov edx, 0x40
jmp 0x402201
test eax, eax
je 0x402201
test ecx, ecx
jns 0x4021f0
mov edx, 4
jmp 0x402201
test eax, eax
je 0x402201
test ecx, 0x20000000
je 0x402201
mov edx, 0x20
mov eax, dword [esi - 0x14]
test eax, eax
jne 0x402229
test cl, cl
jns 0x402217
mov eax, dword [ebp - 0x84]
mov eax, dword [eax + 0x28]
jmp 0x402225
test cl, 0x40
je 0x402246
mov ecx, dword [ebp - 0x84]
mov eax, dword [ecx + 0x24]
test eax, eax
je 0x402246
lea ecx, [ebp - 0x88]
push ecx
push edx
mov edx, dword [esi - 0x18]
push eax
add edx, ebx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x402331
inc edi
add esi, 0x28
cmp edi, dword [ebp - 0x94]
jb 0x4021c6
mov ecx, dword [ebp - 0x84]
mov eax, dword [ecx + 0x2c]
push 0
push 1
add eax, ebx
push ebx
call eax
mov edi, dword [ebp - 0x84]
mov byte [ebp - 4], 2
cmp dword [ebp - 0x44], 8
mov dword [edi], ebx
mov dword [ebp - 0x80], vtable.std::wstring_convert_class_std::codecvt_utf8_wchar_t__1114111__0___wchar_t__class_std::allocator_wchar_t___class_std::allocator_char__.0
jb 0x40228d
mov edx, dword [ebp - 0x58]
push edx
call fcn.0041cbbd
add esp, 4
xor esi, esi
xor eax, eax
cmp dword [ebp - 0x60], 0x10
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], esi
mov word [ebp - 0x58], ax
jb 0x4022b1
mov ecx, dword [ebp - 0x74]
push ecx
call fcn.0041cbbd
add esp, 4
mov ebx, dword [ebp - 0x78]
mov dword [ebp - 0x60], 0xf
mov dword [ebp - 0x64], esi
mov byte [ebp - 0x74], 0
cmp ebx, esi
je 0x402304
push esi
lea ecx, [ebp - 0x88]
call fcn.0040873c
mov eax, dword [ebx + 4]
cmp eax, esi
jbe 0x4022e2
cmp eax, 0xffffffff
jae 0x4022e2
dec eax
mov dword [ebx + 4], eax
mov esi, dword [ebx + 4]
neg esi
sbb esi, esi
lea ecx, [ebp - 0x88]
not esi
call fcn.00408764
and esi, ebx
je 0x402304
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
mov eax, dword [ebp - 0xa4]
test eax, eax
je 0x402317
push eax
call fcn.0041cbbd
add esp, 4
mov eax, dword [ebp - 0xb4]
test eax, eax
je 0x40232a
push eax
call fcn.0041cbbd
add esp, 4
mov eax, edi
jmp 0x40247d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [ebp - 0x150]
push eax
call fcn.004038e0
push esi
push ecx
lea ecx, [ebp - 0x150]
push str.Shits_broke__yo:
push ecx
mov byte [ebp - 4], 4
call fcn.00407ac0
add esp, 0xc
push eax
call fcn.00402c20
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x150]
call fcn.004039c0
mov esi, eax
mov ebx, dword [ebp - 0x84]
add ebx, 0xfc
mov edi, 0x10
cmp ebx, esi
je 0x4023d8
cmp dword [ebx + 0x14], edi
jb 0x40239a
mov eax, dword [ebx]
push eax
call fcn.0041cbbd
add esp, 4
xor eax, eax
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], eax
mov byte [ebx], al
cmp dword [esi + 0x14], edi
jae 0x4023c0
mov eax, dword [esi + 0x10]
inc eax
push eax
push esi
push ebx
call fcn.0041cbe0
add esp, 0xc
xor eax, eax
jmp 0x4023c6
mov edx, dword [esi]
mov dword [ebx], edx
mov dword [esi], eax
mov ecx, dword [esi + 0x10]
mov dword [ebx + 0x10], ecx
mov edx, dword [esi + 0x14]
mov dword [ebx + 0x14], edx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
cmp dword [ebp - 0x18], edi
jb 0x4023e9
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0041cbbd
add esp, 4
mov edx, dword [ebp - 0x150]
mov eax, dword [edx + 4]
lea ecx, [ebp - 0x100]
mov dword [ebp - 0x90], ecx
mov dword [ebp + eax - method.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
lea ecx, [ebp - 0x14c]
mov byte [ebp - 4], 6
call fcn.004039e0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x150]
mov edx, dword [ecx + 4]
lea eax, [ebp - 0x100]
mov dword [ebp + edx - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.0040b33a
add esp, 4
lea ecx, [ebp - 0x80]
call fcn.004034d0
mov eax, dword [ebp - 0xa4]
test eax, eax
je 0x402464
push eax
call fcn.0041cbbd
add esp, 4
mov eax, dword [ebp - 0xb4]
test eax, eax
je 0x402477
push eax
call fcn.0041cbbd
add esp, 4
mov eax, dword [ebp - 0x84]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041c946
mov esp, ebp
pop ebp
ret