Function at 0x40b585
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0
push 0x80000301
push 0
push 0x10
push 0x80000301
push 0
push SysReAllocString
push 2
mov ebx, 0x434400
call fcn.0042f49d
add esp, 0x1c
push 0x80000301
push 0
push eax
push 0x80000301
push 0
push dword [ebp + 8]
push 2
mov ebx, 0x42f7d0
call fcn.0042f49d
add esp, 0x1c
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 0x10
push 0x80000301
push 0
push SysReAllocString
push 2
mov ebx, 0x434400
call fcn.0042f49d
add esp, 0x1c
cmp dword [ebp - 0xc], eax
jne 0x40b649
push str.Windows__
push dword [ebp - 4]
mov ecx, 2
call fcn.00401149
add esp, 8
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40b645
push ebx
call fcn.0042f47f
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push 0x10
push 0x80000301
push 0
push 0x40000000
push 2
mov ebx, 0x434400
call fcn.0042f49d
add esp, 0x1c
push 0x80000301
push 0
push eax
push 0x80000301
push 0
push dword [ebp + 8]
push 2
mov ebx, 0x42f7d0
call fcn.0042f49d
add esp, 0x1c
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 0x10
push 0x80000301
push 0
push 0x40000000
push 2
mov ebx, 0x434400
call fcn.0042f49d
add esp, 0x1c
cmp dword [ebp - 0xc], eax
jne 0x40b6fd
push str.Linux__
push dword [ebp - 4]
mov ecx, 2
call fcn.00401149
add esp, 8
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40b6f9
push ebx
call fcn.0042f47f
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push 0x10
push 0x80000301
push 0
push 0x20000000
push 2
mov ebx, 0x434400
call fcn.0042f49d
add esp, 0x1c
push 0x80000301
push 0
push eax
push 0x80000301
push 0
push dword [ebp + 8]
push 2
mov ebx, 0x42f7d0
call fcn.0042f49d
add esp, 0x1c
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 0x10
push 0x80000301
push 0
push 0x20000000
push 2
mov ebx, 0x434400
call fcn.0042f49d
add esp, 0x1c
cmp dword [ebp - 0xc], eax
jne 0x40b7b1
push str.Unix__
push dword [ebp - 4]
mov ecx, 2
call fcn.00401149
add esp, 8
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40b7ad
push ebx
call fcn.0042f47f
add esp, 4
pop eax
mov dword [ebp - 4], eax
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x40b7c4
mov eax, 0x4dabe8
push eax
push 1
mov ebx, 0x42f9f0
call fcn.0042f49d
add esp, 0x10
mov dword [ebp - 0x10], eax
fild dword [ebp - 0x10]
fstp qword [ebp - 0x10]
fld qword [ebp - 0x10]
fsub qword [0x4dbf06]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
call fcn.00402917
push 0x80000301
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x40b80f
mov eax, 0x4dabe8
push eax
push 2
mov ebx, 0x42fdc0
call fcn.0042f49d
add esp, 0x1c
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40b839
push ebx
call fcn.0042f47f
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x4dabe8
push dword [ebp - 4]
call fcn.00401041
add esp, 8
cmp eax, 0
jne 0x40b860
mov eax, str.Windows
jmp 0x40b881
mov eax, dword [ebp - 4]
test eax, eax
je 0x40b87c
push eax
mov ebx, eax
call fcn.004010de
inc eax
push eax
call fcn.0042f485
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x40b881
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40b892
push ebx
call fcn.0042f47f
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4